mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
pssh: add explicit references to openssh and rsync
This commit is contained in:
parent
dc62e8509a
commit
1ae220b689
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, pythonPackages }:
|
||||
{ stdenv, fetchFromGitHub, pythonPackages, openssh, rsync }:
|
||||
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
name = "pssh-${version}";
|
||||
@ -11,6 +11,15 @@ pythonPackages.buildPythonApplication rec {
|
||||
sha256 = "0nawarxczfwajclnlsimhqkpzyqb1byvz9nsl54mi1bp80z5i4jq";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
for f in bin/*; do
|
||||
substituteInPlace $f \
|
||||
--replace "'ssh'" "'${openssh}/bin/ssh'" \
|
||||
--replace "'scp'" "'${openssh}/bin/scp'" \
|
||||
--replace "'rsync'" "'${rsync}/bin/rsync'"
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Parallel SSH Tools";
|
||||
longDescription = ''
|
||||
|
Loading…
Reference in New Issue
Block a user