!aRKdLCkUeIFjRPZuJT:nixos.org

NixOS JVM

131 Members
28 Servers

Load older messages


SenderMessageTime
16 Jun 2021
@fzakaria:matrix.orgfzakaria (Old)Nix & Java are challenging especially fixed output since Zip & Java's class files (IR) can contain non-reproducible artifacts (i.e. timestamps)18:37:47
@fzakaria:matrix.orgfzakaria (Old)A good patch might be to also remove that so that by default they are reproducibe18:38:03
21 Jun 2021
@roberthensing:matrix.orgRobert Hensing (roberth) joined the room.09:46:52
@roberthensing:matrix.orgRobert Hensing (roberth) I'm surprised to learn we don't have a generators or formats for java properties 09:47:36
@roberthensing:matrix.orgRobert Hensing (roberth)https://github.com/NixOS/nixpkgs/issues/12764809:47:39
@roberthensing:matrix.orgRobert Hensing (roberth) I hope someone already has a decent implementation but grepping for .properties in Nixpkgs I didn't find a good one 09:48:16
@fzakaria:matrix.orgfzakaria (Old)oh cool.16:23:12
@fzakaria:matrix.orgfzakaria (Old)ini is almost a superset of properties16:23:43
@fzakaria:matrix.orgfzakaria (Old)JSON and TOML are builtins?16:25:34
@fzakaria:matrix.orgfzakaria (Old)or submit java properties to https://github.com/dbohdan/remarshal16:26:31
24 Jun 2021
@dschrempf:matrix.orgdschrempf joined the room.12:06:47
@dschrempf:matrix.orgdschrempfHi! I am referring to the discussion on discourse about packaging a Maven project with mvn2nix. I am slowly moving forward. At the moment, I have the following problem: The Google Ortool Makefile builds two Maven packages in a row, the first being a prerequisite of the other. So essentially, I need to merge the dependencies of two project into a single lock file, so that both projects can be built using the same local Maven repository. Is there an easy way to do this?12:09:17
@dschrempf:matrix.orgdschrempfFYI: https://discourse.nixos.org/t/updating-jugglinglab-packaging-a-maven-repository/1372612:09:37
@dschrempf:matrix.orgdschrempf For your reference, I merged it manually for now jq -s '.[0][] * .[1][]' mvn2nix-ortools-java-lock.json mvn2nix-ortools-linux-x86-64-lock.json > merged.json and then adding the dependency key by hand. 12:40:23
@dschrempf:matrix.orgdschrempf Somehow it still misses a POM: [WARNING] The POM for org.apache.maven.plugins:maven-gpg-plugin:jar:1.6 is missing, no dependency information available 12:53:43
@dschrempf:matrix.orgdschrempfThis POM is in the pom.xml file but not in the json lock file produced by mvn2nix.12:54:01
@dschrempf:matrix.orgdschrempfIt turns out that I also have to merge dependencies from different goals... Now, some goals require the package being built at the moment, and which is not available on the repository, so mvn2nix fails. Sorry for spamming you, feel free to jump in if you can help, I give up now! Cheers.14:03:50
@dschrempf:matrix.orgdschrempfRedacted or Malformed Event15:44:47
@dschrempf:matrix.orgdschrempf

or-tools-jar = fetchurl {
url = "https://repo1.maven.org/maven2/com/google/ortools/ortools-java/9.0.9048/ortools-java-9.0.9048.jar";
hash = "sha256-x8zqeMVjaMGx++sK6641JfzbM9s0D982vi4SCNWKE8o=";
};

15:44:49
@dschrempf:matrix.orgdschrempf *
or-tools-jar = fetchurl {
url = "https://repo1.maven.org/maven2/com/google/ortools/ortools-java/9.0.9048/ortools-java-9.0.9048.jar";
hash = "sha256-x8zqeMVjaMGx++sK6641JfzbM9s0D982vi4SCNWKE8o=";
};
15:45:27
@dschrempf:matrix.orgdschrempf *

OK, so I did something really lame, not sure if this would be accepted on Nixpkgs. I just define the required jar as an external source file, like so:

or-tools-jar = fetchurl {
url = "https://repo1.maven.org/maven2/com/google/ortools/ortools-java/9.0.9048/ortools-java-9.0.9048.jar";
hash = "sha256-x8zqeMVjaMGx++sK6641JfzbM9s0D982vi4SCNWKE8o=";
};
15:46:11
25 Jun 2021
@fzakaria:matrix.orgfzakaria (Old)Hi.02:33:31
@fzakaria:matrix.orgfzakaria (Old) dschrempf: the mvn2nix tool is definitely missing functionality. I've learnt quite a lot since writing it. Frustratingly, maven does not allow the best introspection. 02:34:28
@fzakaria:matrix.orgfzakaria (Old)is this derivation for personal use ?02:37:58
@fzakaria:matrix.orgfzakaria (Old)I have some recommendations you can do to go about it quickly; albeit not pure in it's approach02:38:22
26 Jun 2021
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.01:18:14
@grahamc:nixos.org@grahamc:nixos.org invited @mjolnir:nixos.orgNixOS Moderation Bot.01:22:32
@mjolnir:nixos.orgNixOS Moderation Bot joined the room.01:22:33
28 Jun 2021
@dschrempf:matrix.orgdschrempfAt the moment it is personal, but the idea was to update Jugglinglab in Nixpkgs. The fetchurl method works quite well here, but somehow I don't think it is suitable for Nixpkgs.12:16:34
@fzakaria:matrix.orgfzakaria (Old)I've been using _noChroot for personal stuff; it's kind of a lame hack but assigning it only on the Java portion15:25:47

Show newer messages


Back to Room ListRoom Version: 6