!aRKdLCkUeIFjRPZuJT:nixos.org

NixOS JVM

136 Members
29 Servers

Load older messages


SenderMessageTime
18 Apr 2026
@alice:the-apothecary.clubAlicewell, we wouldn't think that that would be the job of the flake18:12:17
@alice:the-apothecary.clubAlicebut of the system, to see that flake says "i need a jdk, of openjdk variety, optionally with gtk" and go "yeah, we have openjdk, here you go"18:13:31
@samasaur:matrix.orgsamasaurthat's the kind of thing that nix explicitly tries to avoid, because doing that inevitably runs into obscure and hard to debug errors when the jdk provided by the system isn't compatible with the package for whatever reason18:14:59
@samasaur:matrix.orgsamasaurthe nix way to do what you're trying to do would be to have users of the flake override it to use a jdk that they know they're already using on their system18:16:43
@msgilligan:matrix.orgmsgilligan It seems like there could be some kind of preprocessing step that outputs a flake configuration that meets the requirement of a single JDK that satisfies dependencies of other packages. 18:50:46
@samasaur:matrix.orgsamasauri mean you very well could define a flake output that needs to be passed a JDK18:51:16
@samasaur:matrix.orgsamasaur it's just not the typical way things are done because then nix run, nix shell, etc. won't work 18:51:48
@alice:the-apothecary.clubAlicethat's "true", but feels like, kind of a shit UX, tbqh18:52:09
@samasaur:matrix.orgsamasaur you could also define it to optionally take a JDK and fall back to pkgs.openjdk if one isn't passed 18:52:20
@samasaur:matrix.orgsamasaurbut there's an infinite number of cases like this where your dependencies are configured to build with dependencies of their own that you don't care about18:53:09
@samasaur:matrix.orgsamasaurmy recommendation would be not to bother, because a) normal gradle/openjdk will be cached on hydra and an overriden one will not; b) chances are users of your package will already have the normal (non overriden) openjdk in their nix store due to other packages; c) users who actually care about extracting every little bit of space can do the overriding themselves18:55:38
@samasaur:matrix.orgsamasaurnow if you are in a situation where you need to be this precise about dependencies due to disk usage, maybe you come to a different conclusion than i did18:56:53
@msgilligan:matrix.orgmsgilliganI wonder if something like this would help for these use-cases: https://www.socallinuxexpo.org/scale/22x/presentations/configurable-flakes19:04:59
19 Apr 2026
@rasmata:matrix.org@rasmata:matrix.org joined the room.13:08:38
@rasmata:matrix.org@rasmata:matrix.org left the room.13:08:42
15 Jun 2021
@grahamc:nixos.org@grahamc:nixos.org set the history visibility to "world_readable".13:58:25
@grahamc:nixos.org@grahamc:nixos.org changed the room name to "" from "".13:58:25
@grahamc:nixos.org@grahamc:nixos.org invited @fzakaria:matrix.orgfzakaria (Old).13:58:33
@server_stats:nordgedanken.devServer Stats Discoverer (traveler bot) joined the room.14:03:43
@voyager:t2bot.ioMatrix Traveler (bot) joined the room.14:15:47
@joerg:bethselamin.deMic92 joined the room.14:23:40
@charlotte:vanpetegem.mechvp joined the room.14:23:42
@joerg:bethselamin.deMic92 left the room.14:23:55
@gytis-ivaskevicius:matrix.orgGytis Ivaskevicius joined the room.14:28:47
@0x4a6f:matrix.org[0x4A6F] joined the room.18:26:24
@fzakaria:matrix.orgfzakaria (Old) joined the room.23:08:49
16 Jun 2021
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.13:45:06
21 Jun 2021
@roberthensing:matrix.orgRobert Hensing (roberth) joined the room.09:46:52
24 Jun 2021
@dschrempf:matrix.orgdschrempf joined the room.12:06:47
26 Jun 2021
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.01:18:14

Show newer messages


Back to Room ListRoom Version: 6