You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nix CLIs should support --arg and --argstr flags with paths containing more than one attribute.
The semantics of --arg and --argstr are a bit complicated (perhaps over-complicated, but that's another issue, CC @cleverca22), so I will specify via desugaring:
--argstr <single-attr> 'foo' becomes --arg <single-attr> '"foo"' just like today.
Nix CLIs should support
--arg
and--argstr
flags with paths containing more than one attribute.The semantics of
--arg
and--argstr
are a bit complicated (perhaps over-complicated, but that's another issue, CC @cleverca22), so I will specify via desugaring:--argstr <single-attr> 'foo'
becomes--arg <single-attr> '"foo"'
just like today.--arg some-attr.remaining0 expr0 ...--arg some-attr.remainingN experN
becomes--arg some-attr '{ remaining0 = expr0; ...remainingN = exprN; }'
remainingN
in the attribute set are similarly decomposed and grouped just like today.)This fills in what's IMO an awkward gap in the CLI, but also is important for making cross compilation more ergonomic.
CC @dtzWill
The text was updated successfully, but these errors were encountered: