diff options
author | Michael Eden <themichaeleden@gmail.com> | 2019-03-16 11:56:45 -0400 |
---|---|---|
committer | Michael Eden <themichaeleden@gmail.com> | 2019-03-16 16:35:12 -0400 |
commit | e532d292d7c1a8dc64f54d51c0192a800ca4b457 (patch) | |
tree | dfa00eb2ccc9ad2cbe768047a00baf8f134475a2 /pkgs/tools/security/nmap | |
parent | 33e9fa2367c973d91bd729adce12634cc010dc8c (diff) |
nmap: lua scripting support is optional
Diffstat (limited to 'pkgs/tools/security/nmap')
-rw-r--r-- | pkgs/tools/security/nmap/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/tools/security/nmap/default.nix b/pkgs/tools/security/nmap/default.nix index 09423a96ef969..bd59309096597 100644 --- a/pkgs/tools/security/nmap/default.nix +++ b/pkgs/tools/security/nmap/default.nix @@ -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" ; |