3
0
Fork 0
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:
Jaakko Luttinen 2018-04-22 22:43:39 +03:00
parent 6c064e6b1f
commit 0f92afdd6d
No known key found for this signature in database
GPG key ID: 7B1CE13152E6B964

View file

@ -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; {