summary refs log tree commit diff
path: root/pkgs/tools/security/nmap/default.nix
diff options
context:
space:
mode:
authorArmeen Mahdian <mahdianarmeen@gmail.com>2022-04-26 09:35:10 -0500
committerArmeen Mahdian <mahdianarmeen@gmail.com>2022-04-26 09:36:58 -0500
commit67b887147fc935ab8587d9b712541dcbf902b48a (patch)
treea94d59b0826ae58861ac5674885e9ab4f598468b /pkgs/tools/security/nmap/default.nix
parent6e4f70e8804273cff4e256e33c0568c202aa24b3 (diff)
downloadnixpkgs-67b887147fc935ab8587d9b712541dcbf902b48a.tar
nixpkgs-67b887147fc935ab8587d9b712541dcbf902b48a.tar.gz
nixpkgs-67b887147fc935ab8587d9b712541dcbf902b48a.tar.bz2
nixpkgs-67b887147fc935ab8587d9b712541dcbf902b48a.tar.lz
nixpkgs-67b887147fc935ab8587d9b712541dcbf902b48a.tar.xz
nixpkgs-67b887147fc935ab8587d9b712541dcbf902b48a.tar.zst
nixpkgs-67b887147fc935ab8587d9b712541dcbf902b48a.zip
nmap: remove graphical support
Diffstat (limited to 'pkgs/tools/security/nmap/default.nix')
-rw-r--r--pkgs/tools/security/nmap/default.nix24
1 files changed, 6 insertions, 18 deletions
diff --git a/pkgs/tools/security/nmap/default.nix b/pkgs/tools/security/nmap/default.nix
index 0a6733e993d..5e71c2e1655 100644
--- a/pkgs/tools/security/nmap/default.nix
+++ b/pkgs/tools/security/nmap/default.nix
@@ -1,9 +1,7 @@
 { lib, stdenv, fetchurl, fetchpatch, libpcap, pkg-config, openssl, lua5_3
 , pcre, libssh2
-, graphicalSupport ? false
 , libX11 ? null
 , gtk2 ? null
-, python2 ? null
 , makeWrapper ? null
 , withLua ? true
 }:
@@ -11,7 +9,7 @@
 with lib;
 
 stdenv.mkDerivation rec {
-  pname = "nmap${optionalString graphicalSupport "-graphical"}";
+  pname = "nmap";
   version = "7.92";
 
   src = fetchurl {
@@ -41,7 +39,9 @@ stdenv.mkDerivation rec {
   configureFlags = [
     (if withLua then "--with-liblua=${lua5_3}" else "--without-liblua")
     "--with-liblinear=included"
-  ] ++ optionals (!graphicalSupport) [ "--without-ndiff" "--without-zenmap" ];
+    "--without-ndiff"
+    "--without-zenmap"
+  ];
 
   makeFlags = optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
     "AR=${stdenv.cc.bintools.targetPrefix}ar"
@@ -49,20 +49,8 @@ stdenv.mkDerivation rec {
     "CC=${stdenv.cc.targetPrefix}gcc"
   ];
 
-  pythonPath = with python2.pkgs; optionals graphicalSupport  [
-    pygtk pysqlite pygobject2 pycairo
-  ];
-
-  nativeBuildInputs = [ pkg-config ] ++ optionals graphicalSupport [ python2.pkgs.wrapPython ];
-  buildInputs = [ pcre libssh2 libpcap openssl ] ++ optionals graphicalSupport (with python2.pkgs; [
-    python2 libX11 gtk2
-  ]);
-
-  postInstall = optionalString graphicalSupport ''
-    buildPythonPath "$out $pythonPath"
-    patchPythonScript $out/bin/ndiff
-    patchPythonScript $out/bin/zenmap
-  '';
+  nativeBuildInputs = [ pkg-config ];
+  buildInputs = [ pcre libssh2 libpcap openssl ];
 
   enableParallelBuilding = true;