!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

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

Load older messages


SenderMessageTime
12 Jan 2026
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)
In reply to @ss:someonex.net
But nix path parsing is already stateful, so you could make a backwards incompatible change to accommodate those?
Greedy behaviour here would have been nice, but from my discussion with raito that’s not exactly a priority atm
17:39:42
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Valentin had a meme for this17:40:23
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)ima_fc5f740.jpeg
Download ima_fc5f740.jpeg
17:42:23
@raitobezarius:matrix.orgraitobezariusit would be ideal to find a path forward to destroy NIX_PATH parsing18:15:16
@raitobezarius:matrix.orgraitobezariusespecially due to the meme18:15:24
@kranzes:matrix.orgIlan Joselevich (Kranzes) https://gist.github.com/Kranzes/da0ee0920adf9ce94183b6cec3bbe9c2 18:24:28
@roberthensing:matrix.orgRobert Hensing (roberth)I think a lot of folks share that sentiment, on a spectrum between discourage and destroy. What would you suggest for a solution?18:24:30
@kranzes:matrix.orgIlan Joselevich (Kranzes)FWIW: That search path is taken from the docs of findFile, makes it a whole lot more confusing when you realize it works with -I but not with NIX_PATH18:25:12
@raitobezarius:matrix.orgraitobezariusThere's not much solutions to propose at this step18:25:26
@raitobezarius:matrix.orgraitobezariusIt depends on a rework of the setting system18:25:32
@raitobezarius:matrix.orgraitobezariusbecause it is deeply related to that18:25:36
@kranzes:matrix.orgIlan Joselevich (Kranzes)FWIW, I get totally different behavior on Lix, something with how Lix ignores NIX_PATH with flakes maybe? I'm really not sure18:26:53
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)
In reply to @kranzes:matrix.org
https://gist.github.com/Kranzes/da0ee0920adf9ce94183b6cec3bbe9c2
I also have a feeling that port in URL’s authority will parse funnily
18:27:11
@kranzes:matrix.orgIlan Joselevich (Kranzes)They do.18:28:08
@kranzes:matrix.orgIlan Joselevich (Kranzes) Try this one /nix/var/nix/profiles/per-user/root/channels:nixos-config=/etc/nixos/configuration.nix:nixpkgs=https://github.com/NixOS/nixpkgs/tarballs/master:nixpkgs=channel:nixpkgs-unstable:foo=http://example.com:8080/path:flake-compat=flake:github:edolstra/flake-compat 18:30:18
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Indeed quite funny (in a sad way)18:31:19
@roberthensing:matrix.orgRobert Hensing (roberth)I hate that NixOS populates a local registry nowadays18:32:22
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)I forget the distinction between local and system one18:33:13
@roberthensing:matrix.orgRobert Hensing (roberth)ohh right there's more local ones? Do they even have defined names? I hate it18:34:18
@kranzes:matrix.orgIlan Joselevich (Kranzes)clipboard.png
Download clipboard.png
18:34:37
@kranzes:matrix.orgIlan Joselevich (Kranzes)It feels so wrong having to reimplement the broken behavior of NIX_PATH parsing18:34:39
@kranzes:matrix.orgIlan Joselevich (Kranzes)If it was "correct" it should've had all the 5 variants, not just 4, remote flakes are broken in NIX_PATH, and so are URLs with colons (not sure if they even work in -I)18:36:40
@roberthensing:matrix.orgRobert Hensing (roberth)I'm glad you've joined us in our suffering18:36:48
@roberthensing:matrix.orgRobert Hensing (roberth)welcome to the club18:36:52
@kranzes:matrix.orgIlan Joselevich (Kranzes)Also the C++ implementation is very very misleading, it has this "isPesudoUrl" function, that's not even being used correctly, and suggets there are far more schema types like "ssh" or "s3"18:37:56
@raitobezarius:matrix.orgraitobezariusbut you should probably follow this idea and implement it correctly18:38:16
@kranzes:matrix.orgIlan Joselevich (Kranzes)this function came originally form libstore 9 years ago, but was moved because it's only used for NIX_PATH, but that doesnt even make sense, because it has things that dont even work on NIX_PATH18:38:40
@kranzes:matrix.orgIlan Joselevich (Kranzes) for example, the ssh thing, if you put an ssh URI, i get an error from curl about unsupported protocol 18:39:12
@raitobezarius:matrix.orgraitobezariusand if you put a finger url…18:39:41
@kranzes:matrix.orgIlan Joselevich (Kranzes)there's also funny errors from S3 too18:40:00

Show newer messages


Back to Room ListRoom Version: 6