nixpkgs/pkgs/tools/filesystems/mergerfs/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, automake, autoconf, pkg-config, gettext, libtool, pandoc, which, attr, libiconv }:
2016-09-28 11:21:50 +00:00
stdenv.mkDerivation rec {
pname = "mergerfs";
2021-12-25 18:22:02 +00:00
version = "2.33.3";
2016-09-28 11:21:50 +00:00
src = fetchFromGitHub {
owner = "trapexit";
repo = pname;
rev = version;
2021-12-25 18:22:02 +00:00
sha256 = "sha256-hZA7AkFEuSHp84Zn+m9+VVr4UewbbzeQL1n2bkUOX0Y=";
2016-09-28 11:21:50 +00:00
};
nativeBuildInputs = [
automake autoconf pkg-config gettext libtool pandoc which
];
2020-10-04 16:55:21 +00:00
prePatch = ''
sed -i -e '/chown/d' -e '/chmod/d' libfuse/Makefile
'';
2017-06-28 12:32:13 +00:00
buildInputs = [ attr libiconv ];
2016-09-28 11:21:50 +00:00
preConfigure = ''
echo "${version}" > VERSION
'';
2020-10-04 16:55:21 +00:00
makeFlags = [ "DESTDIR=${placeholder "out"}" "XATTR_AVAILABLE=1" "PREFIX=/" "SBINDIR=/bin" ];
enableParallelBuilding = true;
2016-09-28 11:21:50 +00:00
2019-04-25 04:53:29 +00:00
postFixup = ''
ln -srf $out/bin/mergerfs $out/bin/mount.fuse.mergerfs
ln -srf $out/bin/mergerfs $out/bin/mount.mergerfs
2019-04-25 04:53:29 +00:00
'';
2016-09-28 11:21:50 +00:00
meta = {
description = "A FUSE based union filesystem";
homepage = "https://github.com/trapexit/mergerfs";
2021-01-15 09:19:50 +00:00
license = lib.licenses.isc;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ jfrankenau makefu ];
2016-09-28 11:21:50 +00:00
};
}