lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 17.09-beta 32 lines 724 B view raw
1{stdenv, fetchurl, ncurses}: 2 3stdenv.mkDerivation rec { 4 name = "iptraf-3.0.1"; 5 6 src = fetchurl { 7 url = ftp://iptraf.seul.org/pub/iptraf/iptraf-3.0.1.tar.gz; 8 sha256 = "12n059j9iihhpf6spmlaspqzxz3wqan6kkpnhmlj08jdijpnk84m"; 9 }; 10 11 hardeningDisable = [ "format" ]; 12 13 patchPhase = '' 14 sed -i -e 's,#include <linux/if_tr.h>,#include <netinet/if_tr.h>,' src/* 15 ''; 16 17 preConfigure = "cd src"; 18 19 installPhase = '' 20 mkdir -p $out/bin 21 cp iptraf $out/bin 22 ''; 23 24 buildInputs = [ncurses]; 25 26 meta = { 27 homepage = http://iptraf.seul.org/; 28 license = stdenv.lib.licenses.gpl2Plus; 29 description = "Console-based network statistics utility for Linux"; 30 platforms = stdenv.lib.platforms.linux; 31 }; 32}