adoptopenjdk-bin: 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:33:57 +09:00
parent f9d4095295
commit 27f5088cd2
2 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,9 @@ let cpuName = stdenv.hostPlatform.parsed.cpu.name;
mv $sourceRoot $out
# jni.h expects jni_md.h to be in the header search path.
ln -s $out/Contents/Home/include/darwin/*_md.h $out/Contents/Home/include/
rm -rf $out/Home/demo
# Remove some broken manpages.

View File

@ -65,6 +65,9 @@ let result = stdenv.mkDerivation rec {
mv $sourceRoot $out
# jni.h expects jni_md.h to be in the header search path.
ln -s $out/include/linux/*_md.h $out/include/
rm -rf $out/demo
# Remove some broken manpages.