-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
nicstat: init at 0-unstable-2018-05-09 #324417
Conversation
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.
I successfully tested this on x86_64-linux.
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.
Is this really needed? The repository seems to be archived and the last commit is from 6 years ago. No offense but it sounds like a maintenance burden and a magnet for attracting CVEs.
EDIT: and this does not compile on aarch64-darwin
so I don't know the point for setting unix
in meta.platforms
.
johnrtitor@darwin01 ~ % nix build "github:nixos/nixpkgs/refs/pull/324417/merge#nicstat" --print-out-paths
error: builder for '/nix/store/4yaxj1f6c1wlg3qpk6kw2nz9yc711hzl-nicstat-0-unstable-2018-05-09.drv' failed with exit code 1;
last 10 log lines:
> nicstat.c:2804:3: error: call to undeclared function 'update_stats'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
> update_stats(net_dev);
> ^
> nicstat.c:2857:6: warning: add explicit braces to avoid dangling else [-Wdangling-else]
> } else {
> ^
> nicstat.c:2891:4: error: call to undeclared function 'sleep_for'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
> sleep_for(pause_m, &now);
> ^
> 1 warning and 17 errors generated.
For full logs, run 'nix log /nix/store/4yaxj1f6c1wlg3qpk6kw2nz9yc711hzl-nicstat-0-unstable-2018-05-09.drv'.
nix build "github:nixos/nixpkgs/refs/pull/324417/merge#nicstat" 2.22s user 12.50s system 39% cpu 37.506 total
1 johnrtitor@darwin01 ~ %
Attracting CVEs where? Affecting Nix's build infrastructure? If you could point me to alternatives that provide similar functionality, I'd be very grateful. :)
@AndersonTorres, could you please clarify this? :) |
Theey meant that it would imply we are providing outdated and potentially insecure software, not that insecure software is being used to maintain Nixpkgs infra.
I tend to agree.
Theey meant to say theey tried to build it on Darwin and it failed. Then, please add |
It only supports Linux and Solaris. Not sure whether we track Solaris support for packages somewhere.
Will do. |
Result of 1 package built:
|
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.
LGTM
Project description
nicstat is a tool similar to iostat, but for network interfaces.
Originally written by Brendan Gregg for Solaris. Ported to Linux by Tim Cook.
Closes #324060
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.