diff options
author | Rob Vermaas <rob.vermaas@gmail.com> | 2014-04-25 11:34:22 +0200 |
---|---|---|
committer | Rob Vermaas <rob.vermaas@gmail.com> | 2014-04-25 11:34:22 +0200 |
commit | 477b9a9bbb9421afa945e501ac16af11c91d12f4 (patch) | |
tree | 94f0079bd337e617381481a981c5e936e50ca53c /pkgs | |
parent | 954bc3131e0cdf831cf45c45186973224bdda753 (diff) | |
parent | 347db30cb8e92ae91889757382bcaa0f07e2afe0 (diff) | |
download | nixlib-477b9a9bbb9421afa945e501ac16af11c91d12f4.tar nixlib-477b9a9bbb9421afa945e501ac16af11c91d12f4.tar.gz nixlib-477b9a9bbb9421afa945e501ac16af11c91d12f4.tar.bz2 nixlib-477b9a9bbb9421afa945e501ac16af11c91d12f4.tar.lz nixlib-477b9a9bbb9421afa945e501ac16af11c91d12f4.tar.xz nixlib-477b9a9bbb9421afa945e501ac16af11c91d12f4.tar.zst nixlib-477b9a9bbb9421afa945e501ac16af11c91d12f4.zip |
Merge pull request #2363 from wizeman/u/nethogs
nethogs: Add package
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/networking/nethogs/default.nix | 36 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 38 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 56b20ed10c82..2fed56c49fec 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1503,6 +1503,8 @@ let netcat-openbsd = callPackage ../tools/networking/netcat-openbsd { }; + nethogs = callPackage ../tools/networking/nethogs { }; + netkittftp = callPackage ../tools/networking/netkit/tftp { }; netpbm = callPackage ../tools/graphics/netpbm { }; |