nixpkgs/pkgs/tools/networking/iftop/default.nix
Bjørn Forsman 386bef322d iftop: improve meta attributes
- The description attribute is very long, so rename it to
  longDescription and add a short text in the description attribute.
- Use licenses.gpl2Plus instead of free form text "GPLv2+".
- Add platforms attribute so that hydra will build the package.
2013-07-28 14:04:44 +02:00

33 lines
989 B
Nix

{stdenv, fetchurl, ncurses, libpcap, automake}:
stdenv.mkDerivation rec {
name = "iftop-0.17";
src = fetchurl {
url = http://ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz;
sha256 = "1b0fis53280qx85gldhmqfcpgyiwplzg43gxyngia1w3f1y58cnh";
};
# Explicitly link against libgcc_s, to work around the infamous
# "libgcc_s.so.1 must be installed for pthread_cancel to work".
LDFLAGS = "-lgcc_s";
preConfigure = ''
cp ${automake}/share/automake*/config.{sub,guess} config
'';
buildInputs = [ncurses libpcap];
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;
homepage = http://ex-parrot.com/pdw/iftop/;
platforms = platforms.linux;
};
}