Consider the following example (which I'm afraid I can't release the code to), where I want to update an attribute under the name psql_15/exts/pg_hashids — traceback and some fluff omitted:
pkg = flake.packages.${currentSystem}.psql_15/exts/pg_hashids or flake.psql_15/exts/pg_hashids;
The name is generated by way of flattenTree from flake-utils so, it isn't exactly a super strange case IMO. I think just enclosing the name in general is enough if there's a slash. Really, we could just do this unconditionally, since there isn't any real difference between x.y and x."y" other than variable interpolation?
The following command works, in contrast, but is obviously strange:
Consider the following example (which I'm afraid I can't release the code to), where I want to update an attribute under the name
psql_15/exts/pg_hashids
— traceback and some fluff omitted:The error'ing line itself is pretty clear:
The name is generated by way of
flattenTree
fromflake-utils
so, it isn't exactly a super strange case IMO. I think just enclosing the name in general is enough if there's a slash. Really, we could just do this unconditionally, since there isn't any real difference betweenx.y
andx."y"
other than variable interpolation?The following command works, in contrast, but is obviously strange:
nix-update --flake --version=branch \"psql_15/exts/pg_hashids\"