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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
822 B
Nix
Raw Normal View History

2021-01-15 05:42:41 +00:00
{lib, stdenv, fetchurl, ncurses}:
stdenv.mkDerivation rec {
pname = "iptraf";
version = "3.0.1";
2016-08-04 08:40:02 +01:00
src = fetchurl {
url = "ftp://iptraf.seul.org/pub/iptraf/iptraf-${version}tar.gz";
sha256 = "12n059j9iihhpf6spmlaspqzxz3wqan6kkpnhmlj08jdijpnk84m";
};
2016-08-04 08:40:02 +01: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 08:40:02 +01:00
buildInputs = [ncurses];
meta = {
homepage = "http://iptraf.seul.org/";
2021-01-15 05:42:41 +00:00
license = lib.licenses.gpl2Plus;
description = "Console-based network statistics utility for Linux";
2021-01-15 05:42:41 +00:00
platforms = lib.platforms.linux;
2020-09-29 11:52:23 +01:00
broken = true; # required isdn headers have been removed from the linux kernel
};
}