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";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "2.36.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "trapexit";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-08-04 22:07:22 +00:00
|
|
|
sha256 = "sha256-oGgL3uMKMs66GTgWtMMX0M9ARXiJnV3l3Tnja373sCo=";
|
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;
|
|
|
|
maintainers = with lib.maintainers; [ jfrankenau makefu ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|