Merge pull request #170431 from armeenm/remove-nmap-graphical

authored by

Artturi and committed by
GitHub
867b4b5e ed7482fa

+8 -23
+6 -18
pkgs/tools/security/nmap/default.nix
··· 1 1 { lib, stdenv, fetchurl, fetchpatch, libpcap, pkg-config, openssl, lua5_3 2 2 , pcre, libssh2 3 - , graphicalSupport ? false 4 3 , libX11 ? null 5 4 , gtk2 ? null 6 - , python2 ? null 7 5 , makeWrapper ? null 8 6 , withLua ? true 9 7 }: ··· 11 9 with lib; 12 10 13 11 stdenv.mkDerivation rec { 14 - pname = "nmap${optionalString graphicalSupport "-graphical"}"; 12 + pname = "nmap"; 15 13 version = "7.92"; 16 14 17 15 src = fetchurl { ··· 41 39 configureFlags = [ 42 40 (if withLua then "--with-liblua=${lua5_3}" else "--without-liblua") 43 41 "--with-liblinear=included" 44 - ] ++ optionals (!graphicalSupport) [ "--without-ndiff" "--without-zenmap" ]; 42 + "--without-ndiff" 43 + "--without-zenmap" 44 + ]; 45 45 46 46 makeFlags = optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ 47 47 "AR=${stdenv.cc.bintools.targetPrefix}ar" ··· 49 49 "CC=${stdenv.cc.targetPrefix}gcc" 50 50 ]; 51 51 52 - pythonPath = with python2.pkgs; optionals graphicalSupport [ 53 - pygtk pysqlite pygobject2 pycairo 54 - ]; 55 - 56 - nativeBuildInputs = [ pkg-config ] ++ optionals graphicalSupport [ python2.pkgs.wrapPython ]; 57 - buildInputs = [ pcre libssh2 libpcap openssl ] ++ optionals graphicalSupport (with python2.pkgs; [ 58 - python2 libX11 gtk2 59 - ]); 60 - 61 - postInstall = optionalString graphicalSupport '' 62 - buildPythonPath "$out $pythonPath" 63 - patchPythonScript $out/bin/ndiff 64 - patchPythonScript $out/bin/zenmap 65 - ''; 52 + nativeBuildInputs = [ pkg-config ]; 53 + buildInputs = [ pcre libssh2 libpcap openssl ]; 66 54 67 55 enableParallelBuilding = true; 68 56
+2 -1
pkgs/top-level/aliases.nix
··· 871 871 nix_2_6 = nixVersions.nix_2_6; 872 872 nixopsUnstable = nixops_unstable; # Added 2022-03-03 873 873 nmap-unfree = nmap; # Added 2021-04-06 874 - nmap_graphical = throw "'nmap_graphical' has been renamed to/replaced by 'nmap-graphical'"; # Converted to throw 2022-02-22 874 + nmap-graphical = throw "nmap graphical support has been removed due to its python2 dependency"; # Added 2022-04-26 875 + nmap_graphical = throw "nmap graphical support has been removed due to its python2 dependency"; # Modified 2022-04-26 875 876 nologin = throw "'nologin' has been renamed to/replaced by 'shadow'"; # Converted to throw 2022-02-22 876 877 nordic-polar = throw "nordic-polar was removed on 2021-05-27, now integrated in nordic"; # Added 2021-05-27 877 878 noto-fonts-cjk = noto-fonts-cjk-sans; # Added 2021-12-16
-4
pkgs/top-level/all-packages.nix
··· 8733 8733 8734 8734 nmap = callPackage ../tools/security/nmap { }; 8735 8735 8736 - nmap-graphical = nmap.override { 8737 - graphicalSupport = true; 8738 - }; 8739 - 8740 8736 nmap-formatter = callPackage ../tools/security/nmap-formatter { }; 8741 8737 8742 8738 nmapsi4 = libsForQt5.callPackage ../tools/security/nmap/qt.nix { };