2021-01-17 09:17:16 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, automake, autoconf, pkg-config, gettext, libtool, pandoc, which, attr, libiconv }:
|
2016-09-28 11:21:50 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-05-16 17:28:58 +00:00
|
|
|
pname = "mergerfs";
|
2021-03-03 01:53:29 +00:00
|
|
|
version = "2.32.4";
|
2016-09-28 11:21:50 +00:00
|
|
|
|
2018-04-13 09:37:54 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "trapexit";
|
2019-05-16 17:28:58 +00:00
|
|
|
repo = pname;
|
2018-04-13 09:37:54 +00:00
|
|
|
rev = version;
|
2021-03-03 01:53:29 +00:00
|
|
|
sha256 = "sha256-VTnAAJWya1JLZA0gjzpUsdnO5XQP8sJzEP8qHBH+t5k=";
|
2016-09-28 11:21:50 +00:00
|
|
|
};
|
|
|
|
|
2018-04-13 09:37:54 +00:00
|
|
|
nativeBuildInputs = [
|
2021-01-17 09:17:16 +00:00
|
|
|
automake autoconf pkg-config gettext libtool pandoc which
|
2018-04-13 09:37:54 +00:00
|
|
|
];
|
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
|
|
|
|
2018-04-13 09:37:54 +00:00
|
|
|
preConfigure = ''
|
2019-05-16 17:28:58 +00:00
|
|
|
echo "${version}" > VERSION
|
2018-04-13 09:37:54 +00:00
|
|
|
'';
|
|
|
|
|
2020-10-04 16:55:21 +00:00
|
|
|
makeFlags = [ "DESTDIR=${placeholder "out"}" "XATTR_AVAILABLE=1" "PREFIX=/" "SBINDIR=/bin" ];
|
2019-05-16 17:28:58 +00:00
|
|
|
enableParallelBuilding = true;
|
2016-09-28 11:21:50 +00:00
|
|
|
|
2019-04-25 04:53:29 +00:00
|
|
|
postFixup = ''
|
2019-05-16 17:28:58 +00:00
|
|
|
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";
|
2019-05-16 17:28:58 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|