graalvm8-ce, graalvm11-ce: link jni_md.h to include folder

See https://discourse.nixos.org/t/nix-shell-environment-to-debug-a-build-of-an-r-package/11010/4
This commit is contained in:
taku0 2021-01-23 15:35:48 +09:00
parent 9cc0da0f7f
commit ff3e401d12

View file

@ -182,7 +182,10 @@ let
"11-darwin-amd64" = ''
echo ""
'';
}.${javaVersionPlatform};
}.${javaVersionPlatform} + ''
# jni.h expects jni_md.h to be in the header search path.
ln -s $out/include/linux/*_md.h $out/include/
'';
dontStrip = true;