2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, automake, autoconf, pkg-config, gettext, libtool, pandoc, which, attr, libiconv }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mergerfs";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "2.39.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "trapexit";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-02-07 01:22:34 +00:00
|
|
|
sha256 = "sha256-48ArTS1Gd1z7WUX1RjiHMuyp3K3p9FJPU2XO4bj292I=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
automake autoconf pkg-config gettext libtool pandoc which
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2020-10-27 00:29:36 +00:00
|
|
|
prePatch = ''
|
|
|
|
sed -i -e '/chown/d' -e '/chmod/d' libfuse/Makefile
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ attr libiconv ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
echo "${version}" > VERSION
|
|
|
|
'';
|
|
|
|
|
2020-10-27 00:29:36 +00:00
|
|
|
makeFlags = [ "DESTDIR=${placeholder "out"}" "XATTR_AVAILABLE=1" "PREFIX=/" "SBINDIR=/bin" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
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";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.isc;
|
|
|
|
platforms = lib.platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with lib.maintainers; [ makefu ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|