Skip to content

Commit

Permalink
Merge pull request #57822 from illegalprime/nmap-optional-lua
Browse files Browse the repository at this point in the history
nmap: lua scripting support is optional
  • Loading branch information
Mic92 authored Mar 18, 2019
2 parents 63279e2 + e532d29 commit b16f32a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/tools/security/nmap/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
, withPython ? false # required for the `ndiff` binary
, python2Packages ? null
, makeWrapper ? null
, withLua ? true
}:

assert withPython -> python2Packages != null;
Expand Down Expand Up @@ -35,7 +36,9 @@ in stdenv.mkDerivation rec {
--replace 'ARFLAGS="-o"' 'ARFLAGS="-r"'
'';

configureFlags = [ "--with-liblua=${lua5_3}" ]
configureFlags = [
(if withLua then "--with-liblua=${lua5_3}" else "--without-liblua")
]
++ optional (!pythonSupport) "--without-ndiff"
++ optional (!graphicalSupport) "--without-zenmap"
;
Expand Down

0 comments on commit b16f32a

Please sign in to comment.