!aRKdLCkUeIFjRPZuJT:nixos.org

NixOS JVM

129 Members
27 Servers

Load older messages


SenderMessageTime
24 May 2024
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️2024-05-24_17-17-33.png
Download 2024-05-24_17-17-33.png
21:17:47
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️With that, I am going to close every open JDK related tab in my browser and think about anything else21:18:10
@philiptaron:matrix.orgPhilip Taron (UTC-8)
In reply to @philiptaron:matrix.org
https://github.com/NixOS/nixpkgs/pull/314377 -- nixpkgs-review says it'll rebuild 890 packages
and I managed to OOM my box trying to build this 😬
22:22:34
26 May 2024
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Went ahead and retargeted it to staging08:49:11
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️(Without pinging the entire codeowners file this time 🎉)08:49:20
@jlle:matrix.orgjlle joined the room.22:26:03
3 Jun 2024
@philiptaron:matrix.orgPhilip Taron (UTC-8)Maybe this is the week it'll get merged. Looks good to me 👍️15:23:28
10 Jun 2024
@frederic:scs.ems.hostFrédéric Christ (back on 02.01.) joined the room.14:53:50
@frederic:scs.ems.hostFrédéric Christ (back on 02.01.)Sorry for bothering, but I could not find a specific nix/java room. A few weeks ago, there has been a post regarding a new build helper for Gradle projects, but I cannot find it anymore. Does anyone of you remember?16:39:25
@frederic:scs.ems.hostFrédéric Christ (back on 02.01.)Found it: https://discourse.nixos.org/t/gradle2nix-v2-call-for-testers/4619916:45:59
11 Jun 2024
@philiptaron:matrix.orgPhilip Taron (UTC-8) Infinidoge 🏳️‍⚧️: any PRs that need reviews or attention? I clicked through the links above and it looks like we're all merged up. 15:11:38
12 Jun 2024
@lorenzleutgeb:matrix.orgLorenz Leutgeb removed their display name Lorenz Leutgeb.00:31:23
@lorenzleutgeb:matrix.orgLorenz Leutgeb set their display name to Lorenz Leutgeb.00:32:55
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️
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
@taffisher:matrix.orgtadHowdy02:33:38
@zachcoyle:matrix.orgZach joined the room.21:24:11
3 Jul 2024
@vandycarlos:matrix.org@vandycarlos:matrix.org joined the room.19:37:33
4 Jul 2024
@philiptaron:matrix.orgPhilip Taron (UTC-8) left the room.15:46:11
@philiptaron:matrix.orgPhilip Taron (UTC-8) joined the room.15:52:32
5 Jul 2024
@wcohen:matrix.orgwcohen joined the room.13:26:42
6 Jul 2024
@devurandom:matrix.orgDennis joined the room.20:13:34
@devurandom:matrix.orgDennis 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
@devurandom:matrix.orgDennis *

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:inx.moeInfinidoge 🏳️‍⚧️To my knowledge, there unfortunately isn't a system to do this across a system environment20:23:29
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️(Namely because you can only (really) have 1 copy of something in the path)20:24:25
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️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_HOME20:25:07
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️ * 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:inx.moeInfinidoge 🏳️‍⚧️If you want to have a different version for gradle in a project-specific manner, setting up a devshell would likely be the best option20:26:39
@devurandom:matrix.orgDennisThanks! 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:inx.moeInfinidoge 🏳️‍⚧️Neat, good to know20:31:10

Show newer messages


Back to Room ListRoom Version: 6