!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

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

Load older messages


SenderMessageTime
12 Jan 2026
@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
@raitobezarius:matrix.orgraitobezariusthis too22:23:23
@raitobezarius:matrix.orgraitobezarius:>22:23:25
@ss:someonex.netSomeoneSerge (back on matrix)Oh23:29:57
@ss:someonex.netSomeoneSerge (back on matrix)I see. I thought the concept was scheme-specific. After all, there's no host in file://?23:31:03
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)
In reply to @ss:someonex.net
I see. I thought the concept was scheme-specific. After all, there's no host in file://?
Well, technically there can be. Windows UNC paths do that
23:31:41
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Or at least the spec says so. Practice is another matter entirely23:32:23
@emilazy:matrix.orgemily that's why it's file:///etc/passwd rather than file://etc/passwd 23:34:36
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)
In reply to @emilazy:matrix.org
that's why it's file:///etc/passwd rather than file://etc/passwd
Also file:/path/to/file also is fine - though the rfc says it’s kind of less widespread and now the empty authority is preferred to the “no authority” case
23:35:42
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Funnily enough git itself parses file:/path/to/blah as an SCP-style path where file is the hostname23:36:21
@ss:someonex.netSomeoneSerge (back on matrix)Ah, there is that too, file:///foo has an empty host.23:38:30
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)
In reply to @emilazy:matrix.org
that's why it's file:///etc/passwd rather than file://etc/passwd
* Also file:/path/to/file is fine - though the rfc says it’s kind of less widespread and now the empty authority is preferred to the “no authority” case
23:38:27
@ss:someonex.netSomeoneSerge (back on matrix) * 23:39:27
@ss:someonex.netSomeoneSerge (back on matrix)OK, so say flakerefs are valid (ish) URLs as they are. What of "installables"? One refers to attributes in flake.nix as ref#path. Should there be a way to refer to the attributes in a default.nix?23:48:35
@raitobezarius:matrix.orgraitobezariusyes23:55:19
@raitobezarius:matrix.orgraitobezarius but not using # 23:55:23
@raitobezarius:matrix.orgraitobezariusthis was a large mistake23:55:29
13 Jan 2026
@ss:someonex.netSomeoneSerge (back on matrix)Do you have a specific proposal in mind?00:11:20
@raitobezarius:matrix.orgraitobezariusidk, it's being debated00:13:48
@raitobezarius:matrix.orgraitobezariusmaybe nix run $url -A attr ?00:13:55

Show newer messages


Back to Room ListRoom Version: 6