nixpkgs/pkgs/applications/networking/iptraf/default.nix

33 lines
724 B
Nix
Raw Normal View History

{stdenv, fetchurl, ncurses}:
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
2013-07-08 17:39:00 +00:00
name = "iptraf-3.0.1";
2016-08-04 07:40:02 +00:00
src = fetchurl {
url = "ftp://iptraf.seul.org/pub/iptraf/iptraf-3.0.1.tar.gz";
sha256 = "12n059j9iihhpf6spmlaspqzxz3wqan6kkpnhmlj08jdijpnk84m";
};
2016-08-04 07:40:02 +00:00
hardeningDisable = [ "format" ];
2013-03-24 13:43:20 +00:00
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
'';
2016-08-04 07:40:02 +00:00
buildInputs = [ncurses];
meta = {
homepage = "http://iptraf.seul.org/";
license = stdenv.lib.licenses.gpl2Plus;
description = "Console-based network statistics utility for Linux";
platforms = stdenv.lib.platforms.linux;
};
}