anchor.diff:  
     configureFlags = [
       (if withLua then "--with-liblua=${lua5_3}" else "--without-liblua")
  -  ]
  -    ++ optional (!pythonSupport) "--without-ndiff"
  -    ++ optional (!graphicalSupport) "--without-zenmap"
  -    ;
  +  ] ++ optionals (!graphicalSupport) [ "--without-ndiff" "--without-zenmap" ];
   
     makeFlags = optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
       "AR=${stdenv.cc.bintools.targetPrefix}ar"
  
positive.code:     "CC=${stdenv.cc.targetPrefix}gcc"
    ];
  
    postInstall = optionalString pythonSupport ''
        wrapProgram $out/bin/ndiff --prefix PYTHONPATH : "$(toPythonPath $out)" --prefix PYTHONPATH : "$PYTHONPATH"
    '' + optionalString graphicalSupport ''
        wrapProgram $out/bin/zenmap --prefix PYTHONPATH : "$(toPythonPath $out)" --prefix PYTHONPATH : "$PYTHONPATH" --prefix PYTHONPATH : $(toPythonPath $pygtk)/gtk-2.0 --prefix PYTHONPATH : $(toPythonPath $pygobject)/gtk-2.0 --prefix PYTHONPATH : $(toPythonPath $pycairo)/gtk-2.0
    '';
  
    nativeBuildInputs = [ pkgconfig ];
    buildInputs = with python2Packages; [ libpcap openssl ]
      ++ optionals pythonSupport [ makeWrapper python ]
      ++ optionals graphicalSupport [
        libX11 gtk2 pygtk pysqlite pygobject2 pycairo
      ];
  
    doCheck = false; # fails 3 tests, probably needs the net
  
  
negative.code: { stdenv, fetchurl, fetchpatch, libpcap, pkgconfig, openssl, lua5_3
  , pcre, liblinear, libssh2
  , graphicalSupport ? false
  , libX11 ? null
  , gtk2 ? null
  , python2 ? null
  , makeWrapper ? null
  , withLua ? true
  }:
  
  with stdenv.lib;
  
  stdenv.mkDerivation rec {
    name = "nmap${optionalString graphicalSupport "-graphical"}-${version}";
    version = "7.80";
  
  