openjdk8: add setJavaClassPath-hook to jdk as well

This hook got removed from JDK[1], however without this hook,
the classpath in a Java-build isn't created anymore which caused
several[2][3] broken packages.

[1] https://github.com/NixOS/nixpkgs/pull/65247/files#r324459267
[2] https://hydra.nixos.org/build/100896633
[3] https://hydra.nixos.org/build/100895668

ZHF #68361
This commit is contained in:
Maximilian Bosch 2019-09-20 10:11:00 +02:00
parent a7f002ac41
commit 19f88062a6
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E

View File

@ -219,6 +219,8 @@ let
ln -s $jre/lib/openjdk/jre $out/jre
'';
propagatedBuildInputs = [ setJavaClassPath ];
preFixup = ''
# Propagate the setJavaClassPath setup hook from the JRE so that
# any package that depends on the JRE has $CLASSPATH set up