forked from mirrors/nixpkgs
diskrsync: fix argv0
When using diskrsync over SSH, on the remote machine it calls an executable equal to argv0. Typically, this is just diskrsync but now that diskrsync is wrapped, the wrapper uses absolute path to diskrsync and that path doesn't most likely work on the remote machine. Thus, we need to force argv0 to "diskrsync" so that it works on the remote machine.
This commit is contained in:
parent
6c064e6b1f
commit
0f92afdd6d
|
@ -19,7 +19,7 @@ buildGoPackage rec {
|
|||
buildInputs = [ makeWrapper ];
|
||||
|
||||
preFixup = ''
|
||||
wrapProgram "$bin/bin/diskrsync" --prefix PATH : ${openssh}/bin
|
||||
wrapProgram "$bin/bin/diskrsync" --argv0 diskrsync --prefix PATH : ${openssh}/bin
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
Loading…
Reference in a new issue