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

30 lines
628 B
Nix
Raw Normal View History

{stdenv, fetchurl, ncurses}:
stdenv.mkDerivation rec {
name = "iptraf-3.0.0";
src = fetchurl {
url = ftp://iptraf.seul.org/pub/iptraf/iptraf-3.0.0.tar.gz;
sha256 = "0qsi5f8d84mgdszvz22acyv6mjnbrpk55d54km9i5mkkapck7r4y";
};
2013-03-24 14:43:20 +01: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";
};
}