Skip to content

Commit

Permalink
nmap: patch vendored libz for darwin
Browse files Browse the repository at this point in the history
(cherry picked from commit 6b7e103)
  • Loading branch information
LnL7 committed Sep 18, 2017
1 parent f8f126b commit 17c6710
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/tools/security/nmap/default.nix
Expand Up @@ -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"
Expand Down

0 comments on commit 17c6710

Please sign in to comment.