!aRKdLCkUeIFjRPZuJT:nixos.org

NixOS JVM

121 Members
27 Servers

Load older messages


SenderMessageTime
17 Jul 2025
@emilazy:matrix.orgemilyusually stuff like that is left to out of tree repos21:22:08
@msgilligan:matrix.orgmsgilliganBut step 1 and 2 of the list of the above could me merged separately, I assume.21:26:46
@msgilligan:matrix.orgmsgilliganAnd, as far as making it available "out of tree", what would be the best way to do that?21:27:12
@emilazy:matrix.orgemily

for sure for #1, it should probably get the token from the environment like other tooling

for #2 I guess it depends on the complexity of the code change and whether we worry about EA versions being added accidentally - if we don't expect that we'd want to exercise the functionality in Nixpkgs

21:28:11
@emilazy:matrix.orgemily
In reply to @msgilligan:matrix.org
And, as far as making it available "out of tree", what would be the best way to do that?
the standard thing these days would be to make a flake. we could expose generic builders for the relevant packages that can be supplied arbitrary versions from Nixpkgs if it would make that task easier l
21:28:58
@msgilligan:matrix.orgmsgilliganWould (or could) that flake be an "overlay"? It would be nice if I could add 25-EA and then have packages like Gradle and JBang be configured to use that JDK. That (or a similar mechanism) would also allow the build of 25 to get some testing.21:30:55
@emilazy:matrix.orgemilyit can be, but you don't need an overlay to use out of tree packages either21:33:41
@msgilligan:matrix.orgmsgilligan I know that raboof created an "out of tree" solution here, but I don't know how to use it from a flake and it seems more like a very separate thing, not something this is a "preview" of something that will move to Nixpkgs. 21:34:35
@msgilligan:matrix.orgmsgilliganI think the ideal way would be able to access the PRs branch directly and I've seen flakes that use both a stable and unstable release of Nixpkgs, so I think that approach should work. That would also make it easier to rebase and to adapt for new EA releases after the current EA becomes GA.21:37:41
@emilazy:matrix.orgemilyyeah, that very much works21:43:06
@emilazy:matrix.orgemilyyou don't necessarily need two Nixpkgses since GitHub has magic refs that represent the state if the PR was merged21:43:45
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️The unfortunate thing with PR branches vs overlays or grabbing directly is that PR branches usually aren't kept up to date, and usually don't follow with a standard stable branch21:43:47
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Oh good magic ref, that works21:43:58
@emilazy:matrix.orgemilythough in the presence of merge conflicts that doesn't work so great :)21:44:00
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️If flakes supported patches for inputs the world would be at peace21:44:20
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️But alas21:44:25
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️IFD21:44:26
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️I have hope for Fetch Tree, but only hope21:44:35
@emilazy:matrix.orgemilyI don't think fetchTree changes anything there21:45:44
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️I think the ideal solution would be an out-of-tree repo exposing packages through flakes and an overlay, with a structure identical to how the packages would be in Nixpkgs, so they can be directly transferred in later21:45:47
@emilazy:matrix.orgemilyhonestly using the PR refs seems fine to me. I just, like, wouldn't deploy it in pros21:46:34
@emilazy:matrix.orgemily * 21:46:39
@emilazy:matrix.orgemilybut I wouldn't deploy an EA version in prod to begin with :)21:46:51
@msgilligan:matrix.orgmsgilliganI need to learn about magic refs then.21:49:22
@msgilligan:matrix.orgmsgilliganSince I'm (mostly) on Darwin, I use Home Manager, so I would add the JDK-ea Nixpkgs as an additional input.21:50:57
@msgilligan:matrix.orgmsgilligan* Since I'm (mostly) on Darwin, I use Home Manager, so I would add the JDK-ea Nixpkgs as an additional input (to my flake-based Home Manager config)21:51:14
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️
In reply to @emilazy:matrix.org
I don't think fetchTree changes anything there

Eelco suggested adding a patches option to fetchTree, which would support directly applying patches to an input without IFD

it isn't something that currently exists In Reality though, which is why it's only hope and not anticipation

21:51:18
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️
In reply to @emilazy:matrix.org
I don't think fetchTree changes anything there
*

Eelco (supposedly, this isn't directly from him) suggested adding a patches option to fetchTree, which would support directly applying patches to an input without IFD

it isn't something that currently exists In Reality though, which is why it's only hope and not anticipation

21:51:30
@emilazy:matrix.orgemilyright21:52:21
@emilazy:matrix.orgemilytbh just maintaining a fork is the most convenient thing, give appropriate tooling21:52:48

Show newer messages


Back to Room ListRoom Version: 6