Files
nixpkgs/pkgs/by-name/ps/pssh/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
1.2 KiB
Nix

{
lib,
fetchFromGitHub,
python3Packages,
openssh,
rsync,
}:
python3Packages.buildPythonApplication rec {
pname = "pssh";
version = "2.3.5";
pyproject = true;
src = fetchFromGitHub {
owner = "lilydjwg";
repo = "pssh";
tag = "v${version}";
hash = "sha256-JZOO5xmW34lvWzGL4tC9fquZOOYhub0/aa/iQ63rjHE=";
};
build-system = with python3Packages; [ setuptools ];
postPatch = ''
for f in bin/*; do
substituteInPlace $f \
--replace "'ssh'" "'${openssh}/bin/ssh'" \
--replace "'scp'" "'${openssh}/bin/scp'" \
--replace "'rsync'" "'${rsync}/bin/rsync'"
done
'';
# Tests do not run with python3: https://github.com/lilydjwg/pssh/issues/126
doCheck = false;
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;
changelog = "https://github.com/lilydjwg/pssh/blob/${src.tag}/ChangeLog";
license = licenses.bsd3;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ chris-martin ];
};
}