| 16 Jun 2021 |
fzakaria (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 (Old) | A good patch might be to also remove that so that by default they are reproducibe | 18:38:03 |
| 21 Jun 2021 |
| Robert Hensing (roberth) joined the room. | 09:46:52 |
Robert Hensing (roberth) | I'm surprised to learn we don't have a generators or formats for java properties | 09:47:36 |
Robert Hensing (roberth) | https://github.com/NixOS/nixpkgs/issues/127648 | 09:47:39 |
Robert 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 (Old) | oh cool. | 16:23:12 |
fzakaria (Old) | ini is almost a superset of properties | 16:23:43 |
fzakaria (Old) | JSON and TOML are builtins? | 16:25:34 |
fzakaria (Old) | or submit java properties to https://github.com/dbohdan/remarshal | 16:26:31 |
| 24 Jun 2021 |
| dschrempf joined the room. | 12:06:47 |
dschrempf | Hi! 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 | FYI: https://discourse.nixos.org/t/updating-jugglinglab-packaging-a-maven-repository/13726 | 12:09:37 |
dschrempf | 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 | 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 | This POM is in the pom.xml file but not in the json lock file produced by mvn2nix. | 12:54:01 |
dschrempf | It 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 | Redacted or Malformed Event | 15:44:47 |
dschrempf | 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 | * 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 | * 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 (Old) | Hi. | 02:33:31 |
fzakaria (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 (Old) | is this derivation for personal use ? | 02:37:58 |
fzakaria (Old) | I have some recommendations you can do to go about it quickly; albeit not pure in it's approach | 02:38:22 |
| 26 Jun 2021 |
| @grahamc:nixos.orgchanged room power levels. | 01:18:14 |
| @grahamc:nixos.org invited NixOS Moderation Bot. | 01:22:32 |
| NixOS Moderation Bot joined the room. | 01:22:33 |
| 28 Jun 2021 |
dschrempf | At 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 (Old) | I've been using _noChroot for personal stuff; it's kind of a lame hack but assigning it only on the Java portion | 15:25:47 |