summary refs log tree commit diff
path: root/pkgs/tools/networking/iftop/default.nix
blob: 79e8f4426cb6e18e87b46f7605e9bb88baa5bc01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{stdenv, fetchurl, ncurses, libpcap}:

stdenv.mkDerivation rec {
  name = "iftop-0.17";

  src = fetchurl {
    url = http://ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz;
    sha256 = "1b0fis53280qx85gldhmqfcpgyiwplzg43gxyngia1w3f1y58cnh";
  };

  buildInputs = [ncurses libpcap];

  meta = {
    description = "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 = "GPLv2+";
    homepage = http://ex-parrot.com/pdw/iftop/;
  };
}