2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook, net-snmp }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ifstat-legacy";
|
|
|
|
version = "1.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://gael.roualland.free.fr/ifstat/ifstat-${version}.tar.gz";
|
|
|
|
sha256 = "01zmv6vk5kh5xmd563xws8a1qnxjb6b6kv59yzz9r3rrghxhd6c5";
|
|
|
|
};
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
buildInputs = lib.optional stdenv.isLinux net-snmp;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|