From d8959c385c53697fac2e77eef6322b370fa66c12 Mon Sep 17 00:00:00 2001 From: eihqnh Date: Sat, 6 Dec 2025 09:35:34 +0800 Subject: [PATCH] graalvm-ce: do not move the JDK `release` file to `share/` --- .../compilers/graalvm/community-edition/buildGraalvm.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/graalvm/community-edition/buildGraalvm.nix b/pkgs/development/compilers/graalvm/community-edition/buildGraalvm.nix index 5b4821bf63df..8f77f87dd32a 100644 --- a/pkgs/development/compilers/graalvm/community-edition/buildGraalvm.nix +++ b/pkgs/development/compilers/graalvm/community-edition/buildGraalvm.nix @@ -172,7 +172,8 @@ let mkdir -p $out/share # move files in $out like LICENSE.txt - find $out/ -maxdepth 1 -type f -exec mv {} $out/share \; + # NOTE: The `release` file must be located at $JAVA_HOME/release + find $out/ -maxdepth 1 -type f ! -name release -exec mv {} $out/share \; # symbolic link to $out/lib/svm/LICENSE_NATIVEIMAGE.txt rm -f $out/LICENSE_NATIVEIMAGE.txt