at v192 35 lines 1.2 kB view raw
1{ stdenv, fetchgit, ncurses, libpcap }: 2 3stdenv.mkDerivation rec { 4 name = "nethogs-${version}"; 5 6 version = "0.8.1-git"; 7 8 src = fetchgit { 9 url = git://github.com/raboof/nethogs.git; 10 rev = "f6f9e890ea731b8acdcb8906642afae4cd96baa8"; 11 sha256 = "0dj5sdyxdlssbnjbdf8k7x896m2zgyyg31g12dl5n6irqdrb5scf"; 12 }; 13 14 buildInputs = [ ncurses libpcap ]; 15 16 preConfigure = '' 17 substituteInPlace Makefile --replace "prefix := /usr/local" "prefix := $out" 18 ''; 19 20 meta = with stdenv.lib; { 21 description = "A small 'net top' tool, grouping bandwidth by process"; 22 longDescription = '' 23 NetHogs is a small 'net top' tool. Instead of breaking the traffic down 24 per protocol or per subnet, like most tools do, it groups bandwidth by 25 process. NetHogs does not rely on a special kernel module to be loaded. 26 If there's suddenly a lot of network traffic, you can fire up NetHogs 27 and immediately see which PID is causing this. This makes it easy to 28 identify programs that have gone wild and are suddenly taking up your 29 bandwidth. 30 ''; 31 license = licenses.gpl2Plus; 32 homepage = http://nethogs.sourceforge.net/; 33 platforms = platforms.linux; 34 }; 35}