forked from mirrors/nixpkgs
iptraf: disable fortify hardening
This commit is contained in:
parent
a2ce15318b
commit
56e69fcc0e
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue