!aRKdLCkUeIFjRPZuJT:nixos.org

NixOS JVM

121 Members
27 Servers

Load older messages


SenderMessageTime
19 Jul 2025
@vog:matrix.orgvogThe s6 tool do perform this job perfectly.20:35:03
@emilazy:matrix.orgemilywe do have NixOS containers for that, but they are moderately heavyweight20:35:18
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️
In reply to @emilazy:matrix.org
right, NixOS modules are quite bad about being unnecessarily singleton
Entire reason behind nix-minecraft lmao
20:35:30
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Being able to host Exactly One minecraft server sucks20:35:54
@vog:matrix.orgvogOk, but back to you original quesion: No, I don't neet a module configuration, just a pkgs configuration. But why were you asking?20:36:28
@emilazy:matrix.orgemilyunfortunately the module system is kind of bad (my hot take)20:36:33
@emilazy:matrix.orgemily(but the things we do with the module system are nice)20:36:47
@emilazy:matrix.orgemilydo wish we had something that didn't make singletons the happy path20:37:02
@emilazy:matrix.orgemilybecause manual containerization sucks20:37:10
@vog:matrix.orgvogOk, so I'm now back where I started. Many alternatives, but none of which appears interesting of even feasible to me. So I'd like to add junixsocket.20:39:36
@vog:matrix.orgvogCrazy idea: What if we make junixsocket, perhaps just the two parts "junixsocket-common" and "junixsocket-native-common", a dependency on postgresql_jdbc? That way, every Nix package that uses pkgs.postgresql_jdbc would automatically have support for unix sockets.20:41:12
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Not particularly crazy, a lot of packages do stuff like that, only skipping it if the optional dependency os extremely heavy20:41:57
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️* Not particularly crazy, a lot of packages do stuff like that, only skipping it if the optional dependency is extremely heavy20:42:15
@vog:matrix.orgvogSo would it make sense if I propose a pull request for exactly that? Or would that be doomed to be rejected? (In which case I'd work on a less intrusive solution instead)20:43:03
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Most PRs are usually doomed to inactivity instead of rejection20:43:37
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️This change makes perfect sense to me so I say go for it20:44:00
@vog:matrix.orgvogI'm a bit confused about java package conventions, though. So continuing my list of questions:21:32:58
@vog:matrix.orgvog
  1. Java libraries are not meant to be added to javaPackages, at least libraries like postgresql_jdbc and jogl are not. Is this intentional, or a bug?
21:33:42
@vog:matrix.orgvog 3 .Java libraries are put into by-name/.../, contrary to what is usual in other languages within Nix (e.g. ocamlPackages, etc.). Should I follow that convention? 21:34:59
@vog:matrix.orgvog *
  1. Java libraries are put into by-name/.../, contrary to what is usual in other languages within Nix (e.g. ocamlPackages, etc.). Should I follow that convention?
21:35:09
@vog:matrix.orgvog
  1. If a package provides github binary release tarballs, should I prefer those, or should I prefer fetchMavenArtifact?
21:46:34
@vog:matrix.orgvog *
  1. Java libraries are not meant to be added to javaPackages, at least libraries like postgresql_jdbc and jogl are not. Is this intentional, or a bug?
21:47:17
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️
In reply to @vog:matrix.org
  1. Java libraries are put into by-name/.../, contrary to what is usual in other languages within Nix (e.g. ocamlPackages, etc.). Should I follow that convention?
Java libraries are a bit different because they aren't notably intertwined with each other, while languages like ocaml and python have a very intertwined library ecosystem
21:55:35
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Java libraries are treated by and large like normal packages both in Nix and elsewhere21:55:59
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️
In reply to @vog:matrix.org
  1. Java libraries are not meant to be added to javaPackages, at least libraries like postgresql_jdbc and jogl are not. Is this intentional, or a bug?
As far as I can tell javaPackages only has openjfx nowadays, and that will likely be moved out later on when separated from the jdk itself
21:57:58
@msgilligan:matrix.orgmsgilliganI was just curious and thought it might be good to have some context.22:55:05
@vog:matrix.orgvogThanks! Regarding my last question, I decided to prefer fetchMavenArtifact, for the simple pragmatic reason that it allows me to easier reference to the sub libraries (junitsocket-common, etc.) separately.22:56:48
@vog:matrix.orgvog * Infinidoge 🏳️‍⚧️: Thanks for your responses! Regarding my last question, I decided to prefer fetchMavenArtifact, for the simple pragmatic reason that it allows me to easier reference to the sub libraries (junitsocket-common, etc.) separately. 22:57:19
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Makes sense to me22:57:32
21 Jul 2025
@drupol:matrix.orgPol joined the room.15:50:24

Show newer messages


Back to Room ListRoom Version: 6