nixpkgs/pkgs/tools/networking/bwm-ng/default.nix
Silvan Mosberger f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00

52 lines
2 KiB
Nix

{ stdenv, fetchurl, ncurses }:
let
version = "0.6.1";
in
stdenv.mkDerivation rec {
name = "bwm-ng-${version}";
src = fetchurl {
url = "http://www.gropp.org/bwm-ng/${name}.tar.gz";
sha256 = "1w0dwpjjm9pqi613i8glxrgca3rdyqyp3xydzagzr5ndc34z6z02";
};
buildInputs = [ ncurses ];
# This code uses inline in the gnu89 sense: see http://clang.llvm.org/compatibility.html#inline
NIX_CFLAGS_COMPILE = if stdenv.cc.isClang then "-std=gnu89" else null;
meta = with stdenv.lib; {
description = "A small and simple console-based live network and disk io bandwidth monitor";
homepage = http://www.gropp.org/?id=projects&sub=bwm-ng;
license = licenses.gpl2;
platforms = platforms.unix;
longDescription = ''
Features
supports /proc/net/dev, netstat, getifaddr, sysctl, kstat, /proc/diskstats /proc/partitions, IOKit, devstat and libstatgrab
unlimited number of interfaces/devices supported
interfaces/devices are added or removed dynamically from list
white-/blacklist of interfaces/devices
output of KB/s, Kb/s, packets, errors, average, max and total sum
output in curses, plain console, CSV or HTML
configfile
Short list of changes since 0.5 (for full list read changelog):
curses2 output, a nice bar chart
disk input for bsd/macosx/linux/solaris
win32 network bandwidth support
moved to autotools
alot fixes
Info
This was influenced by the old bwm util written by Barney (barney@freewill.tzo.com) which had some issues with faster interfaces and was very simple. Since i had almost all code done anyway for other projects, i decided to create my own version.
I actually don't know if netstat input is useful at all. I saw this elsewhere, so i added it. Its target is "netstat 1.42 (2001-04-15)" linux or Free/Open/netBSD. If there are other formats i would be happy to add them.
(from homepage)
'';
};
}