-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
mpssh: init at 1.3.3 #62662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mpssh: init at 1.3.3 #62662
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| { stdenv, fetchFromGitHub, openssh }: | ||
|
|
||
| stdenv.mkDerivation rec { | ||
| pname = "mpssh"; | ||
| version = "1.3.3"; | ||
|
|
||
| src = fetchFromGitHub { | ||
| sha256 = "0iibzb9qrwf9wsmp2b8j76qw66ql8fw5jx02x82a22fsaznb5dng"; | ||
| rev = version; | ||
| repo = pname; | ||
| owner = "ndenev"; | ||
| }; | ||
|
|
||
| buildInputs = [ openssh ]; | ||
|
|
||
| postPatch = '' | ||
| substituteInPlace Makefile --replace /usr/local $out | ||
| substituteInPlace Makefile --replace "-o root" "" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps use a patch, it will make it easier to notice when the substitution no longer applies patches = [
# Do not install as root
(fetchpatch {
url = https://github.com/ndenev/mpssh/commit/3cbb868b6fdf8dff9ab86868510c0455ad1ec1b3.patch;
sha256 = "0000000000000000000000000000000000000000000000000000000000000000";
})
]; |
||
| ''; | ||
|
|
||
| makeFlags = "CC=cc LD=cc BIN=$(out)/bin SSHPATH=${openssh}/bin/ssh SCPPATH=${openssh}/bin/scp"; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please make this a list: #45886 |
||
|
|
||
| meta = { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is usually nicer to use |
||
| homepage = "https://github.com/ndenev/mpssh"; | ||
| description = "Mass Parallel SSH"; | ||
| license = stdenv.lib.licenses.bsd3; | ||
|
|
||
| longDescription = '' | ||
| mpssh is a parallel ssh tool. What it does is connecting to a number of hosts | ||
| specified in the hosts file and execute the same command on all of them, | ||
| showing a nicely formatted output with each line prepended with the hostname | ||
| that produced the line. It is also possible to specify a script on the local filesystem | ||
| that will be first scp copied to the remote host and then executed. | ||
| ''; | ||
|
|
||
| platforms = stdenv.lib.platforms.unix; | ||
| maintainers = [ stdenv.lib.maintainers.ktf ]; | ||
| }; | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use
"BIN=${placeholder "out"}/bin"inmakeFlags.https://github.com/ndenev/mpssh/blob/6c577ee51e9ec7196c8ddc34768baeba317af8b5/Makefile#L8