buildGraalvm: move files in $out to $out/share

Like $out/LICENSE.txt since this is generally a bad idea and can cause
conflicts with other packages.

Fixes #345907.
This commit is contained in:
Thiago Kenji Okada
2024-10-03 14:37:56 +01:00
parent abf4ea19eb
commit 023bdebe77

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