Merge pull request #43542 from jfrankenau/init-mergerfs-tools

mergerfs-tools: init at 20171221
This commit is contained in:
Jörg Thalheim 2018-07-15 15:01:04 -04:00 committed by GitHub
commit 868a1855b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{ stdenv, fetchFromGitHub, coreutils, makeWrapper
, rsync, python3, pythonPackages }:
stdenv.mkDerivation rec {
name = "mergerfs-tools-${version}";
version = "20171221";
src = fetchFromGitHub {
owner = "trapexit";
repo = "mergerfs-tools";
rev = "9b4fe0097b5b51e1a7411a26eb344a24cc8ce1b4";
sha256 = "0qrixh3j58gzkmc8r2sgzgy56gm8bmhakwlc2gjb0yrpa1213na1";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ python3 ];
makeFlags = [
"INSTALL=${coreutils}/bin/install"
"PREFIX=$(out)"
];
postInstall = with stdenv.lib; ''
wrapProgram $out/bin/mergerfs.balance --prefix PATH : ${makeBinPath [ rsync ]}
wrapProgram $out/bin/mergerfs.dup --prefix PATH : ${makeBinPath [ rsync ]}
wrapProgram $out/bin/mergerfs.mktrash --prefix PATH : ${makeBinPath [ pythonPackages.xattr ]}
'';
meta = with stdenv.lib; {
description = "Optional tools to help manage data in a mergerfs pool";
homepage = https://github.com/trapexit/mergerfs-tools;
license = licenses.isc;
platforms = platforms.linux;
maintainers = with maintainers; [ jfrankenau ];
};
}

View File

@ -10919,6 +10919,8 @@ with pkgs;
mergerfs = callPackage ../tools/filesystems/mergerfs { };
mergerfs-tools = callPackage ../tools/filesystems/mergerfs/tools.nix { };
## libGL/libGLU/Mesa stuff
# Default libGL implementation, should provide headers and libGL.so/libEGL.so/... to link agains them