nixpkgs/pkgs/tools/filesystems/mergerfs/default.nix
Jörg Thalheim ca6a4bf05d mergerfs: 2.24.0 -> 2.24.2
Remove .git because it tend to break hashes.
2018-04-13 10:44:01 +01:00

35 lines
956 B
Nix

{ stdenv, fetchFromGitHub, automake, autoconf, pkgconfig, gettext, libtool, pandoc, which, attr, libiconv }:
stdenv.mkDerivation rec {
name = "mergerfs-${version}";
version = "2.24.2";
src = fetchFromGitHub {
owner = "trapexit";
repo = "mergerfs";
rev = version;
sha256 = "0i65v7900s7c9jkj3a4v44vf3r5mvjkbcic3df940nmk0clahhcs";
};
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" ];
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 ];
};
}