anchor.diff:  , lib
   , fetchurl
   , autoPatchelfHook
  +, setJavaClassPath
  +, makeWrapper
  +# minimum dependencies
   , Foundation
  -, setJavaClassPath
   , alsaLib
   , fontconfig
   , freetype
  
positive.code: 
          dontStrip = true;
  
          # copy-paste openjdk's preFixup
          preFixup = ''
            # Set JAVA_HOME automatically.
            mkdir -p $out/nix-support
            cat <<EOF > $out/nix-support/setup-hook
  
negative.code: , unzip
  , xorg
  , zlib
  # runtime dependencies
  , cups
  # runtime dependencies for GTK+ Look and Feel
  , gtkSupport ? true
  , cairo
  , glib
  , gtk3
  }:
  
  let
    platform = if stdenv.isDarwin then "darwin-amd64" else "linux-amd64";
    runtimeDependencies = [
      cups
    ] ++ lib.optionals gtkSupport [
      cairo glib gtk3
    ];
    runtimeLibraryPath = lib.makeLibraryPath runtimeDependencies;
    common = javaVersion:
      let
        javaVersionPlatform = "${javaVersion}-${platform}";
  