!aRKdLCkUeIFjRPZuJT:nixos.org

NixOS JVM

121 Members
27 Servers

Load older messages


SenderMessageTime
24 Sep 2025
@emilazy:matrix.orgemilyI don't know if it's a JDK term or just our term. but it gates the X11, GTK etc. dependencies15:31:54
@emilazy:matrix.orgemilylike we just set the flag to build that stuff or not and give the dependencies or not based on that.15:32:12
@emilazy:matrix.orgemilybecause ideally a web server doesn't pull in GTK15:32:19
@emilazy:matrix.orgemilyin an ideal world AWT/Swing are just a separate package you can pull in like JFX15:32:35
@msgilligan:matrix.orgmsgilliganYeah, and probably the JDK modules for AWT, etc. rely on the dynamic libs being there but don't bundle them. But I don't know how that works.15:33:04
@msgilligan:matrix.orgmsgilligan* Yeah, and probably the JDK modules for AWT, etc. rely on the dynamic libs being there but don't bundle them (or provide e mechanism to install or link them.) But I don't know how that works.15:34:28
@msgilligan:matrix.orgmsgilligan* Yeah, and probably the JDK modules for AWT, etc. rely on the dynamic libs being there but don't bundle them (or provide a mechanism to install or link them.) I don't know how that part works.15:34:50
@emilazy:matrix.orgemily it looks like it might just be a matter of setting java.library.path or something. or patching to use System.load 15:53:40
@emilazy:matrix.orgemilyanyway, less important than JFX for sure.15:54:04
@emilazy:matrix.orgemilyI guess it is maybe more difficult, because there is specific JNI C code. I don't really know how you do JNI linking to native libs in general15:55:33
@emilazy:matrix.orgemily oh, but it will do dlopen: https://github.com/openjdk/jdk25u/blob/master/src/java.desktop/unix/native/libawt_xawt/awt/gtk3_interface.c#L98 15:56:53
@emilazy:matrix.orgemilyso actually you can totally provide it GTK at runtime only. cool.15:57:00
@msgilligan:matrix.orgmsgilligan Looks like Temurin 25 is almost ready. I'm updating the draft PR now. aarch64-linux seems to be the only thing missing. 15:57:04
@msgilligan:matrix.orgmsgilligan I assume we can't merge it until aarch64-linux is there? 15:57:42
@emilazy:matrix.orgemilyI think we could do that without splitting it out of the JDK package – just always build the stuff, but don't link it directly against GTK, and it'll only work if you have it on the library path at runtime.15:57:47
@emilazy:matrix.orgemilyas in, they haven't put up the binaries yet? I'd wait, yeah.15:58:05
@msgilligan:matrix.orgmsgilliganYeah. I think all the others we care about are there. (x64 linux, and both x64 and aarch64 darwin are there)15:58:58
@msgilligan:matrix.orgmsgilliganI'll update the PR anyway, so the ones that are there can run through CI15:59:54
@emilazy:matrix.orgemilythe CI "resets" every time you push anyway16:03:01
@emilazy:matrix.orgemilyso no rush there16:03:06
@emilazy:matrix.orgemilywell, I guess it avoids the actual build since it'll have it cached, but the real slow part is waiting for the queue…16:03:20
@msgilligan:matrix.orgmsgilligan nix build .#temurin-bin-25 .#temurin-jre-bin-25 seems to have produced runnable java and javac 16:03:27
@msgilligan:matrix.orgmsgilliganI already pushed the update16:03:46
@msgilligan:matrix.orgmsgilliganRedacted or Malformed Event16:04:10
@msgilligan:matrix.orgmsgilliganI'm only adding 25, not included the updates to the other versions which are (hopefully) making there way to unstable.16:04:39
@msgilligan:matrix.orgmsgilligan* I'm only adding 25, not including the updates to the other versions which are (hopefully) making there way to unstable.16:04:49
@msgilligan:matrix.orgmsgilligan* I'm only adding 25, not including the updates to the other versions which are (hopefully) making their way to unstable.16:05:00
@msgilligan:matrix.orgmsgilliganhttps://github.com/NixOS/nixpkgs/pull/443894/files16:05:44
@msgilligan:matrix.orgmsgilligan nixpkgs-review on aarch64-darwin passed. 16:09:43
@msgilligan:matrix.orgmsgilligan

Is there a way to do something like this as a shell one-liner:

nix shell 'nixpkgs#gradle_9.override { jdk = nixpkgs.zulu25; }'
19:31:20

Show newer messages


Back to Room ListRoom Version: 6