8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
38 lines
1 KiB
Nix
38 lines
1 KiB
Nix
{ stdenv, fetchFromGitHub, automake, autoconf, pkgconfig, gettext, libtool, pandoc, which, attr, libiconv }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mergerfs";
|
|
version = "2.28.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "trapexit";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1w6p3svc2yknp6swqg8lax6n9b31lyplb3j7r8nv14hbq4hymylx";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
automake autoconf pkgconfig gettext libtool pandoc which
|
|
];
|
|
buildInputs = [ attr libiconv ];
|
|
|
|
preConfigure = ''
|
|
echo "${version}" > VERSION
|
|
'';
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" "XATTR_AVAILABLE=1" ];
|
|
enableParallelBuilding = true;
|
|
|
|
postFixup = ''
|
|
ln -srf $out/bin/mergerfs $out/bin/mount.fuse.mergerfs
|
|
ln -srf $out/bin/mergerfs $out/bin/mount.mergerfs
|
|
'';
|
|
|
|
meta = {
|
|
description = "A FUSE based union filesystem";
|
|
homepage = "https://github.com/trapexit/mergerfs";
|
|
license = stdenv.lib.licenses.isc;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = with stdenv.lib.maintainers; [ jfrankenau makefu ];
|
|
};
|
|
}
|