mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
Merge pull request #57822 from illegalprime/nmap-optional-lua
nmap: lua scripting support is optional
This commit is contained in:
commit
b16f32acd4
1 changed files with 4 additions and 1 deletions
|
@ -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"
|
||||
;
|
||||
|
|
Loading…
Reference in a new issue