anchor.diff:        for bin in $( find "$out" -executable -type f -not -path '*/languages/ruby/lib/gems/*' -not -name jspawnhelper ); do
           if patchelf --print-interpreter "$bin" &> /dev/null || head -n 1 "$bin" | grep '^#!' -q; then
             wrapProgram "$bin" \
  -            --prefix LD_LIBRARY_PATH : "${runtimeLibraryPath}"
  +            --prefix LD_LIBRARY_PATH : "${runtimeLibraryPath}" \
  +            --prefix PATH : "${runtimeDependencies}"
           fi
         done
   
  -      # copy-paste openjdk's preFixup
  -      # Set JAVA_HOME automatically.
  -      mkdir -p $out/nix-support
  -      cat <<EOF > $out/nix-support/setup-hook
  -        if [ -z "\''${JAVA_HOME-}" ]; then export JAVA_HOME=$out; fi
  -      EOF
  -
         find "$out" -name libfontmanager.so -exec \
           patchelf --add-needed libfontconfig.so {} \;
  +
  +      # Workaround for libssl.so.10/libcrypto.so.10 wanted by TruffleRuby
  +      patchelf $out/languages/ruby/lib/mri/openssl.so \
  +        --replace-needed libssl.so.10 libssl.so \
  +        --replace-needed libcrypto.so.10 libcrypto.so
       '';
   
       # $out/bin/native-image needs zlib to build native executables.
  
positive.code:       # run on JVM with Graal Compiler
        $out/bin/java -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+UseJVMCICompiler HelloWorld | fgrep 'Hello World'
  
        # Ahead-Of-Time compilation
        $out/bin/native-image -H:-CheckToolchain -H:+ReportExceptionStackTraces --no-server HelloWorld
        ./helloworld | fgrep 'Hello World'
  
        ${
          lib.optionalString stdenv.isLinux ''
            # Ahead-Of-Time compilation with --static
            # --static flag doesn't work for darwin
            $out/bin/native-image --no-server --static HelloWorld
            ./helloworld | fgrep 'Hello World'
          ''
        }
  
negative.code:       ];
      };
    };
  in
  graalvmXXX-ce
  