nmap: patch vendored libz for darwin
This commit is contained in:
parent
c7ed26b6a9
commit
6b7e103870
1 changed files with 7 additions and 0 deletions
|
@ -28,6 +28,13 @@ in stdenv.mkDerivation rec {
|
|||
|
||||
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 = []
|
||||
++ optional (!pythonSupport) "--without-ndiff"
|
||||
++ optional (!graphicalSupport) "--without-zenmap"
|
||||
|
|
Loading…
Reference in a new issue