!LemuOOvbWqRXodtSsw:nixos.org

NixOS Reproducible Builds

531 Members
Report: https://reproducible.nixos.org Project progress: https://github.com/orgs/NixOS/projects/30122 Servers

Load older messages


SenderMessageTime
3 Feb 2024
@raboof:matrix.orgraboof changed their display name from raboof to raboof @FOSDEM.07:38:16
@mschwaig:matrix.orgMartin Schwaighofer changed their display name from Martin Schwaighofer to Martin Schwaighofer@FOSDEM.13:13:48
@mschwaig:matrix.orgMartin Schwaighofer set a profile picture.13:14:37
4 Feb 2024
@bjth:matrix.orgBryan Honof changed their profile picture.11:31:08
@meliketoast:matrix.orgMeliketoast changed their display name from Emil NordgÄrd to Meliketoast.14:04:30
@raboof:matrix.orgraboof changed their display name from raboof @FOSDEM to raboof.17:40:57
5 Feb 2024
@qwqawawow:matrix.org98765abc set a profile picture.04:45:10
@qwqawawow:matrix.org98765abc changed their profile picture.04:48:27
@bbenno:matrix.orgbbenno joined the room.13:06:21
6 Feb 2024
@haraldhoyer:matrix.orgharaldh joined the room.07:36:29
@msanft:matrix.orgMoritz Sanft set a profile picture.17:17:57
@tomasajt:matrix.orgTomaSo, some of you might remember that I started working on making more java apps reproducible in https://github.com/NixOS/nixpkgs/issues/278518 and currently one of the roadblocks is that the hook that's used (canonicalize-jars-hook) is a little bit broken. I had opened a PR which tidied it up a bit (https://github.com/NixOS/nixpkgs/pull/278322/files), but there were several weird issues and special cases that came up. One of the issues was that unzipping and rezipping jars in jars (e.g. dependencies packaged by springboot) caused it to not work anymore. (Probably due to this method not preserving the original compression-type) But I found that just using zip-traversal can mitigate this issue. Example: https://github.com/NixOS/nixpkgs/pull/283305/files I was pretty happy with the solution other than it would require java to run if I wanted to package it standalone. So inspired by this, I recently made a tool in rust, which could replace canonicalize-jar as it is today. https://github.com/TomaSajt/stripzip-rs I was wondering if packaging this could be an acceptable solution.18:33:00
@drupol:matrix.orgPol
In reply to @tomasajt:matrix.org
So, some of you might remember that I started working on making more java apps reproducible in https://github.com/NixOS/nixpkgs/issues/278518
and currently one of the roadblocks is that the hook that's used (canonicalize-jars-hook) is a little bit broken.

I had opened a PR which tidied it up a bit (https://github.com/NixOS/nixpkgs/pull/278322/files), but there were several weird issues and special cases that came up.
One of the issues was that unzipping and rezipping jars in jars (e.g. dependencies packaged by springboot) caused it to not work anymore. (Probably due to this method not preserving the original compression-type)
But I found that just using zip-traversal can mitigate this issue. Example: https://github.com/NixOS/nixpkgs/pull/283305/files
I was pretty happy with the solution other than it would require java to run if I wanted to package it standalone.

So inspired by this, I recently made a tool in rust, which could replace canonicalize-jar as it is today.
https://github.com/TomaSajt/stripzip-rs
I was wondering if packaging this could be an acceptable solution.
Wouldn't it be better to do it in Java to avoid mixing different programming languages?
18:41:13
@tomasajt:matrix.orgToma
In reply to @drupol:matrix.org
Wouldn't it be better to do it in Java to avoid mixing different programming languages?
It could be better, but we couldn't hard-code the jdk version in the hook, as we wouldn't want to use two different jdk versions for building.
An option could be to just expect jdk to be in the build environment, another would be to always do canonicalize-jars-hook.override { inherit jdk; } or something similar
18:45:33
@tomasajt:matrix.orgTomaOpened the PR for it https://github.com/NixOS/nixpkgs/pull/28680521:04:06
@tomasajt:matrix.orgToma* In reply to @drupol:matrix.org Wouldn't it be better to do it in Java to avoid mixing different programming languages? It could be better, but we wouldn't be able to use a hard-coded the jdk version in the hook, as we wouldn't want to use two different jdk versions for building. An option could be to just expect jdk to be in the build environment, another would be to always do canonicalize-jars-hook.override { inherit jdk; } or something similar22:27:09
8 Feb 2024
@symys:dailyaslbot.twilightparadox.comsymys joined the room.18:46:46
9 Feb 2024
@syphoxy:matrix.org@syphoxy:matrix.org left the room.12:57:00
@lithobreakergb:matrix.orglithobreakergb joined the room.19:46:12
10 Feb 2024
@evalexpr:matrix.orgevalexpr left the room.10:21:26
@raspher:nixos.devraspher joined the room.16:56:50
@raspher:nixos.devraspher changed their display name from Szymon Scholz to raspher.20:50:28
12 Feb 2024
@luncht1me:matrix.orglunchtime joined the room.02:12:55
@oxalica:matrix.orgoxalica changed their profile picture.02:54:33
@lunchtime:envs.net@lunchtime:envs.net joined the room.10:45:45
14 Feb 2024
@raspher:nixos.devraspher set a profile picture.01:30:45
@mschwaig:matrix.orgMartin Schwaighofer changed their display name from Martin Schwaighofer@FOSDEM to Martin Schwaighofer.12:28:49
@wrenix:chaos.fyiWrenIX left the room.22:14:55
18 Feb 2024
@scottscoble:matrix.orgScott Scoble joined the room.06:50:43
@drupol:matrix.orgPol A first contribution to make dockerTools.buildImageWithNixDb: https://github.com/NixOS/nixpkgs/pull/289840 21:18:42

Show newer messages


Back to Room ListRoom Version: 6