| 12 Jun 2024 |
Infinidoge 🏳️⚧️ | In reply to @philiptaron:matrix.org Infinidoge 🏳️⚧️: any PRs that need reviews or attention? I clicked through the links above and it looks like we're all merged up. https://github.com/NixOS/nixpkgs/pull/316300 could use some eyes on it, and a couple other small things in the tracking issue (https://github.com/NixOS/nixpkgs/issues/313216), but outside of that nothing big I don't think | 16:46:21 |
| 19 Jun 2024 |
tad | Howdy | 02:33:38 |
| Zach joined the room. | 21:24:11 |
| 3 Jul 2024 |
| vandycarlos joined the room. | 19:37:33 |
| 4 Jul 2024 |
| Philip Taron (UTC-8) left the room. | 15:46:11 |
| Philip Taron (UTC-8) joined the room. | 15:52:32 |
| 5 Jul 2024 |
| wcohen joined the room. | 13:26:42 |
| 6 Jul 2024 |
| Dennis joined the room. | 20:13:34 |
Dennis | Hi! In NixOS, is there a way to install multiple JDKs next to each other, and have the "default" (providing the java command) selected by programs.java, but still be able to point some programs (like gradle) to another JDK? | 20:15:17 |
Dennis | * Hi!
In NixOS, is there a way to install multiple JDKs next to each other, and have the "default" (providing the java command) selected by programs.java, but still be able to point some programs (like gradle) to another JDK?
I tried setting programs.java.enabled = true (which installs JDK 21) and environment.systemPackages = [jdk22] (to get JDK 22 in addition), but now my java --version reports v22, with apparently no way to make it point to v21.
| 20:18:43 |
Infinidoge 🏳️⚧️ | To my knowledge, there unfortunately isn't a system to do this across a system environment | 20:23:29 |
Infinidoge 🏳️⚧️ | (Namely because you can only (really) have 1 copy of something in the path) | 20:24:25 |
Infinidoge 🏳️⚧️ | Multiple Java versions on Linux in other distros is kinda an illusion, in that they are just switching which version is properly installed though things like apt's alternatives, then setting a different JAVA_HOME | 20:25:07 |
Infinidoge 🏳️⚧️ | * Multiple Java versions on Linux in other distros is kinda an illusion, in that they are just switching which version is properly installed though things like apt's alternatives, then setting a different JAVA_HOME and PATH | 20:26:06 |
Infinidoge 🏳️⚧️ | If you want to have a different version for gradle in a project-specific manner, setting up a devshell would likely be the best option | 20:26:39 |
Dennis | Thanks! I just found https://github.com/NixOS/nixpkgs/pull/119444 and that seems to do the trick / work well enough for my specific use case. | 20:30:09 |
Infinidoge 🏳️⚧️ | Neat, good to know | 20:31:10 |
Dennis | Hm, the build succeeded, but now I have a different issue: Loading library prism_es2 from resource failed: java.lang.UnsatisfiedLinkError: /home/[USER]/.openjfx/cache/21.0.1+6/amd64/libprism_es2.so: libXxf86vm.so.1: cannot open shared object file: No such file or directory. Any idea how to solve that? I guess if I could get it to use the NixOS OpenJFX... | 20:45:21 |
Infinidoge 🏳️⚧️ | Try adding xorg.libXxf86vm to your system packages | 20:48:27 |