nmap: patch vendored libz for darwin
This commit is contained in:
parent
c7ed26b6a9
commit
6b7e103870
@ -28,6 +28,13 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patches = ./zenmap.patch;
|
patches = ./zenmap.patch;
|
||||||
|
|
||||||
|
prePatch = optionalString stdenv.isDarwin ''
|
||||||
|
substituteInPlace libz/configure \
|
||||||
|
--replace /usr/bin/libtool ar \
|
||||||
|
--replace 'AR="libtool"' 'AR="ar"' \
|
||||||
|
--replace 'ARFLAGS="-o"' 'ARFLAGS="-r"'
|
||||||
|
'';
|
||||||
|
|
||||||
configureFlags = []
|
configureFlags = []
|
||||||
++ optional (!pythonSupport) "--without-ndiff"
|
++ optional (!pythonSupport) "--without-ndiff"
|
||||||
++ optional (!graphicalSupport) "--without-zenmap"
|
++ optional (!graphicalSupport) "--without-zenmap"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user