1 { lib, stdenv, fetchurl, ncurses, libpcap, automake, nixosTests }:
4 name = "iftop-1.0pre4";
7 url = "http://ex-parrot.com/pdw/iftop/download/iftop-1.0pre4.tar.gz";
8 sha256 = "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp";
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 = lib.optionalString stdenv.isLinux "-lgcc_s";
16 cp ${automake}/share/automake*/config.{sub,guess} config
19 buildInputs = [ncurses libpcap];
21 passthru.tests = { inherit (nixosTests) iftop; };
24 description = "Display bandwidth usage on a network interface";
26 iftop does for network usage what top(1) does for CPU usage. It listens
27 to network traffic on a named interface and displays a table of current
28 bandwidth usage by pairs of hosts.
30 license = licenses.gpl2Plus;
31 homepage = "http://ex-parrot.com/pdw/iftop/";
32 platforms = platforms.unix;