3
0
Fork 0
forked from mirrors/nixpkgs

iptraf: disable fortify hardening

This commit is contained in:
Robin Gloster 2016-08-04 07:40:02 +00:00
parent a2ce15318b
commit 56e69fcc0e

View file

@ -2,12 +2,14 @@
stdenv.mkDerivation rec {
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/*
'';
@ -18,7 +20,7 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin
cp iptraf $out/bin
'';
buildInputs = [ncurses];
meta = {