Merge pull request #57822 from illegalprime/nmap-optional-lua

nmap: lua scripting support is optional
This commit is contained in:
Jörg Thalheim 2019-03-18 10:10:31 +00:00 committed by GitHub
commit b16f32acd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,7 @@
, withPython ? false # required for the `ndiff` binary
, python2Packages ? null
, makeWrapper ? null
, withLua ? true
}:
assert withPython -> python2Packages != null;
@ -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"
;