about summary refs log tree commit diff
path: root/pkgs/tools/networking/ifstat-legacy
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2017-09-18 18:25:20 +0800
committerPeter Hoeg <peter@hoeg.com>2017-09-18 18:25:54 +0800
commit971eb19dbcb0313a592bd349692f937ec6b04d45 (patch)
tree135bacc7f5dbbb1ae5f24315798f2fb44624d3bf /pkgs/tools/networking/ifstat-legacy
parent08824d7ae03eae44b59ec1c49cb32421bca24afe (diff)
downloadnixlib-971eb19dbcb0313a592bd349692f937ec6b04d45.tar
nixlib-971eb19dbcb0313a592bd349692f937ec6b04d45.tar.gz
nixlib-971eb19dbcb0313a592bd349692f937ec6b04d45.tar.bz2
nixlib-971eb19dbcb0313a592bd349692f937ec6b04d45.tar.lz
nixlib-971eb19dbcb0313a592bd349692f937ec6b04d45.tar.xz
nixlib-971eb19dbcb0313a592bd349692f937ec6b04d45.tar.zst
nixlib-971eb19dbcb0313a592bd349692f937ec6b04d45.zip
ifstat-legacy: init at 1.1
Diffstat (limited to 'pkgs/tools/networking/ifstat-legacy')
-rw-r--r--pkgs/tools/networking/ifstat-legacy/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/networking/ifstat-legacy/default.nix b/pkgs/tools/networking/ifstat-legacy/default.nix
new file mode 100644
index 000000000000..8b7f4e1c2a04
--- /dev/null
+++ b/pkgs/tools/networking/ifstat-legacy/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchurl, autoreconfHook, net_snmp }:
+
+stdenv.mkDerivation rec {
+  name = "ifstat-legacy-${version}";
+  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;
+  };
+}