zrepl: wrap with ssh in PATH

This allows the ssh+stdinserver connection type function properly.

+13 -2
+13 -2
pkgs/tools/backup/zrepl/default.nix
··· 1 - { lib, buildGoModule, fetchFromGitHub }: 2 - 1 + { lib 2 + , buildGoModule 3 + , fetchFromGitHub 4 + , makeWrapper 5 + , openssh 6 + }: 3 7 buildGoModule rec { 4 8 pname = "zrepl"; 5 9 version = "0.4.0"; ··· 15 19 16 20 subPackages = [ "." ]; 17 21 22 + nativeBuildInputs = [ 23 + makeWrapper 24 + ]; 25 + 18 26 postInstall = '' 19 27 mkdir -p $out/lib/systemd/system 20 28 substitute dist/systemd/zrepl.service $out/lib/systemd/system/zrepl.service \ 21 29 --replace /usr/local/bin/zrepl $out/bin/zrepl 30 + 31 + wrapProgram $out/bin/zrepl \ 32 + --prefix PATH : ${lib.makeBinPath [ openssh ]} 22 33 ''; 23 34 24 35 meta = with lib; {