summary refs log tree commit diff
path: root/pkgs/tools/networking/ifstat-legacy/default.nix
blob: 72aaaa1e1706ae3a5f34fef0f1e113547e5a31dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchurl, autoreconfHook, net-snmp }:

stdenv.mkDerivation rec {
  pname = "ifstat-legacy";
  version = "1.1";

  src = fetchurl {
    url = "http://gael.roualland.free.fr/ifstat/ifstat-${version}.tar.gz";
    sha256 = "01zmv6vk5kh5xmd563xws8a1qnxjb6b6kv59yzz9r3rrghxhd6c5";
  };

  buildInputs = [ net-snmp ];

  nativeBuildInputs = [ autoreconfHook ];

  enableParallelBuilding = true;

  postInstall = ''
    mv $out/bin/ifstat $out/bin/ifstat-legacy
    mv $out/share/man/man1/ifstat.1 $out/share/man/man1/ifstat-legacy.1
  '';

  meta = with stdenv.lib; {
    description = "Report network interfaces bandwith just like vmstat/iostat do for other system counters - legacy version";
    homepage    = http://gael.roualland.free.fr/ifstat/;
    maintainers = with maintainers; [ peterhoeg ];
    platforms   = platforms.unix;
    license     = licenses.gpl2;
  };
}