!9IQChSjwSHXPPWTa:lix.systems

Lix

1110 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms298 Servers

Load older messages


SenderMessageTime
20 Dec 2025
@goldstein:tty5.devgoldstein
nix-repl> builtins.flakeRefToString { type = "indirect"; id = "lol"; ref = "lol/9bdfd23e28ffc1fb5a6e52e43dad4288701bb05d"; }          
"flake:lol/lol/9bdfd23e28ffc1fb5a6e52e43dad4288701bb05d"

nix-repl> builtins.flakeRefToString { type = "indirect"; id = "lol"; ref = "lol"; rev = "9bdfd23e28ffc1fb5a6e52e43dad4288701bb05d"; }
"flake:lol/lol/9bdfd23e28ffc1fb5a6e52e43dad4288701bb05d

no question here, I just want to share my pain đź« 
why are flakerefs so ambiguous

18:54:59
@goldstein:tty5.devgoldstein I knew that parse(serialize(flakeref)) is not noop because of HTTP query params, but I didn’t know that indirect flakerefs are also ambigous 18:59:00
@goldstein:tty5.devgoldstein and getFlake only takes string flakerefs, so some getFlake invocations are quite literally inexpressible 18:59:37
@goldstein:tty5.devgoldstein
nix-repl> builtins.parseFlakeRef (builtins.flakeRefToString { type = "indirect"; id = "nixpkgs"; ref = "refs/heads/master"; }) 
error:
       … while calling the 'parseFlakeRef' builtin
         at «string»:1:1:
            1| builtins.parseFlakeRef (builtins.flakeRefToString { type = "indirect"; id = "nixpkgs"; ref = "refs/heads/master"; })
             | ^

       error: GitHub URL 'flake:nixpkgs/refs/heads/master' is invalid

that one is probably a bug though? no way it’s a github url

19:06:51
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)also, rootless install through nixsa would be nice to have!19:48:40
@bandithedoge:matrix.orgbandithedogereal19:49:12

There are no newer messages yet.


Back to Room ListRoom Version: 10