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
grepcidr: Init at 2.0 #38685
grepcidr: Init at 2.0 #38685
Conversation
|
||
installPhase = '' | ||
mkdir -p $out/bin | ||
cp grepcidr $out/bin/ |
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.
Please use the default installPhase
. You'll probably have to set something like
installFlags = [ "PREFIX=$out" ];
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.
checked the makefile. installFlags = [ "PREFIX=$(out)" ];
should work.
version = "2.0"; | ||
|
||
src = fetchurl { | ||
url = "http://www.pc-tools.net/files/unix/grepcidr-${version}.tar.gz"; |
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.
grepcidr-${version}
can be replaced by ${name}
@GrahamcOfBorg build grepcidr |
Success on aarch64-linux (full log) Attempted: grepcidr Partial log (click to expand)
|
description = "Filter IPv4 and IPv6 addresses matching CIDR patterns"; | ||
homepage = http://www.pc-tools.net/unix/grepcidr/; | ||
license = licenses.gpl3; | ||
platforms = platforms.unix; |
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.
Did you test this on macOS?
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.
@dotlambda yes, tested and working with:
- system:
"x86_64-darwin"
- host os:
Darwin 16.7.0, macOS 10.12.6
- multi-user?:
yes
- sandbox:
no
Success on x86_64-linux (full log) Attempted: grepcidr Partial log (click to expand)
|
Motivation for this change
grepcidr was not available on NixOS: http://www.pc-tools.net/unix/grepcidr/
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)