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