!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

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

Load older messages


SenderMessageTime
24 Jul 2025
@emilazy:matrix.orgemilysince it changes hashes19:46:04
@emilazy:matrix.orgemilywhat is SHA-1 even used for at this point? seems like it'd be better to try phasing it out? I assume nothing in Nixpkgs is pinned by SHA-119:46:20
@emilazy:matrix.orgemilywell, actually, for Git they just run it in checking mode and abort if a potentially-colliding input is detected19:46:47
@emilazy:matrix.orgemilywhich is still a compat break, but at least not silent hash changing19:46:52
@emilazy:matrix.orgemily if it's for Git revs then you want to be doing that but I assume libgit2/git(1) will already handle the hashing there 19:47:08
@emilazy:matrix.orgemily
pkgs/servers/mx-puppet-discord/node-packages.nix
111:        sha1 = "532e01241dbcb0f2769f1b9a7cde313d30101173";
120:        sha1 = "68018cab4f59834b3fef2e59fbfd52938403e001";
129:        sha1 = "52b0e8bb808a1202602899af67939b049dd42402";
138:        sha1 = "0a37a3f9430ff7c29512d29882e25ae738a31283";

🫣

19:49:51
@emilazy:matrix.orgemilyapparently these are the only SHA-1 pins left in Nixpkgs19:49:55
@emilazy:matrix.orgemilyseems like giving them the URL literals etc. treatment would be the way forward19:51:48
@jade_:matrix.orgjade_agreed22:10:28
@jade_:matrix.orgjade_i think the correct attitude is just making lix reject those22:10:36
@jade_:matrix.orgjade_also surely mx-puppet-discord is unmaintained lol22:10:59
@jade_:matrix.orgjade_* also surely mx-puppet-discord is unmaintained cuz that looks like generated code lol22:11:09
@emilazy:matrix.orgemilyit's some huge generated Node package blob yeah. no idea about maintenance state22:12:58
@emilazy:matrix.orgemily
In reply to @jade_:matrix.org
i think the correct attitude is just making lix reject those
probably want to keep around a flag forever for old Nixpkgs compat. though I don't know how high a priority that is since I think Lix has removed things used by prehistoric Nixpkgs. but SHA-1 was probably more recently used
22:14:19
@emilazy:matrix.orgemilye.g. by everyone's favourite Chromium update script22:14:32
@jade_:matrix.orgjade_indeed. i mean. the real point is that lix becomes a linter when it bans stuff22:14:38
@emilazy:matrix.orgemilywhich is an argument against using SHA1DC22:14:46
@jade_:matrix.orgjade_* indeed. i mean. the real point is that lix becomes a linter when it bans stuff and ensures it is gone from nixpkgs forever22:14:49
@jade_:matrix.orgjade_oh right because the horrible chromim thing actually abuses a collision right?22:15:01
@emilazy:matrix.orgemilysince the Chromium update script specifically relied on SHA-1 collisions22:15:03
@jade_:matrix.orgjade_thats still totally absurd to me that nixpkgs did that22:15:26
@emilazy:matrix.orgemilyI'm pretty sure it was done for the meme.22:15:40
@emilazy:matrix.orgemilythere was no technical constraint pointing to using Nix for it I think22:15:53
@emilazy:matrix.orgemilyfwiw SHA1DC is also substantially slower than the best SHA-1 implementations, especially hardware-accelersted ones. it could be more competitive but nobody cares enough because it only matters for Git and OpenPGP. irrelevant for Nix anyway22:17:12
@jade_:matrix.orgjade_answer: not. it was a casualty of one of the not banning nazis incidents https://github.com/NixOS/nixpkgs/pull/428183 23:48:00
25 Jul 2025
@emilazy:matrix.orgemilybtw, to be clear the Chromium update script hack was removed long ago00:53:12
@emilazy:matrix.orgemilyso it's only relevant for historical compatibility; I think disabling SHA-1 by default with a flag to allow it is unlikely to break anyone's workflow00:53:30
@federicodschonborn:matrix.orgFederico Damián Schonborn (he/they) changed their display name from Wormy McWormface 🏳️‍🌈 (he/they) to Cat McFishface 🏳️‍🌈 (he/they).01:43:06
@simon.hauser:helsinki-systems.deSimon Hauser joined the room.07:04:33
26 Jul 2025
@raitobezarius:matrix.orgraitobezarius
In reply to @emilazy:matrix.org
fwiw SHA1DC is also substantially slower than the best SHA-1 implementations, especially hardware-accelersted ones. it could be more competitive but nobody cares enough because it only matters for Git and OpenPGP. irrelevant for Nix anyway
i feel like this is anyway a non-question for Lix, we are using the git CLI, if git starts using sha1dc for checking reasons, it will probably exit during one of the relevant fetching operations and we are automatically protected
00:43:15

Show newer messages


Back to Room ListRoom Version: 10