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 {
|
|
|
|
name = "mergerfs-${version}";
|
2019-05-12 04:55:46 +01:00
|
|
|
version = "2.26.0";
|
2016-09-28 12:21:50 +01:00
|
|
|
|
2018-04-13 10:37:54 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "trapexit";
|
|
|
|
repo = "mergerfs";
|
|
|
|
rev = version;
|
2019-05-12 04:55:46 +01:00
|
|
|
sha256 = "1arq09rn1lmvv7gj3ymwdiygm620zdcx1jh2qpa1dxrdg8xrwqa9";
|
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 = ''
|
|
|
|
cat > src/version.hpp <<EOF
|
|
|
|
#pragma once
|
|
|
|
static const char MERGERFS_VERSION[] = "${version}";
|
|
|
|
EOF
|
|
|
|
'';
|
|
|
|
|
2016-09-28 12:21:50 +01:00
|
|
|
makeFlags = [ "PREFIX=$(out)" "XATTR_AVAILABLE=1" ];
|
|
|
|
|
2019-04-25 05:53:29 +01:00
|
|
|
postFixup = ''
|
|
|
|
ln -s $out/bin/mergerfs $out/bin/mount.fuse.mergerfs
|
|
|
|
'';
|
|
|
|
|
2016-09-28 12:21:50 +01:00
|
|
|
meta = {
|
|
|
|
description = "A FUSE based union filesystem";
|
|
|
|
homepage = https://github.com/trapexit/mergerfs;
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|