1 { lib, stdenv, fetchFromGitHub, coreutils, makeWrapper
4 stdenv.mkDerivation rec {
5 pname = "mergerfs-tools";
8 src = fetchFromGitHub {
11 rev = "80d6c9511da554009415d67e7c0ead1256c1fc41";
12 hash = "sha256-9sn2ziIjes2squSGbjjXVch2zDFjQruWB4282p4jWcY=";
15 nativeBuildInputs = [ makeWrapper ];
16 buildInputs = [ python3 ];
19 "INSTALL=${coreutils}/bin/install"
20 "PREFIX=${placeholder "out"}"
24 wrapProgram $out/bin/mergerfs.balance --prefix PATH : ${lib.makeBinPath [ rsync ]}
25 wrapProgram $out/bin/mergerfs.dup --prefix PATH : ${lib.makeBinPath [ rsync ]}
26 wrapProgram $out/bin/mergerfs.mktrash --prefix PATH : ${lib.makeBinPath [ python3.pkgs.xattr ]}
30 description = "Optional tools to help manage data in a mergerfs pool";
31 homepage = "https://github.com/trapexit/mergerfs-tools";
32 license = licenses.isc;
33 platforms = platforms.linux;
34 maintainers = with maintainers; [ makefu ];