blob: 3a8d1d646be820b4fda6a92c2ae4a601cba59836 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ stdenv, fetchFromGitHub, automake, autoconf, pkgconfig, gettext, libtool, pandoc, which, attr, libiconv }:
stdenv.mkDerivation rec {
name = "mergerfs-${version}";
version = "2.25.1";
src = fetchFromGitHub {
owner = "trapexit";
repo = "mergerfs";
rev = version;
sha256 = "1xrd18spp3wj25dd8513bah856w44gw8hilk190v13g6yafx64n6";
};
nativeBuildInputs = [
automake autoconf pkgconfig gettext libtool pandoc which
];
buildInputs = [ attr libiconv ];
preConfigure = ''
cat > src/version.hpp <<EOF
#pragma once
static const char MERGERFS_VERSION[] = "${version}";
EOF
'';
makeFlags = [ "PREFIX=$(out)" "XATTR_AVAILABLE=1" ];
postFixup = ''
ln -s $out/bin/mergerfs $out/bin/mount.fuse.mergerfs
'';
meta = {
description = "A FUSE based union filesystem";
homepage = https://github.com/trapexit/mergerfs;
license = stdenv.lib.licenses.isc;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ jfrankenau makefu ];
};
}
|