1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/tools/filesystems/mergerfs/default.nix

42 lines
1.1 KiB
Nix
Raw Normal View History

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