2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pythonPackages, openssh, rsync }:
|
2016-12-06 06:46:48 +01:00
|
|
|
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "pssh";
|
2016-12-06 06:46:48 +01:00
|
|
|
version = "2.3.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lilydjwg";
|
|
|
|
repo = "pssh";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0nawarxczfwajclnlsimhqkpzyqb1byvz9nsl54mi1bp80z5i4jq";
|
|
|
|
};
|
|
|
|
|
2018-04-27 01:04:08 +02:00
|
|
|
postPatch = ''
|
|
|
|
for f in bin/*; do
|
|
|
|
substituteInPlace $f \
|
|
|
|
--replace "'ssh'" "'${openssh}/bin/ssh'" \
|
|
|
|
--replace "'scp'" "'${openssh}/bin/scp'" \
|
|
|
|
--replace "'rsync'" "'${rsync}/bin/rsync'"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-12-06 06:46:48 +01:00
|
|
|
description = "Parallel SSH Tools";
|
|
|
|
longDescription = ''
|
|
|
|
PSSH provides parallel versions of OpenSSH and related tools,
|
|
|
|
including pssh, pscp, prsync, pnuke and pslurp.
|
|
|
|
'';
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
license = licenses.bsd3;
|
2017-11-24 06:52:37 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2016-12-06 06:46:48 +01:00
|
|
|
maintainers = with maintainers; [ chris-martin ];
|
|
|
|
};
|
|
|
|
}
|