| 19 Apr 2026 |
| @rasmata:matrix.org left the room. | 13:08:42 |
| 21 Apr 2026 |
ortolanbunting3002 | Is there a good way to handle Linux binaries from dependencies managed via the gradle setup-hook? There are gradle plugins which download linux binaries, which don't work (Most likely because the ELF interpreter isn't set properly). Is there a way to make them work? I've thought of autoPatchelf, nix-ld or buildFHSEnv. But I'm not sure of how to integrate those with the build of a gradle application. | 07:32:16 |
Benedikt Ritter (britter) | The short answer is: no
I've been running into the plugin when I tried to use the protobuf gradle plugin. It wraps protoc which it loads from maven central if I remember correctly. Or maybe it was a protoc plugin that was loaded separately from Maven Central.
Anyway, the issue with these things is that there's no unified way to point them to a directory for looking up natives. Some may have a system property, some may look at PATH, sometimes there's a Gradle plugin config...
So I wouldn't know how to solve this problem in a generic way.
I think what we would need is to be able to have drvs for all libs on maven central and then be able inject the build time dependencies on the nix level.
But thats a completely different and radical approach compared to the dependency FOD solution that we have right now.
| 08:17:19 |
Benedikt Ritter (britter) | I solved my problem by putting everything into the env and using nix-ld. | 08:17:49 |
ortolanbunting3002 | But you don't build using mkDerivation? | 08:18:33 |
Benedikt Ritter (britter) | No, we don't. We gave up in the end: https://britter.dev/blog/2025/02/27/nix-java-enterprise/ | 09:06:23 |
| 26 Apr 2026 |
Benedikt Ritter (britter) | RFC https://github.com/NixOS/nixpkgs/pull/513696 | 13:39:48 |
| 27 Apr 2026 |
| Matt McHenry joined the room. | 22:34:14 |
| 28 Apr 2026 |
Benedikt Ritter (britter) | Anybody? šš„² | 05:50:38 |
Infinidoge š³ļøāā§ļø | Looking into it now! | 19:55:21 |
Infinidoge š³ļøāā§ļø | Reviewed and approved, if anyone here has experience with Maven and buildMavenPackage, please also review it | 19:59:41 |
Infinidoge š³ļøāā§ļø | (I haven't worked with buildMavenPackage, so would like another opinion) | 20:00:13 |
| 29 Apr 2026 |
Benedikt Ritter (britter) | Thank you for the review. I agree about the formatting changes. I think this is caused by prettier being configured as a formatting source in my nvim none-ls setup and it seems to also format markdown files š I need to disable this because it's causing problems everywhere I edit markdown or yaml files. | 12:36:45 |
Benedikt Ritter (britter) | Infinidoge š³ļøāā§ļø: I wonder whether I should add to this PR updating all the packages that currently use rec. Each in a separate commit. That would at the same time prove that the code is working. | 14:27:43 |
Infinidoge š³ļøāā§ļø | Up to you! Though from my own experience, I caution making a PR too big, as it can make the changes hard to review and take longer to merge
Doing it all at once would ensure that it gets done along side, though | 18:38:12 |
| 30 Apr 2026 |
Benedikt Ritter (britter) | I've reviewed the list of packages that depend on buildMavenPackage and devided to do that separately. | 12:21:23 |
| 1 May 2026 |
Benedikt Ritter (britter) | @infinidoge:inx.moe did you trigger borg build of the JDK25 change you've been working on? | 07:47:03 |
| 5 May 2026 |
dish [Fox/It/She] | has there been any work on the libre/binary-free bootstrap recently? Came across that discussion and at least to me doesn't seem like there's any movement on it | 17:01:48 |
dish [Fox/It/She] | * has there been any work on the libre/binary-free bootstrap recently? Came across that discussion and at least to me doesn't seem like there's any movement on it
And if there isn't, would there be interest in me picking up that work? I've been looking at reducing nixpkgs' reliance on binary bootstraps in various places and openjdk/JDKs in general seem like a good place to do that for | 17:04:56 |
Benedikt Ritter (britter) | If anybody has time, I have two maven related PRs open that need reviews and merge: https://github.com/NixOS/nixpkgs/pull/516099 and https://github.com/NixOS/nixpkgs/pull/516100 | 17:46:53 |
Infinidoge š³ļøāā§ļø | In reply to @pyrox:pyrox.dev
has there been any work on the libre/binary-free bootstrap recently? Came across that discussion and at least to me doesn't seem like there's any movement on it
And if there isn't, would there be interest in me picking up that work? I've been looking at reducing nixpkgs' reliance on binary bootstraps in various places and openjdk/JDKs in general seem like a good place to do that for Not really, at least to my knowledge.
I was the one who personally removed the previous bootstrap chain, because it was broken, unmaintained, and not even used.
If you want to look into it, be my guest, but you'll need to commit to maintaining it. I don't want to need to come back down the line and delete another bootstrap chain | 19:06:54 |
dish [Fox/It/She] | In reply to @infinidoge:inx.moe
Not really, at least to my knowledge.
I was the one who personally removed the previous bootstrap chain, because it was broken, unmaintained, and not even used.
If you want to look into it, be my guest, but you'll need to commit to maintaining it. I don't want to need to come back down the line and delete another bootstrap chain gotcha, thanks! | 19:11:32 |
msgilligan | I would personally love to see this, but I think it is not feasible at present. The limited bandwidth of current NixOS JVM contributors would be better spent elsewhere IMO.
If you are interested in using or contributing to a libre/binary-free JDK bootstrap, GUIX is the place. GUIX (last I checked) is lagging behind on Maven support (for example) so they could use help, too. | 19:15:38 |
Matt McHenry | Hey all, I'm wondering if we could get some eyes on the PR to add Java 26 (Temurin) and its prerequisite? Thanks! | 19:30:36 |
Benedikt Ritter (britter) | sorry if this is a dump question, but what is a libre/binary-free JDK bootstrap? Are we using JDK binary builds and patchElfing them? I never looked into those details š I'm surprised to learn about this. The JDK is completely open source, isn't it? What's the issue with building it from source in NixOS? | 19:54:04 |
Puna | completely binary-free? | 20:07:32 |
Puna | https://bootstrappable.org/projects/java.html | 20:07:43 |
msgilligan | No Gradle or Kotlin if you want binary-free | 20:08:30 |
msgilligan | Iām searching for previous discussions that I remember | 20:08:52 |
| 6 May 2026 |
dish [Fox/It/She] | In reply to @msgilligan:matrix.org
I would personally love to see this, but I think it is not feasible at present. The limited bandwidth of current NixOS JVM contributors would be better spent elsewhere IMO.
If you are interested in using or contributing to a libre/binary-free JDK bootstrap, GUIX is the place. GUIX (last I checked) is lagging behind on Maven support (for example) so they could use help, too. i would contribute to guix except i do not like scheme-like languages | 00:05:37 |