@@ -1,9 +1,7 @@
1{ lib, stdenv, fetchurl, fetchpatch, libpcap, pkg-config, openssl, lua5_3
1{ lib, stdenv, fetchurl, fetchpatch, libpcap, pkg-config, openssl, lua5_3
2, pcre, libssh2
2, pcre, libssh2
3−, graphicalSupport ? false
4, libX11 ? null
3, libX11 ? null
5, gtk2 ? null
4, gtk2 ? null
7, makeWrapper ? null
5, makeWrapper ? null
8, withLua ? true
6, withLua ? true
@@ -11,7 +9,7 @@
13stdenv.mkDerivation rec {
11stdenv.mkDerivation rec {
14− pname = "nmap${optionalString graphicalSupport "-graphical"}";
12+ pname = "nmap";
15 version = "7.92";
13 version = "7.92";
17 src = fetchurl {
15 src = fetchurl {
@@ -41,7 +39,9 @@ stdenv.mkDerivation rec {
41 configureFlags = [
39 configureFlags = [
42 (if withLua then "--with-liblua=${lua5_3}" else "--without-liblua")
40 (if withLua then "--with-liblua=${lua5_3}" else "--without-liblua")
43 "--with-liblinear=included"
41 "--with-liblinear=included"
44− ] ++ optionals (!graphicalSupport) [ "--without-ndiff" "--without-zenmap" ];
43+ "--without-zenmap"
46 makeFlags = optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
46 makeFlags = optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
47 "AR=${stdenv.cc.bintools.targetPrefix}ar"
47 "AR=${stdenv.cc.bintools.targetPrefix}ar"
@@ -49,20 +49,8 @@ stdenv.mkDerivation rec {
49 "CC=${stdenv.cc.targetPrefix}gcc"
49 "CC=${stdenv.cc.targetPrefix}gcc"
52− pythonPath = with python2.pkgs; optionals graphicalSupport [
53− pygtk pysqlite pygobject2 pycairo
56− nativeBuildInputs = [ pkg-config ] ++ optionals graphicalSupport [ python2.pkgs.wrapPython ];
52+ nativeBuildInputs = [ pkg-config ];
57− buildInputs = [ pcre libssh2 libpcap openssl ] ++ optionals graphicalSupport (with python2.pkgs; [
53+ buildInputs = [ pcre libssh2 libpcap openssl ];
61− postInstall = optionalString graphicalSupport ''
62− buildPythonPath "$out $pythonPath"
63− patchPythonScript $out/bin/ndiff
64− patchPythonScript $out/bin/zenmap
67 enableParallelBuilding = true;
55 enableParallelBuilding = true;