anchor.diff:    cmakeFlags = [
     "-DPORT=GTK"
     "-DUSE_LIBHYPHEN=0"
  +  "-DENABLE_INTROSPECTION=ON"
     ]
     ++ optional (!enableGtk2Plugins) "-DENABLE_PLUGIN_PROCESS_GTK2=OFF"
     ++ optional stdenv.isLinux "-DENABLE_GLES2=ON"
     ++ optionals stdenv.isDarwin [
     "-DUSE_SYSTEM_MALLOC=ON"
     "-DUSE_ACCELERATE=0"
  -  "-DENABLE_INTROSPECTION=ON"
     "-DENABLE_MINIBROWSER=OFF"
     "-DENABLE_VIDEO=ON"
     "-DENABLE_QUARTZ_TARGET=ON"
  
positive.code:     maintainers = with maintainers; [ ];
    };
  
    postConfigure = optionalString stdenv.isDarwin ''
      substituteInPlace Source/WebKit2/CMakeFiles/WebKit2.dir/link.txt \
          --replace "../../lib/libWTFGTK.a" ""
      substituteInPlace Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/link.txt \
          --replace "../../lib/libbmalloc.a" ""
      sed -i "s|[\./]*\.\./lib/lib[^\.]*\.a||g" \
          Source/JavaScriptCore/CMakeFiles/LLIntOffsetsExtractor.dir/link.txt \
          Source/JavaScriptCore/shell/CMakeFiles/jsc.dir/link.txt \
          Source/JavaScriptCore/shell/CMakeFiles/testb3.dir/link.txt \
          Source/WebKit2/CMakeFiles/DatabaseProcess.dir/link.txt \
          Source/WebKit2/CMakeFiles/NetworkProcess.dir/link.txt \
          Source/WebKit2/CMakeFiles/webkit2gtkinjectedbundle.dir/link.txt \
          Source/WebKit2/CMakeFiles/WebProcess.dir/link.txt
      substituteInPlace Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/link.txt \
          --replace "../../lib/libWTFGTK.a" "-Wl,-all_load ../../lib/libWTFGTK.a"
    '';
  
    src = fetchurl {
      url = "http://webkitgtk.org/releases/${name}.tar.xz";
      sha256 = "0g0an3pc2yz13gzpaysfgch2yp510gw1qcpk0xr8m6mx43vl1xjp";
    };
  
    # see if we can clean this up....
  
    patches = optionals stdenv.isDarwin [
      ## TODO add necessary patches for Darwin
  
negative.code: { stdenv, fetchurl, perl, python2, ruby, bison, gperf, cmake, ninja
  , pkgconfig, gettext, gobjectIntrospection, libnotify, gnutls, libgcrypt
  , gtk3, wayland, libwebp, enchant2, xorg, libxkbcommon, epoxy, at-spi2-core
  , libxml2, libsoup, libsecret, libxslt, harfbuzz, libpthreadstubs, pcre, nettle, libtasn1, p11-kit
  , libidn, libedit, readline, libGLU_combined, libintlOrEmpty
  , enableGeoLocation ? true, geoclue2, sqlite
  