!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

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

Load older messages


SenderMessageTime
14 Oct 2025
@k900:0upti.meK900And we can just keep things using those forever probably16:25:11
@raitobezarius:matrix.orgraitobezariusThe only value I see goes beyond hashes personally16:25:12
@k900:0upti.meK900 convertHash is a massive hammer for a tiny nail 16:25:19
@raitobezarius:matrix.orgraitobezariusI see people who wants to use base32 data inside non-hashes16:25:19
@raitobezarius:matrix.orgraitobezariusFor valid reasons16:25:23
@raitobezarius:matrix.orgraitobezariusIf it ends up constructing convertHash, fine16:25:33
@raitobezarius:matrix.orgraitobezariusBut that's not my sole motive for spawning these primops16:25:49
@emilazy:matrix.orgemily

so Nixpkgs would need

  1. parsing and serialization for SRI and <algo>:<digest> that matches the implementation
  2. a lookup table between hashes and byte sizes

and the code would be Lix-specific (because Nix has chosen that strings cannot contain NUL bytes so the intermediate values would not be valid)

that may be fine

16:26:06
@raitobezarius:matrix.orgraitobezarius I'd say that the code is specific to those who have !(builtins?convertHash) true but idk 16:26:48
@emilazy:matrix.orgemilyif you're going to allow NUL bytes in strings you surely want to be able to handle Base64 etc. in general16:26:52
@raitobezarius:matrix.orgraitobezariusI mean you're right16:26:53
@raitobezarius:matrix.orgraitobezariusPerhaps, we should advertise NUL in our bytes lol16:27:01
@emilazy:matrix.orgemilyNix32 on the other hand is cursed16:27:02
@k900:0upti.meK900 That's a much later problem tbh 16:27:02
@raitobezarius:matrix.orgraitobezarius builtins.features.canContainNULInStrings 16:27:06
@k900:0upti.meK900And definitely not a convertHash sized problem16:27:09
@emilazy:matrix.orgemilyAIUI NUL bytes have already been decided to be allowed.16:27:22
@k900:0upti.meK900 Like I think having something of this shape is good long term 16:27:23
@raitobezarius:matrix.orgraitobezariusNUL bytes were merged, yeah16:27:33
@k900:0upti.meK900But convertHash isn't even the right shape16:27:36
@raitobezarius:matrix.orgraitobezariusLix HEAD can have binary data now in strings16:27:40
@k900:0upti.meK900 Yes but it's not a problem for convertHash shaped things 16:27:46
@raitobezarius:matrix.orgraitobezarius(And we eliminated the security issue via a lint)16:27:50
@emilazy:matrix.orgemilyit seems totally reasonable to want to be able to convert between lock file formats that use SRI vs. base16 in Nix16:28:01
@k900:0upti.meK900Yes but also ehhhhhhhhhhhhhhhhhhh16:28:21
@raitobezarius:matrix.orgraitobezarius emily: Are you satisfied with the Lix proposal? I'm going to context switch to another thing 16:28:25
@k900:0upti.meK900Like the endpoint will probably be an FOD16:28:28
@k900:0upti.meK900And FODs accept both16:28:34
@raitobezarius:matrix.orgraitobezarius Do you know when would you like this to happen? 16:28:35
@k900:0upti.meK900And should continue to accept both IMO16:28:39

Show newer messages


Back to Room ListRoom Version: 10