nixpkgs/pkgs/tools/filesystems/mergerfs/default.nix

39 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, automake, autoconf, pkgconfig, gettext, libtool, pandoc, which, attr, libiconv }:
2016-09-28 11:21:50 +00:00
stdenv.mkDerivation rec {
pname = "mergerfs";
2019-11-09 15:21:53 +00:00
version = "2.28.3";
2016-09-28 11:21:50 +00:00
src = fetchFromGitHub {
owner = "trapexit";
repo = pname;
rev = version;
2019-11-09 15:21:53 +00:00
sha256 = "1w6p3svc2yknp6swqg8lax6n9b31lyplb3j7r8nv14hbq4hymylx";
2016-09-28 11:21:50 +00:00
};
nativeBuildInputs = [
automake autoconf pkgconfig gettext libtool pandoc which
];
2017-06-28 12:32:13 +00:00
buildInputs = [ attr libiconv ];
2016-09-28 11:21:50 +00:00
preConfigure = ''
echo "${version}" > VERSION
'';
makeFlags = [ "PREFIX=${placeholder "out"}" "XATTR_AVAILABLE=1" ];
enableParallelBuilding = true;
2016-09-28 11:21:50 +00:00
2019-04-25 04:53:29 +00:00
postFixup = ''
ln -srf $out/bin/mergerfs $out/bin/mount.fuse.mergerfs
ln -srf $out/bin/mergerfs $out/bin/mount.mergerfs
2019-04-25 04:53:29 +00:00
'';
2016-09-28 11:21:50 +00:00
meta = {
description = "A FUSE based union filesystem";
homepage = "https://github.com/trapexit/mergerfs";
2016-09-28 11:21:50 +00:00
license = stdenv.lib.licenses.isc;
platforms = stdenv.lib.platforms.linux;
2017-06-28 12:32:13 +00:00
maintainers = with stdenv.lib.maintainers; [ jfrankenau makefu ];
2016-09-28 11:21:50 +00:00
};
}