about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEnno Richter <enno@nerdworks.de>2022-01-28 15:46:29 +0100
committerEnno Richter <enno@nerdworks.de>2022-01-28 15:46:29 +0100
commitc397e3b4cb0d6506736b0a5ed1cb627f13f57e35 (patch)
tree57f6d12f5e7cb5f4268b0dccda9c4e10e384e825
parent75e0e62393cf07899e554b73a0ae27b3b7c36839 (diff)
nmap: use included liblinear to fix static build
-rw-r--r--pkgs/tools/security/nmap/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/tools/security/nmap/default.nix b/pkgs/tools/security/nmap/default.nix
index 69bea2ac54ff5..0a6733e993d60 100644
--- a/pkgs/tools/security/nmap/default.nix
+++ b/pkgs/tools/security/nmap/default.nix
@@ -1,5 +1,5 @@
 { lib, stdenv, fetchurl, fetchpatch, libpcap, pkg-config, openssl, lua5_3
-, pcre, liblinear, libssh2
+, pcre, libssh2
 , graphicalSupport ? false
 , libX11 ? null
 , gtk2 ? null
@@ -40,6 +40,7 @@ stdenv.mkDerivation rec {
 
   configureFlags = [
     (if withLua then "--with-liblua=${lua5_3}" else "--without-liblua")
+    "--with-liblinear=included"
   ] ++ optionals (!graphicalSupport) [ "--without-ndiff" "--without-zenmap" ];
 
   makeFlags = optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
@@ -53,7 +54,7 @@ stdenv.mkDerivation rec {
   ];
 
   nativeBuildInputs = [ pkg-config ] ++ optionals graphicalSupport [ python2.pkgs.wrapPython ];
-  buildInputs = [ pcre liblinear libssh2 libpcap openssl ] ++ optionals graphicalSupport (with python2.pkgs; [
+  buildInputs = [ pcre libssh2 libpcap openssl ] ++ optionals graphicalSupport (with python2.pkgs; [
     python2 libX11 gtk2
   ]);