zulu, zulu8: 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:21 +09:00
parent 27f5088cd2
commit 9cc0da0f7f
2 changed files with 6 additions and 0 deletions

View file

@ -70,6 +70,9 @@ in stdenv.mkDerivation {
mkdir -p $out mkdir -p $out
cp -r ./* "$out/" cp -r ./* "$out/"
# jni.h expects jni_md.h to be in the header search path.
ln -s $out/include/linux/*_md.h $out/include/
mkdir -p $out/nix-support mkdir -p $out/nix-support
printWords ${setJavaClassPath} > $out/nix-support/propagated-build-inputs printWords ${setJavaClassPath} > $out/nix-support/propagated-build-inputs

View file

@ -72,6 +72,9 @@ in stdenv.mkDerivation {
mkdir -p $out mkdir -p $out
cp -r ./* "$out/" cp -r ./* "$out/"
# jni.h expects jni_md.h to be in the header search path.
ln -s $out/include/linux/*_md.h $out/include/
mkdir -p $out/nix-support mkdir -p $out/nix-support
printWords ${setJavaClassPath} > $out/nix-support/propagated-build-inputs printWords ${setJavaClassPath} > $out/nix-support/propagated-build-inputs