anchor.diff:    hash = if stdenv.isDarwin then sha256_darwin else sha256_linux;
     extension = if stdenv.isDarwin then "zip" else "tar.gz";
   
  -  libraries = [
  -    stdenv.cc.libc glib libxml2 ffmpeg_3 libxslt libGL
  -    xorg.libXxf86vm alsaLib fontconfig freetype pango
  -    gtk2 cairo gdk-pixbuf atk
  -  ] ++ (lib.optionals swingSupport (with xorg; [
  -    xorg.libX11 xorg.libXext xorg.libXtst xorg.libXi xorg.libXp
  -    xorg.libXt xorg.libXrender stdenv.cc.cc
  -  ]));
  +  runtimeDependencies = [
  +    cups
  +  ] ++ lib.optionals gtkSupport [
  +    cairo glib gtk3
  +  ];
  +  runtimeLibraryPath = lib.makeLibraryPath runtimeDependencies;
   
   in stdenv.mkDerivation {
     inherit version openjdk platform hash extension;
  
positive.code:     sha256 = hash;
    };
  
    buildInputs = [ makeWrapper ] ++ lib.optional stdenv.isDarwin unzip;
  
    installPhase = ''
      mkdir -p $out
      cp -r ./* "$out/"
  
      jrePath="$out/jre"
  
      rpath=$rpath''${rpath:+:}$jrePath/lib/amd64/jli
      rpath=$rpath''${rpath:+:}$jrePath/lib/amd64/server
      rpath=$rpath''${rpath:+:}$jrePath/lib/amd64/xawt
      rpath=$rpath''${rpath:+:}$jrePath/lib/amd64
  
      # set all the dynamic linkers
      find $out -type f -perm -0100 \
          -exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
          --set-rpath "$rpath" {} \;
  
      find $out -name "*.so" -exec patchelf --set-rpath "$rpath" {} \;
  
      mkdir -p $out/nix-support
      printWords ${setJavaClassPath} > $out/nix-support/propagated-build-inputs
  
negative.code:     cat <<EOF >> $out/nix-support/setup-hook
      if [ -z "\''${JAVA_HOME-}" ]; then export JAVA_HOME=$out; fi
      EOF
    '' + lib.optionalString stdenv.isLinux ''
      # We cannot use -exec since wrapProgram is a function but not a command.
      for bin in $( find "$out" -executable -type f ); do
        if patchelf --print-interpreter "$bin" &> /dev/null; then
          wrapProgram "$bin" --prefix LD_LIBRARY_PATH : "${runtimeLibraryPath}"
        fi
      done
    '';
  
    preFixup = ''
      find "$out" -name libfontmanager.so -exec \
        patchelf --add-needed libfontconfig.so {} \;
    '';
  
    passthru = {
      home = zulu;
  