From e532d292d7c1a8dc64f54d51c0192a800ca4b457 Mon Sep 17 00:00:00 2001 From: Michael Eden Date: Sat, 16 Mar 2019 11:56:45 -0400 Subject: [PATCH] nmap: lua scripting support is optional --- pkgs/tools/security/nmap/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/security/nmap/default.nix b/pkgs/tools/security/nmap/default.nix index 09423a96ef9..bd593090965 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" ;