!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

912 Members
For people hacking on the Nix package manager itself191 Servers

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


SenderMessageTime
16 Sep 2025
@toonn:matrix.orgtoonn matthewcroughan: I meant as an extension of the file URI scheme, file:///some/path . 14:34:48
@getchoo:matrix.orggetchoo
In reply to @joerg:thalheim.io
by making it more specific
that’s what i was thinking
we could also iterate over the glob matches and use the first one that actually has a /bin/nix subpath as well to be a bit safer (since i really doubt the day will come where we have multiple nix binaries in the store during install)
16:51:32
@getchoo:matrix.orggetchoo* this worked before the component split in 2.29 since there would only be one main nix store path at this point, but now it matches the nix-main store path first, which doesn't have a bin dir or any of the nix binaries16:52:24
@joerg:thalheim.ioMic92
In reply to @getchoo:matrix.org
that’s what i was thinking
we could also iterate over the glob matches and use the first one that actually has a /bin/nix subpath as well to be a bit safer (since i really doubt the day will come where we have multiple nix binaries in the store during install)
Is this not just scanning the installation tarball rather the entire nix store?
20:22:46
@joerg:thalheim.ioMic92I haven't looked to deep into the code. 20:23:13
@getchoo:matrix.orggetchoo it is, but the installation tarball now has multiple paths that match nix-* due to the component split 20:32:59
@getchoo:matrix.orggetchooso depending on the hashes you get, sometimes one of the components will be matched first and the installer will just blindly append the /bin/nix-store subpath to it and try executing20:35:12

Show newer messages


Back to Room ListRoom Version: 6