zrepl: wrap with ssh in PATH
This allows the ssh+stdinserver connection type function properly.
This commit is contained in:
parent
2ed84aa0f2
commit
7078db04e0
|
@ -1,5 +1,9 @@
|
||||||
{ lib, buildGoModule, fetchFromGitHub }:
|
{ lib
|
||||||
|
, buildGoModule
|
||||||
|
, fetchFromGitHub
|
||||||
|
, makeWrapper
|
||||||
|
, openssh
|
||||||
|
}:
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "zrepl";
|
pname = "zrepl";
|
||||||
version = "0.4.0";
|
version = "0.4.0";
|
||||||
|
@ -15,10 +19,17 @@ buildGoModule rec {
|
||||||
|
|
||||||
subPackages = [ "." ];
|
subPackages = [ "." ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
makeWrapper
|
||||||
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/lib/systemd/system
|
mkdir -p $out/lib/systemd/system
|
||||||
substitute dist/systemd/zrepl.service $out/lib/systemd/system/zrepl.service \
|
substitute dist/systemd/zrepl.service $out/lib/systemd/system/zrepl.service \
|
||||||
--replace /usr/local/bin/zrepl $out/bin/zrepl
|
--replace /usr/local/bin/zrepl $out/bin/zrepl
|
||||||
|
|
||||||
|
wrapProgram $out/bin/zrepl \
|
||||||
|
--prefix PATH : ${lib.makeBinPath [ openssh ]}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue