diff options
author | Vladimir Still <xstill@fi.muni.cz> | 2013-08-14 13:00:59 +0200 |
---|---|---|
committer | Rok Garbas <rok@garbas.si> | 2013-08-16 14:57:16 +0200 |
commit | eb97daf88d1153823e8b7ecf0063fcc1b180966e (patch) | |
tree | c112db30f61dc20c28416254e54c9765dd6ac59d /pkgs/tools/networking/bwm-ng | |
parent | 330219d0c4778413ec2b68d9b655316ceeb48ea1 (diff) | |
download | nixpkgs-eb97daf88d1153823e8b7ecf0063fcc1b180966e.tar nixpkgs-eb97daf88d1153823e8b7ecf0063fcc1b180966e.tar.gz nixpkgs-eb97daf88d1153823e8b7ecf0063fcc1b180966e.tar.bz2 nixpkgs-eb97daf88d1153823e8b7ecf0063fcc1b180966e.tar.lz nixpkgs-eb97daf88d1153823e8b7ecf0063fcc1b180966e.tar.xz nixpkgs-eb97daf88d1153823e8b7ecf0063fcc1b180966e.tar.zst nixpkgs-eb97daf88d1153823e8b7ecf0063fcc1b180966e.zip |
networking: Add bwm-ng expression.
Diffstat (limited to 'pkgs/tools/networking/bwm-ng')
-rw-r--r-- | pkgs/tools/networking/bwm-ng/default.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/tools/networking/bwm-ng/default.nix b/pkgs/tools/networking/bwm-ng/default.nix new file mode 100644 index 00000000000..88460d86730 --- /dev/null +++ b/pkgs/tools/networking/bwm-ng/default.nix @@ -0,0 +1,46 @@ +{ stdenv, fetchurl, ncurses }: + +stdenv.mkDerivation rec { + name = "bwm-ng-0.6"; + + src = fetchurl { + url = "http://www.gropp.org/bwm-ng/${name}.tar.gz"; + sha256 = "1pgzc8y2y73n72qvbd2g0dkbkw5h0f83k5h9id1rsck8w9c464y1"; + }; + + buildInputs = [ ncurses ]; + + meta = with stdenv.lib; { + description = "Bandwidth Monitor NG is 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 dont know if netstat input is usefull 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) + ''; + }; +} |