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

30 lines
605 B
Nix
Raw Normal View History

{stdenv, fetchurl, ncurses}:
stdenv.mkDerivation rec {
2013-07-08 17:39:00 +00:00
name = "iptraf-3.0.1";
src = fetchurl {
2013-07-08 17:39:00 +00:00
url = ftp://iptraf.seul.org/pub/iptraf/iptraf-3.0.1.tar.gz;
md5 = "004c2c005a1b78739e22bc49d33e244d";
};
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
'';
buildInputs = [ncurses];
meta = {
homepage = http://iptraf.seul.org/;
license = "GPLv2+";
description = "Console-based network statistics utility for Linux";
};
}