!aRKdLCkUeIFjRPZuJT:nixos.org

NixOS JVM

122 Members
26 Servers

Load older messages


SenderMessageTime
14 Aug 2025
@msgilligan:matrix.orgmsgilliganTo use FFM within a native-image on aarch64 (Darwin and Linux) requires GraalVM 25, which is why I've been workin to make this available on Nix.17:41:23
@msgilligan:matrix.orgmsgilligan* To use FFM within a native-image on aarch64 (Darwin and Linux) requires GraalVM 25, which is why I've been working to make this available on Nix.17:41:38
@msgilligan:matrix.orgmsgilligan I will migrate from EA to GA and from graalvm-oracle (non-free) to graalvm-ce when possible. 17:42:24
@vog:matrix.orgvogI pushed the final version incorporating all feedback, and just need a final review, to be able to quickly send my followup-PRs.19:19:25
@msgilligan:matrix.orgmsgilliganI did some minimal testing and posted an approving review (details in the review)20:35:24
@msgilligan:matrix.orgmsgilligan... and my reviews are worth very penny that you pay for them 🤦‍♂️23:12:00
15 Aug 2025
@britter:yatrix.orgBenedikt Ritter (britter) joined the room.17:44:08
@msgilligan:matrix.orgmsgilligan Welcome Benedikt Ritter (britter) ! 18:25:55
@britter:yatrix.orgBenedikt Ritter (britter)Cool! Didn't know about this room.18:55:16
@britter:yatrix.orgBenedikt Ritter (britter)Has anybody else noticed that the rich console in Gradle doesn't work anymore since a few versions when Gradle is installed using Nix?18:58:03
@msgilligan:matrix.orgmsgilligan I haven't noticed . What happens? Does it fall back to plain mode or does the output get messed up somehow? 19:37:50
@msgilligan:matrix.orgmsgilligan I just did a quick test with Gradle 8.14.3 on aarch64 NixOS (in a nixos-lima VM) and it seems to default to plain mode (when I believe it should default to rich mode) 19:44:59
@msgilligan:matrix.orgmsgilligan * I just did a quick test with Gradle 8.14.3 on aarch64 NixOS (in a nixos-lima VM) and it seems to default to plain mode (when I believe it should default to rich mode) 19:57:29
16 Aug 2025
@msgilligan:matrix.orgmsgilligan github:nixpkgs-jdk-ea/nixpkgs/jdk-ea-25 now has both (unfree) GraalVM JDK 25 and Gradle 9.1.0-rc-1, so you can now build Java 25 source with Nix! 01:28:45
@britter:yatrix.orgBenedikt Ritter (britter) msgilligan: it's not a defaulting in that sense. Something is broken with some ncurses bridge that comes with the rubygrapefruit library that is used by Gradle and cached in the user home. I was able to fix this by dropping my local Gradle caches. Then it worked for a few builds until it didn't 😏 I'd love to have this fixed but I don't even know where to start. 09:42:03
@britter:yatrix.orgBenedikt Ritter (britter)Some more context: https://github.com/gradle/gradle/issues/32006 In need to collect all the different pieces of info I have about this issue and then create a new issue on nixpkgs, so we can start triaging.11:53:56
@ami:the-apothecary.clubAmigradle cache is like dns11:56:12
@britter:yatrix.orgBenedikt Ritter (britter)

Honestly, for me it has worked pretty reliably outside of NixOS. I think there's a lot of false information on the internet, where people got stuck with a problem, then tried a bunch of different things without a structured process and somewhere in the middle they ran gralde clean and deleted all cashes. Then when they get unstuck they claim "cleaning and deleting all cashes will fix your problems", which is not the case most of the time.

In this particular case, I suspect that one of the jars from Gradle's native platform does something that doesn't work correctly on NixOS. Maybe it expects something to be in an FHS location, or something like that.

Right now, I don't know how we would fix this, because we can't install a fixed version of that jar into the cache, because we don't know the cache location beforehands.

15:06:37
@britter:yatrix.orgBenedikt Ritter (britter)But I'm speculating. I need some more time to dig deeper into this. Not sure when I'll get to it.15:07:05
@msgilligan:matrix.orgmsgilliganI've approved this Gradle 9 PR and I'm hoping one of the maintainers can review it: https://github.com/NixOS/nixpkgs/pull/42104716:41:04
@msgilligan:matrix.orgmsgilligan

ollijh has requested that we bump the default Gradle version to 9 as part of this PR, but to me this seems premature. I would think that the individual package maintainers should update individually and perhaps follow what the upstream packages are doing. And projects that use non-built-in plugins often need to wait for plugins to be updated.

I tried bumping three packages selected arbitrarily and none of them worked. See https://github.com/NixOS/nixpkgs/pull/421047#issuecomment-3189716199

16:48:31
@emilazy:matrix.orgemilyhow long will 8 be in security support?16:50:20
@msgilligan:matrix.orgmsgilliganUntil Gradle 10 ships16:56:27
@emilazy:matrix.orgemilyseems fine to ship as the default for 25.11 then16:59:20
@emilazy:matrix.orgemilywe still have Gradle 7 though…16:59:35
@emilazy:matrix.orgemilywhich should not go into 25.1116:59:38
@msgilligan:matrix.orgmsgilliganYou mean leave Gradle 8 as the default for 25.11?17:00:59
@msgilligan:matrix.orgmsgilligan

Looks like there's been progress on removing gradle_7: https://github.com/NixOS/nixpkgs/issues/358845

(It looks like openjfx wasn't on the list. It looks like removing gradle_7 might mean no openjfx prior to 23, leaving only jfx 25 as a supported version. Apps can always pull the version of jfx they need from Maven Central, I suppose. I'm not sure how this will affect building JDKs with bundled jfx.)

18:57:34
17 Aug 2025
@vog:matrix.orgvogNeed more reviewers to fix an issue with fetchMavenArtifact: https://github.com/NixOS/nixpkgs/pull/43397504:14:48
@vog:matrix.orgvog* Need more reviewers to fix an issue of fetchMavenArtifact: https://github.com/NixOS/nixpkgs/pull/43397504:14:58

Show newer messages


Back to Room ListRoom Version: 6