anchor.diff:  
           dontStrip = true;
   
  -        # copy-paste openjdk's preFixup
           preFixup = ''
  +          # We cannot use -exec since wrapProgram is a function but not a
  +          # command.
  +          for bin in $( find "$out" -executable -type f -not -path '*/languages/ruby/lib/gems/*' ); do
  +            if patchelf --print-interpreter "$bin" &> /dev/null || head -n 1 "$bin" | grep '^#!' -q; then
  +              wrapProgram "$bin" \
  +                --prefix LD_LIBRARY_PATH : "${runtimeLibraryPath}"
  +            fi
  +          done
  +
  +          # copy-paste openjdk's preFixup
             # Set JAVA_HOME automatically.
             mkdir -p $out/nix-support
             cat <<EOF > $out/nix-support/setup-hook
  
positive.code: , unzip
  , xorg
  , zlib
  }:
  
  let
    platform = if stdenv.isDarwin then "darwin-amd64" else "linux-amd64";
    common = javaVersion:
      let
        javaVersionPlatform = "${javaVersion}-${platform}";
  
negative.code: , lib
  , fetchurl
  , autoPatchelfHook
  , setJavaClassPath
  , makeWrapper
  # minimum dependencies
  , Foundation
  , alsaLib
  , fontconfig
  , freetype
  