nixpkgs-suyu/pkgs/tools/filesystems/mergerfs/default.nix

36 lines
956 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, automake, autoconf, pkgconfig, gettext, libtool, pandoc, which, attr, libiconv }:
2016-09-28 13:21:50 +02:00
stdenv.mkDerivation rec {
name = "mergerfs-${version}";
version = "2.24.2";
2016-09-28 13:21:50 +02:00
src = fetchFromGitHub {
owner = "trapexit";
repo = "mergerfs";
rev = version;
sha256 = "0i65v7900s7c9jkj3a4v44vf3r5mvjkbcic3df940nmk0clahhcs";
2016-09-28 13:21:50 +02:00
};
nativeBuildInputs = [
automake autoconf pkgconfig gettext libtool pandoc which
];
2017-06-28 14:32:13 +02:00
buildInputs = [ attr libiconv ];
2016-09-28 13:21:50 +02:00
preConfigure = ''
cat > src/version.hpp <<EOF
#pragma once
static const char MERGERFS_VERSION[] = "${version}";
EOF
'';
2016-09-28 13:21:50 +02:00
makeFlags = [ "PREFIX=$(out)" "XATTR_AVAILABLE=1" ];
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 14:32:13 +02:00
maintainers = with stdenv.lib.maintainers; [ jfrankenau makefu ];
2016-09-28 13:21:50 +02:00
};
}