Stabilize the (non-flakes) installable syntax #10046
Labels
idea approved
The given proposal has been discussed and approved by the Nix team. An implementation is welcome.
new-cli
Relating to the "nix" command
Milestone
Part of #7701.
The syntax for non-flakes installables isn't optimal, and probably not exactly what we want to stabilize.
After considering various options and asking about them, we settled on the second one, namely:
--file /some/file.nix
, the CLI parser interprets every positional argument as an attribute path inimport /some/file.nix
until the next--file
/--expr
(/--flake
) argument--expr e
, the CLI parser interprets every positional argument as an attribute path in the nix expressione
until the next--file
/--expr
(/--flake
) argument--flake
, the CLI parser interprets every positional argument as a flake reference until the next--file
/--expr
/--flake
argument)with the parenthesized bits corresponding to the behaviour with flakes enabled.
This new behaviour is open for implementation to anyone who would want to give it a stab.
The text was updated successfully, but these errors were encountered: