nmap: patch vendored libz for darwin

This commit is contained in:
Daiderd Jordan 2017-09-18 22:01:28 +02:00
parent c7ed26b6a9
commit 6b7e103870
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -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"