2010-10-03 10:18:55 +01:00
|
|
|
{stdenv, fetchurl, ncurses, libpcap, automake}:
|
2009-10-08 08:01:55 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-10-25 00:36:43 +01:00
|
|
|
name = "iftop-1.0pre4";
|
2009-10-08 08:01:55 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-10-25 00:36:43 +01:00
|
|
|
url = http://ex-parrot.com/pdw/iftop/download/iftop-1.0pre4.tar.gz;
|
|
|
|
sha256 = "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp";
|
2009-10-08 08:01:55 +01:00
|
|
|
};
|
|
|
|
|
2013-03-08 08:08:57 +00:00
|
|
|
# Explicitly link against libgcc_s, to work around the infamous
|
|
|
|
# "libgcc_s.so.1 must be installed for pthread_cancel to work".
|
2015-07-06 01:47:54 +01:00
|
|
|
LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
|
2013-03-08 08:08:57 +00:00
|
|
|
|
2010-10-03 10:18:55 +01:00
|
|
|
preConfigure = ''
|
|
|
|
cp ${automake}/share/automake*/config.{sub,guess} config
|
|
|
|
'';
|
|
|
|
|
2009-10-08 08:01:55 +01:00
|
|
|
buildInputs = [ncurses libpcap];
|
|
|
|
|
2013-07-28 13:04:44 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Display bandwidth usage on a network interface";
|
|
|
|
longDescription = ''
|
|
|
|
iftop does for network usage what top(1) does for CPU usage. It listens
|
|
|
|
to network traffic on a named interface and displays a table of current
|
|
|
|
bandwidth usage by pairs of hosts.
|
|
|
|
'';
|
|
|
|
license = licenses.gpl2Plus;
|
2009-10-08 08:01:55 +01:00
|
|
|
homepage = http://ex-parrot.com/pdw/iftop/;
|
2015-07-06 01:47:54 +01:00
|
|
|
platforms = platforms.unix;
|
2014-09-13 12:51:39 +01:00
|
|
|
maintainers = [ maintainers.mornfall ];
|
2009-10-08 08:01:55 +01:00
|
|
|
};
|
|
|
|
}
|