at v206 33 lines 1.1 kB view raw
1{stdenv, fetchurl, ncurses, libpcap, automake}: 2 3stdenv.mkDerivation rec { 4 name = "iftop-0.17"; 5 6 src = fetchurl { 7 url = http://ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz; 8 sha256 = "1b0fis53280qx85gldhmqfcpgyiwplzg43gxyngia1w3f1y58cnh"; 9 }; 10 11 # Explicitly link against libgcc_s, to work around the infamous 12 # "libgcc_s.so.1 must be installed for pthread_cancel to work". 13 LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s"; 14 15 preConfigure = '' 16 cp ${automake}/share/automake*/config.{sub,guess} config 17 ''; 18 19 buildInputs = [ncurses libpcap]; 20 21 meta = with stdenv.lib; { 22 description = "Display bandwidth usage on a network interface"; 23 longDescription = '' 24 iftop does for network usage what top(1) does for CPU usage. It listens 25 to network traffic on a named interface and displays a table of current 26 bandwidth usage by pairs of hosts. 27 ''; 28 license = licenses.gpl2Plus; 29 homepage = http://ex-parrot.com/pdw/iftop/; 30 platforms = platforms.unix; 31 maintainers = [ maintainers.mornfall ]; 32 }; 33}