From 19f88062a6d055d00d76dc963b47aab93164188b Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Fri, 20 Sep 2019 10:11:00 +0200 Subject: [PATCH] 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 --- pkgs/development/compilers/openjdk/8.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/compilers/openjdk/8.nix b/pkgs/development/compilers/openjdk/8.nix index 1d356945a4f..1a5848cd1a6 100644 --- a/pkgs/development/compilers/openjdk/8.nix +++ b/pkgs/development/compilers/openjdk/8.nix @@ -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