!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

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

Load older messages


SenderMessageTime
14 Oct 2025
@emilazy:matrix.orgemilythe feature detection is precisely what caused the hash divergence.16:37:31
@weethet:catgirl.cloudWeetHetWell yes, but how did the original PR even get accepted if it would cause different results on 2.18 and whatever the current version of nix is16:39:09
@emilazy:matrix.orgemilyhow would that be tested?16:39:58
@emilazy:matrix.orgemilyNix 2.18 is EOL16:40:06
@emilazy:matrix.orgemilyhttps://github.com/NixOS/nixpkgs/pull/451926 will check hashes of Lix vs. Nix, but has not been implemented yet, that is how this was found16:40:26
@qyriad:katesiria.orgQyriad not if we accept hash = { algo, format, digest }; in FODs too, right? 17:43:09
@emilazy:matrix.orgemilynot sure what you mean17:45:04
@emilazy:matrix.orgemily I mean that if { algo, format, digest } is considered a "first-class" thing the implementation is consuming then it doesn't seem so weird to have a built-in that converts it at that point 17:45:26
@emilazy:matrix.orgemily(the other potential use-cases like producing Nix32 filenames and converting lock file formats would remain regardless)17:45:44
@qyriad:katesiria.orgQyriad Filenames and lockfiles are a point in favor, but if the implementation consumes { algo, format, digest } in any form then you specifically wouldn't need to convert between them, no? 17:46:54
@emilazy:matrix.orgemily I am not saying that you would need to convert them to pass them to a FOD fetcher. I'm saying that if the objection to a convertHash is "this is doing too much because these structured hashes aren't really a first-class implementation concept", but then you add support for structured hashes to FODs, then they are a first-class implementation concept and it doesn't seem too weird to have a conversion built-in for them. 17:50:30
@emilazy:matrix.orgemily(and then that conversion built-in would be useful for the other use caess)17:50:41
@qyriad:katesiria.orgQyriadAhh18:00:08
* @qyriad:katesiria.orgQyriad nods18:00:10
@emilazy:matrix.orgemilyis there actually a reliable way to feature detect NULs in strings currently?19:29:19
@emilazy:matrix.orgemilyeverything I can think of would abort in current Nix versions19:29:33
@jade_:matrix.orgjade_sounds like we need builtins.features real bad?19:39:21
@emilazy:matrix.orgemilyit could just be a boolean19:40:30
@raitobezarius:matrix.orgraitobezarius detect NULs in a string OR detect NUL support in strings? 19:40:37
@emilazy:matrix.orgemily builtins.nulBytesInStrings or false 19:40:39
@jade_:matrix.orgjade_yes, that's what builtins.features is for :)19:40:40
@raitobezarius:matrix.orgraitobezariusi read the question in a different way19:40:41
@emilazy:matrix.orgemilyfair enough19:40:49
@jade_:matrix.orgjade_we should not pollute the builtins namespace itself19:40:50
@raitobezarius:matrix.orgraitobezarius i thought this was about builtins.doesItHaveSomeNuls s 19:40:51
@emilazy:matrix.orgemilyno, it's about being able to portably use NUL bytes19:41:10
@jade_:matrix.orgjade_the only reason we don't have builtins.features is cuz nobody had time to do it yet19:41:20
@qyriad:katesiria.orgQyriad does it need any further design work or anything? 22:10:45
15 Oct 2025
@helle:tacobelllabs.nethelle (just a stray cat girl)we are having a laugh/cry at the CI pipeline due to a merge requiring a rebase and that requiring a CI pass, it's an understandable problem, but we missed the window due to us having a migraine09:23:17
@raitobezarius:matrix.orgraitobezariusSoon, merge queue09:58:31

Show newer messages


Back to Room ListRoom Version: 10