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-04-21 15:54:59 +00:00
|
|
|
version = "2.40.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "trapexit";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-3DfSGuTtM+h0IdtsIhLVXQxX5/Tj9G5Qcha3DWmyyq4=";
|
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
|
|
|
};
|
|
|
|
}
|