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.
This commit is contained in:
Manuel Frischknecht
2025-05-25 15:43:32 +02:00
parent aa852f2301
commit 1d9da023e6
+2 -2
View File
@@ -15635,14 +15635,14 @@ with pkgs;
;
trimmomatic = callPackage ../applications/science/biology/trimmomatic {
jdk = pkgs.jdk11_headless;
jdk = pkgs.jdk21_headless;
# Reduce closure size
jre = pkgs.jre_minimal.override {
modules = [
"java.base"
"java.logging"
];
jdk = pkgs.jdk11_headless;
jdk = pkgs.jdk21_headless;
};
};