2021-01-15 22:18:51 +00:00
|
|
|
{lib, stdenv, fetchurl, ncurses}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "iptraf-3.0.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "ftp://iptraf.seul.org/pub/iptraf/iptraf-3.0.1.tar.gz";
|
|
|
|
sha256 = "12n059j9iihhpf6spmlaspqzxz3wqan6kkpnhmlj08jdijpnk84m";
|
|
|
|
};
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e 's,#include <linux/if_tr.h>,#include <netinet/if_tr.h>,' src/*
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = "cd src";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp iptraf $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ncurses];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://iptraf.seul.org/";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Console-based network statistics utility for Linux";
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-10-07 09:15:18 +00:00
|
|
|
broken = true; # required isdn headers have been removed from the linux kernel
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|