nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 52 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 ncurses, 6 libpcap, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "nethogs"; 11 version = "0.8.8"; 12 13 src = fetchFromGitHub { 14 owner = "raboof"; 15 repo = "nethogs"; 16 rev = "v${finalAttrs.version}"; 17 sha256 = "sha256-+yVMyGSBIBWYjA9jaGWvrcsNPbJ6S4ax9H1BhWHYUUU="; 18 }; 19 20 buildInputs = [ 21 ncurses 22 libpcap 23 ]; 24 25 makeFlags = [ 26 "VERSION=${finalAttrs.version}" 27 "nethogs" 28 ]; 29 30 installFlags = [ 31 "PREFIX=$(out)" 32 "sbin=$(out)/bin" 33 ]; 34 35 meta = { 36 description = "Small 'net top' tool, grouping bandwidth by process"; 37 longDescription = '' 38 NetHogs is a small 'net top' tool. Instead of breaking the traffic down 39 per protocol or per subnet, like most tools do, it groups bandwidth by 40 process. NetHogs does not rely on a special kernel module to be loaded. 41 If there's suddenly a lot of network traffic, you can fire up NetHogs 42 and immediately see which PID is causing this. This makes it easy to 43 identify programs that have gone wild and are suddenly taking up your 44 bandwidth. 45 ''; 46 license = lib.licenses.gpl2Plus; 47 homepage = "https://github.com/raboof/nethogs#readme"; 48 platforms = lib.platforms.linux; 49 maintainers = [ lib.maintainers.rycee ]; 50 mainProgram = "nethogs"; 51 }; 52})