!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)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
@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

Show newer messages


Back to Room ListRoom Version: 6