2022-04-26 13:29:38 +00:00
|
|
|
{ lib, fetchFromGitHub, python3Packages, openssh, rsync }:
|
2016-12-06 05:46:48 +00:00
|
|
|
|
2022-04-26 13:29:38 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "pssh";
|
2022-04-26 13:29:38 +00:00
|
|
|
version = "2.3.4";
|
2016-12-06 05:46:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lilydjwg";
|
|
|
|
repo = "pssh";
|
|
|
|
rev = "v${version}";
|
2022-04-26 13:29:38 +00:00
|
|
|
hash = "sha256-B1dIa6hNeq4iE8GKVhTp3Gzq7vp+v5Yyzj8uF8X71yg=";
|
2016-12-06 05:46:48 +00:00
|
|
|
};
|
|
|
|
|
2018-04-26 23:04:08 +00: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
|
|
|
|
'';
|
|
|
|
|
2022-04-26 13:29:38 +00:00
|
|
|
# Tests do not run with python3: https://github.com/lilydjwg/pssh/issues/126
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-12-06 05:46:48 +00: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 05:52:37 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2016-12-06 05:46:48 +00:00
|
|
|
maintainers = with maintainers; [ chris-martin ];
|
|
|
|
};
|
|
|
|
}
|