mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
d5cceedbd1
Since aliases are disallowed in nixpkgs, this makes usage of Python 2 which is EOL more explicit.
35 lines
944 B
Nix
35 lines
944 B
Nix
{ lib, fetchFromGitHub, python2Packages, openssh, rsync }:
|
|
|
|
python2Packages.buildPythonApplication rec {
|
|
pname = "pssh";
|
|
version = "2.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lilydjwg";
|
|
repo = "pssh";
|
|
rev = "v${version}";
|
|
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 lib; {
|
|
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;
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
maintainers = with maintainers; [ chris-martin ];
|
|
};
|
|
}
|