2018-04-13 10:37:54 +01:00
|
|
|
{ stdenv, fetchFromGitHub, automake, autoconf, pkgconfig, gettext, libtool, pandoc, which, attr, libiconv }:
|
2016-09-28 12:21:50 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-05-16 18:28:58 +01:00
|
|
|
pname = "mergerfs";
|
2019-06-17 09:09:50 +01:00
|
|
|
version = "2.28.1";
|
2016-09-28 12:21:50 +01:00
|
|
|
|
2018-04-13 10:37:54 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "trapexit";
|
2019-05-16 18:28:58 +01:00
|
|
|
repo = pname;
|
2018-04-13 10:37:54 +01:00
|
|
|
rev = version;
|
2019-06-17 09:09:50 +01:00
|
|
|
sha256 = "18yc80ccpqf785gah5xw6jg5524wfra8bf3pcjr7idzdz4ca7nvf";
|
2016-09-28 12:21:50 +01:00
|
|
|
};
|
|
|
|
|
2018-04-13 10:37:54 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
automake autoconf pkgconfig gettext libtool pandoc which
|
|
|
|
];
|
2017-06-28 13:32:13 +01:00
|
|
|
buildInputs = [ attr libiconv ];
|
2016-09-28 12:21:50 +01:00
|
|
|
|
2018-04-13 10:37:54 +01:00
|
|
|
preConfigure = ''
|
2019-05-16 18:28:58 +01:00
|
|
|
echo "${version}" > VERSION
|
2018-04-13 10:37:54 +01:00
|
|
|
'';
|
|
|
|
|
2019-05-16 18:28:58 +01:00
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" "XATTR_AVAILABLE=1" ];
|
|
|
|
enableParallelBuilding = true;
|
2016-09-28 12:21:50 +01:00
|
|
|
|
2019-04-25 05:53:29 +01:00
|
|
|
postFixup = ''
|
2019-05-16 18:28:58 +01:00
|
|
|
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";
|
2019-05-16 18:28:58 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|