1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00

Merge pull request #110567 from taku0/jdk_ln_headers

This commit is contained in:
Sandro 2021-07-23 18:49:58 +02:00 committed by GitHub
commit 3e712c9a24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 1 deletions

View file

@ -26,6 +26,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

@ -66,6 +66,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.

View file

@ -185,7 +185,10 @@ let
--replace file:/dev/random file:/dev/./urandom \
--replace NativePRNGBlocking SHA1PRNG
'';
}.${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;

View file

@ -70,6 +70,9 @@ in stdenv.mkDerivation {
mkdir -p $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
printWords ${setJavaClassPath} > $out/nix-support/propagated-build-inputs

View file

@ -72,6 +72,9 @@ in stdenv.mkDerivation {
mkdir -p $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
printWords ${setJavaClassPath} > $out/nix-support/propagated-build-inputs