depot/third_party/nixpkgs/pkgs/applications/networking/iptraf/default.nix
Default email 1693fb2285 Project import generated by Copybara.
GitOrigin-RevId: 420f89ceb267b461eed5d025b6c3c0e57703cc5c
2020-10-07 11:15:18 +02:00

33 lines
807 B
Nix

{stdenv, fetchurl, ncurses}:
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/";
license = stdenv.lib.licenses.gpl2Plus;
description = "Console-based network statistics utility for Linux";
platforms = stdenv.lib.platforms.linux;
broken = true; # required isdn headers have been removed from the linux kernel
};
}