!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

902 Members
For people hacking on the Nix package manager itself189 Servers

Load older messages


SenderMessageTime
12 Jan 2026
@raitobezarius:matrix.orgraitobezariusin many reasonable software, an environment variable serves to seed an initial default18:48:32
@raitobezarius:matrix.orgraitobezariusthere's 3 provenances for the setting system: NIX_CONF, the default settings file locations, -I18:49:07
@raitobezarius:matrix.orgraitobezariusand 1 provenance via env var: NIX_PATH18:49:12
@isabel:isabelroses.comisabel changed their profile picture.18:59:01
@Ericson2314:matrix.orgJohn Ericsonsnix should just not implement NIX_PATH I think19:55:37
@Ericson2314:matrix.orgJohn Ericsonat least not like it currently exists19:55:41
@Ericson2314:matrix.orgJohn EricsonI do not wish that pain upon you all! :)19:56:09
@flokli:matrix.orgflokliWe don't have the luxury, at least the common / sensible usages should work19:56:17
@Ericson2314:matrix.orgJohn EricsonI thought snix was deprioritzing the evaluator as a whole?19:56:38
@flokli:matrix.orgflokliWho said that? 😄19:57:22
@Ericson2314:matrix.orgJohn Ericson a conservative NIX_PATH implementation would split on :, and require every entry to start with a / 19:57:50
@Ericson2314:matrix.orgJohn Ericsonjust don't support URLs at all19:58:05
@Ericson2314:matrix.orgJohn Ericsonand don't accidentally treat a URL as two valid relative paths19:58:27
@Ericson2314:matrix.orgJohn Ericson* and don't accidentally treat a URL as two valid relative path entries19:58:31
@Ericson2314:matrix.orgJohn Ericson (no foobar://x becomes foobar and ///x) 19:59:12
@Ericson2314:matrix.orgJohn Ericson * (no foobar://x becomes foobar and //x) 19:59:20
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) Honestly I’m not even sure how URL parsing could in principle be implemented correctly. : can appear in the path component. There’s no way around the ambiguity. The alternative is to just accept colons have to be url encoded 20:14:02
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)* Honestly I’m not even sure how URL parsing could in principle be implemented correctly. : can appear in the path component. There’s no way around the ambiguity. The alternative is to just accept that colons have to be url encoded20:14:15
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)And greedy matching here wouldn’t help too I think20:16:01
@flokli:matrix.orgfloklihttps://github.com/gytis-ivaskevicius/high-quality-nix-content/raw/master/memes/nix-path-supports-urls.jpg20:32:42
@kranzes:matrix.orgIlan Joselevich (Kranzes)This was posted already during this discussion 🤣20:37:27
@ss:someonex.netSomeoneSerge (back on matrix) Oooor we reserve the name "flakeref" and their syntax so that we can call them "legacy", and introduce the $scheme:// syntax for the flake-agnostic CLI. Then github:nixos/nixpkgs -> github://nixos/nixpkgs?flake=true or such, and the $scheme refers to a fetcher 20:56:54
@raitobezarius:matrix.orgraitobezariusbut you still need to come up with replacements to flakeref throughout the codebase like21:02:30
@raitobezarius:matrix.orgraitobezariusthe concept of profiles relies on flakerefs21:02:42
@raitobezarius:matrix.orgraitobezariusif it melts into URLs and flakerefs are only a specific scheme of URLs, it's all fine21:02:52
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Don't you mean horrendous regexes and strings?22:16:31
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) Ehhhhh, in this example nixos is the hostname 22:16:56
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Not sure it's a good idea to be even more idiosyncratic than it already is22:18:08
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) Also nix flake show github://aaaaaaaaaaaaaa/nixos/nix works nowadays both on lix and nix 22:19:33
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)The authority just gets ignored22:19:41

Show newer messages


Back to Room ListRoom Version: 6