buildGraalvm: move files in $out to $out/share (#346174)

This commit is contained in:
Thiago Kenji Okada 2024-10-03 16:59:36 +01:00 committed by GitHub
commit b7b1f8b052
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -124,6 +124,12 @@ let
# jni.h expects jni_md.h to be in the header search path.
ln -sf $out/include/linux/*_md.h $out/include/
mkdir -p $out/share
# move files in $out like LICENSE.txt
find $out/ -maxdepth 1 -type f -exec mv {} $out/share \;
# symbolic link to $out/lib/svm/LICENSE_NATIVEIMAGE.txt
rm -f $out/LICENSE_NATIVEIMAGE.txt
# copy-paste openjdk's preFixup
# Set JAVA_HOME automatically.
mkdir -p $out/nix-support