2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook, net-snmp }:
|
2017-09-18 12:25:20 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "ifstat-legacy";
|
2017-09-18 12:25:20 +02:00
|
|
|
version = "1.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://gael.roualland.free.fr/ifstat/ifstat-${version}.tar.gz";
|
|
|
|
sha256 = "01zmv6vk5kh5xmd563xws8a1qnxjb6b6kv59yzz9r3rrghxhd6c5";
|
|
|
|
};
|
|
|
|
|
2021-07-13 00:25:09 +02:00
|
|
|
buildInputs = lib.optional stdenv.isLinux net-snmp;
|
2017-09-18 12:25:20 +02: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-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-09-18 12:25:20 +02:00
|
|
|
description = "Report network interfaces bandwith just like vmstat/iostat do for other system counters - legacy version";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://gael.roualland.free.fr/ifstat/";
|
2017-09-18 12:25:20 +02:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|