nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 37 lines 957 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 autoreconfHook, 6 net-snmp, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "ifstat-legacy"; 11 version = "1.1"; 12 13 src = fetchurl { 14 url = "http://gael.roualland.free.fr/ifstat/ifstat-${version}.tar.gz"; 15 sha256 = "01zmv6vk5kh5xmd563xws8a1qnxjb6b6kv59yzz9r3rrghxhd6c5"; 16 }; 17 18 buildInputs = lib.optional stdenv.hostPlatform.isLinux net-snmp; 19 20 nativeBuildInputs = [ autoreconfHook ]; 21 22 enableParallelBuilding = true; 23 24 postInstall = '' 25 mv $out/bin/ifstat $out/bin/ifstat-legacy 26 mv $out/share/man/man1/ifstat.1 $out/share/man/man1/ifstat-legacy.1 27 ''; 28 29 meta = with lib; { 30 description = "Report network interfaces bandwith just like vmstat/iostat do for other system counters - legacy version"; 31 homepage = "http://gael.roualland.free.fr/ifstat/"; 32 maintainers = with maintainers; [ peterhoeg ]; 33 platforms = platforms.unix; 34 license = licenses.gpl2Plus; 35 mainProgram = "ifstat-legacy"; 36 }; 37}