anchor.diff:      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
  +      wrapProgram "$bin" --prefix LD_LIBRARY_PATH : "${runtimeLibraryPath}"
  +    done
     '';
   
  -  rpath = lib.strings.makeLibraryPath libraries;
  +  preFixup = ''
  +    find "$out" -name libfontmanager.so -exec \
  +      patchelf --add-needed libfontconfig.so {} \;
  +  '';
   
     passthru = {
       home = zulu;
  
positive.code:     sha256 = hash;
    };
  
    buildInputs = [ makeWrapper ] ++ lib.optional stdenv.isDarwin unzip;
  
    installPhase = ''
      mkdir -p $out
      cp -r ./* "$out/"
  
      rpath=$rpath''${rpath:+:}$out/lib/jli
      rpath=$rpath''${rpath:+:}$out/lib/server
      rpath=$rpath''${rpath:+:}$out/lib
  
      # 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: { stdenv
  , lib
  , fetchurl
  , autoPatchelfHook
  , unzip
  , makeWrapper
  , setJavaClassPath
  , zulu
  # minimum dependencies
  , alsaLib
  , fontconfig
  , freetype
  , zlib
  , xorg
  # runtime dependencies
  , cups
  # runtime dependencies for GTK+ Look and Feel
  , gtkSupport ? stdenv.isLinux
  , cairo
  , glib
  , gtk3
  }:
  
  let
    version = "11.41.23";
  