anchor.diff: -{ lib, stdenv, fetchFromGitHub, makeDesktopItem, makeWrapper, ant, jdk, jre, gtk2, glib, xorg, Cocoa }:
  +{ lib, stdenv, fetchFromGitHub, makeDesktopItem, makeWrapper, wrapGAppsHook, ant, jdk, jre, gtk2, glib, xorg, Cocoa }:
   
   let
     _version = "2.10.2";
  
positive.code:     install -Dm644 plugin.xml $out/share/java/
      install -Dm644 build/jameica-icon.png $out/share/pixmaps/jameica.png
      cp ${desktopItem}/share/applications/* $out/share/applications/
  
      makeWrapper ${jre}/bin/java $out/bin/jameica \
        --add-flags "-cp $out/share/java/jameica.jar:$out/share/jameica-${version}/* ${
          lib.optionalString stdenv.isDarwin ''-Xdock:name="Jameica" -XstartOnFirstThread''
        } de.willuhn.jameica.Main" \
        --prefix LD_LIBRARY_PATH : ${lib.escapeShellArg (lib.makeLibraryPath buildInputs)} \
        --chdir "$out/share/java/"
    '';
  
    meta = with lib; {
  
negative.code:     rev = "V_${builtins.replaceStrings ["."] ["_"] _version}_BUILD_${_build}";
      sha256 = "1x9sybknzsfxp9z0pvw9dx80732ynyap57y03p7xwwjbcrnjla57";
    };
  
    dontWrapGApps = true;
  
    # there is also a build.gradle, but it only seems to be used to vendor 3rd party libraries
    # and is not able to build the application itself
  