!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

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

Load older messages


SenderMessageTime
12 Jan 2026
@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
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)What also worries be a bit in terms of snix compat is snix is using the url crate which is the whatwg one and libcurl nowadays implements rfc one 18:40:03
@kranzes:matrix.orgIlan Joselevich (Kranzes)depending on Nix versions and Lix versions18:40:07
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)But actually we are not using the strict curl API so anything goes...18:40:48
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)But flakes are kinda 3986 but not really...18:41:06
@kranzes:matrix.orgIlan Joselevich (Kranzes)tfw implementing correctly = backwards incompatible with nix18:41:32
@raitobezarius:matrix.orgraitobezariusno18:41:39
@raitobezarius:matrix.orgraitobezariusschemes should be generalized and pluggable18:41:51
@roberthensing:matrix.orgRobert Hensing (roberth)this part is still experimental fwiw18:42:12
@roberthensing:matrix.orgRobert Hensing (roberth)(flakerefs)18:42:58
@roberthensing:matrix.orgRobert Hensing (roberth)or is it, because Eelco poked a NIX_PATH hole?18:43:18
@roberthensing:matrix.orgRobert Hensing (roberth):(18:43:22
@raitobezarius:matrix.orgraitobezariuswell, if you put a flakeref in a NIX_PATH, it doesn't require an xp feature18:43:31
@raitobezarius:matrix.orgraitobezariusbut at the boundary, an xp feature will be required18:43:35
@roberthensing:matrix.orgRobert Hensing (roberth)it damn well should have...18:43:47
@raitobezarius:matrix.orgraitobezariusit doesn't matter much in the end18:44:06
@raitobezarius:matrix.orgraitobezariusflakerefs are theoretically experimental18:44:18
@raitobezarius:matrix.orgraitobezariusin practice, breaking backward compat of it is not a good idea18:44:31
@roberthensing:matrix.orgRobert Hensing (roberth)they're already part of the sediment record18:44:40
@raitobezarius:matrix.orgraitobezariusflakerefs as a term should die18:44:46
@raitobezarius:matrix.orgraitobezariusand we should all pretend they are actually URLs18:44:52

Show newer messages


Back to Room ListRoom Version: 6