diff options
author | Ricardo M. Correia <rcorreia@wizy.org> | 2014-04-23 17:51:14 +0200 |
---|---|---|
committer | Ricardo M. Correia <rcorreia@wizy.org> | 2014-04-23 17:54:04 +0200 |
commit | 347db30cb8e92ae91889757382bcaa0f07e2afe0 (patch) | |
tree | b2a5fed7b72483f45dcd352a269ecaebd9bedaa3 /pkgs/tools/networking/nethogs | |
parent | a3b1f48c5daf373c8fdfecb9d5ffd270475da6e9 (diff) | |
download | nixlib-347db30cb8e92ae91889757382bcaa0f07e2afe0.tar nixlib-347db30cb8e92ae91889757382bcaa0f07e2afe0.tar.gz nixlib-347db30cb8e92ae91889757382bcaa0f07e2afe0.tar.bz2 nixlib-347db30cb8e92ae91889757382bcaa0f07e2afe0.tar.lz nixlib-347db30cb8e92ae91889757382bcaa0f07e2afe0.tar.xz nixlib-347db30cb8e92ae91889757382bcaa0f07e2afe0.tar.zst nixlib-347db30cb8e92ae91889757382bcaa0f07e2afe0.zip |
nethogs: Add package
nethogs is a small 'net top' tool, grouping bandwidth by process.
Diffstat (limited to 'pkgs/tools/networking/nethogs')
-rw-r--r-- | pkgs/tools/networking/nethogs/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/tools/networking/nethogs/default.nix b/pkgs/tools/networking/nethogs/default.nix new file mode 100644 index 000000000000..9747dc587711 --- /dev/null +++ b/pkgs/tools/networking/nethogs/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchgit, ncurses, libpcap }: + +stdenv.mkDerivation rec { + name = "nethogs-${version}"; + + version = "0.8.1-git"; + + src = fetchgit { + url = git://github.com/raboof/nethogs.git; + rev = "f6f9e890ea731b8acdcb8906642afae4cd96baa8"; + sha256 = "0dj5sdyxdlssbnjbdf8k7x896m2zgyyg31g12dl5n6irqdrb5scf"; + }; + + buildInputs = [ ncurses libpcap ]; + + preConfigure = '' + substituteInPlace Makefile --replace "prefix := /usr/local" "prefix := $out" + ''; + + meta = with stdenv.lib; { + description = "A small 'net top' tool, grouping bandwidth by process"; + longDescription = '' + NetHogs is a small 'net top' tool. Instead of breaking the traffic down + per protocol or per subnet, like most tools do, it groups bandwidth by + process. NetHogs does not rely on a special kernel module to be loaded. + If there's suddenly a lot of network traffic, you can fire up NetHogs + and immediately see which PID is causing this. This makes it easy to + identify programs that have gone wild and are suddenly taking up your + bandwidth. + ''; + license = licenses.gpl2Plus; + homepage = http://nethogs.sourceforge.net/; + platforms = platforms.linux; + maintainers = with maintainers; [ wizeman ]; + }; +} |