1 { lib, stdenv, fetchFromGitHub, coreutils, makeWrapper
4 stdenv.mkDerivation rec {
5 pname = "mergerfs-tools";
8 src = fetchFromGitHub {
11 rev = "6e41fc5848c7cc4408caea86f3991c8cc2ac85a1";
12 sha256 = "0izswg6bya13scvb37l3gkl7mvi8q7l11p4hp4phdlcwh9jvdzcj";
15 nativeBuildInputs = [ makeWrapper ];
16 buildInputs = [ python3 ];
19 "INSTALL=${coreutils}/bin/install"
20 "PREFIX=${placeholder "out"}"
23 postInstall = with lib; ''
24 wrapProgram $out/bin/mergerfs.balance --prefix PATH : ${makeBinPath [ rsync ]}
25 wrapProgram $out/bin/mergerfs.dup --prefix PATH : ${makeBinPath [ rsync ]}
26 wrapProgram $out/bin/mergerfs.mktrash --prefix PATH : ${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; [ jfrankenau ];