Skip to content

Commit 1d9da02

Browse files
committed
trimmomatic: fix build by switching to JDK 21
For some reason, the invocation of jre_minimal in conjunction with JDK 11 leads to failures; `jlink` complains about a version mismatch with the target JRE version: ``` Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase no configure script, doing nothing Running phase: buildPhase Error: jlink version 21.0 does not match target java.base version 11.0 ``` I didn't invest much time into figuring out how this happens, because simply switching to JDK 21 seems to do at least fix the failing build.
1 parent aa852f2 commit 1d9da02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkgs/top-level/all-packages.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15635,14 +15635,14 @@ with pkgs;
1563515635
;
1563615636

1563715637
trimmomatic = callPackage ../applications/science/biology/trimmomatic {
15638-
jdk = pkgs.jdk11_headless;
15638+
jdk = pkgs.jdk21_headless;
1563915639
# Reduce closure size
1564015640
jre = pkgs.jre_minimal.override {
1564115641
modules = [
1564215642
"java.base"
1564315643
"java.logging"
1564415644
];
15645-
jdk = pkgs.jdk11_headless;
15645+
jdk = pkgs.jdk21_headless;
1564615646
};
1564715647
};
1564815648

0 commit comments

Comments
 (0)