pssh: add explicit references to openssh and rsync

This commit is contained in:
Franz Pletz 2018-04-27 01:04:08 +02:00
parent dc62e8509a
commit 1ae220b689
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -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 = ''