nixpkgs/pkgs/tools/networking/bwm-ng/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
1.5 KiB
Nix
Raw Normal View History

2021-08-30 09:03:31 +00:00
{ lib
, stdenv
, autoreconfHook
, fetchurl
, fetchpatch
2021-08-30 09:03:31 +00:00
, ncurses
}:
2013-08-14 11:00:59 +00:00
stdenv.mkDerivation rec {
2019-08-13 21:52:01 +00:00
pname = "bwm-ng";
2021-08-30 09:03:31 +00:00
version = "0.6.3";
2015-09-25 13:33:42 +00:00
2013-08-14 11:00:59 +00:00
src = fetchurl {
2019-08-13 21:52:01 +00:00
url = "https://www.gropp.org/bwm-ng/${pname}-${version}.tar.gz";
2021-08-30 09:03:31 +00:00
sha256 = "0ikzyvnb73msm9n7ripg1dsw9av1i0c7q2hi2173xsj8zyv559f1";
2013-08-14 11:00:59 +00:00
};
2015-05-14 21:49:02 +00:00
patches = [
# Pull upstream fix for ncurses-6.3 support.
(fetchpatch {
name = "ncurses-6.3.patch";
url = "https://github.com/vgropp/bwm-ng/commit/6a2087db6cc7ac5b5f667fcd17c262c079e8dcf2.patch";
sha256 = "1l5dii9d52v0x0sq458ybw7m9p8aan2vl94gwx5s8mgxsnbcmzzx";
# accidentally committed changes
excludes = [ "config.h.in~" "configure.in" "configure~" ];
})
];
2021-08-30 09:03:31 +00:00
nativeBuildInputs = [
autoreconfHook
];
2021-08-30 09:03:31 +00:00
buildInputs = [
ncurses
];
2015-05-14 21:49:02 +00:00
meta = with 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";
2021-08-30 09:03:31 +00:00
license = licenses.gpl2Plus;
2013-08-14 11:00:59 +00:00
platforms = platforms.unix;
2022-10-04 20:39:04 +00:00
maintainers = with maintainers; [ srapenne ];
2013-08-14 11:00:59 +00:00
longDescription = ''
2021-08-30 09:03:31 +00:00
bwm-ng supports:
- /proc/net/dev, netstat, getifaddr, sysctl, kstat, /proc/diskstats /proc/partitions, IOKit,
devstat and libstatgrab
- unlimited number of interfaces/devices
- 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
2013-08-14 11:00:59 +00:00
'';
};
}