1 { lib, stdenv, fetchFromGitHub, automake, autoconf, pkg-config, gettext, libtool, pandoc, which, attr, libiconv }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-3DfSGuTtM+h0IdtsIhLVXQxX5/Tj9G5Qcha3DWmyyq4=";
15 automake autoconf pkg-config gettext libtool pandoc which
18 sed -i -e '/chown/d' -e '/chmod/d' libfuse/Makefile
20 buildInputs = [ attr libiconv ];
23 echo "${version}" > VERSION
26 makeFlags = [ "DESTDIR=${placeholder "out"}" "XATTR_AVAILABLE=1" "PREFIX=/" "SBINDIR=/bin" ];
27 enableParallelBuilding = true;
30 ln -srf $out/bin/mergerfs $out/bin/mount.fuse.mergerfs
31 ln -srf $out/bin/mergerfs $out/bin/mount.mergerfs
35 description = "FUSE based union filesystem";
36 homepage = "https://github.com/trapexit/mergerfs";
37 license = lib.licenses.isc;
38 platforms = lib.platforms.linux;
39 maintainers = with lib.maintainers; [ makefu ];