mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
Merge pull request #43542 from jfrankenau/init-mergerfs-tools
mergerfs-tools: init at 20171221
This commit is contained in:
commit
868a1855b7
36
pkgs/tools/filesystems/mergerfs/tools.nix
Normal file
36
pkgs/tools/filesystems/mergerfs/tools.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user