!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

431 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.145 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
14 Oct 2025
@emilazy:matrix.orgemily this may be more "pure" but it also feels a bit error-prone compared to just having convertHash handle it 16:10:43
@emilazy:matrix.orgemilybut it at least only needs solving once16:10:52
@emilazy:matrix.orgemily(unless the quirks change later)16:10:55
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)Yeah, but that direction is easy because the implementations accepts more than they should16:10:57
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)which would be a regression caught by tests hopefully16:11:30
@emilazy:matrix.orgemilyI think you would need a size parameter16:11:35
@emilazy:matrix.orgemilywhich is not very nice16:11:39
@emilazy:matrix.orgemilybecause now Nixpkgs has a look-up table of hashes to byte sizes too… etc.16:11:49
@emilazy:matrix.orgemilynot the end of the world16:12:02
@raitobezarius:matrix.orgraitobezarius (DECT: 7248) I'm pretty confident that we don't want convertHash in Lix, we might accept convertBinary but I'm not super comfy about getting this on a short timeline, I'm confident about {from,to}{NixBase32,Base16,Base64} primitives in builtins.conversions and we can look at an convertHash implementation beforehand with such built-ins on a short timeline 16:13:05
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)I don't know what is the timeline you are operating with to have this code available16:13:39
@raitobezarius:matrix.orgraitobezarius (DECT: 7248) Seems like the passAsFile thing used there is exploiting an implementation detail about passAsFile internal details, which does not seem to be an excellent usecase for convertHash 16:14:51

Show newer messages


Back to Room ListRoom Version: 10