| 16 Jun 2021 |
| @grahamc:nixos.orgchanged room power levels. | 13:45:06 |
fzakaria (Old) | I keep chipping away at JVM/Java but it's so entrenched.
Considering my experience in industry is how pervasive Java is | 15:02:52 |
fzakaria (Old) | i'm surprised more upstream fixes or 👀 are not on Java in Nixpkgs | 15:03:04 |
fzakaria (Old) | I'm slowly making progress.
Here's my JDK11 patch https://github.com/NixOS/nixpkgs/pull/127106 | 16:32:02 |
fzakaria (Old) | * I'm slowly making progress.
Here's my OpenJDK11 patch https://github.com/NixOS/nixpkgs/pull/127106 | 16:32:10 |
@grahamc:nixos.org | this is really useful, I know of a few Java-heavy shops that want to use Nix | 18:03:42 |
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 |