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
sshping: init at 0.1.4 #71019
sshping: init at 0.1.4 #71019
Conversation
|
||
src = fetchFromGitHub { | ||
owner = "spook"; | ||
repo = "sshping"; |
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.
repo = "sshping"; | |
repo = name; |
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.
Not sure it would be clearer.
''; | ||
|
||
meta = with stdenv.lib; { | ||
homepage = https://github.com/spook/sshping; |
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.
homepage = https://github.com/spook/sshping; | |
homepage = "https://github.com/spook/sshping"; |
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.
Fixed, thanks!
buildInputs = [ libssh ]; | ||
|
||
buildPhase = '' | ||
g++ -Wall -I ext/ -o bin/sshping src/sshping.cxx -lssh |
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.
Why not to use the upstream's Makefile?
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.
The upstream Makefile has a hardcoded path for libssh.h (/usr/include/libssh/libssh.h). Since the build a single command, I think it's slightly simpler to have it here than it would be to fix the Makefile.
@GrahamcOfBorg build sshping |
7f18a14
to
42738db
Compare
sshping: init at 0.1.4 (cherry picked from commit 495f4ee)
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)