mirror of
https://github.com/NixOS/nix.git
synced 2025-11-13 22:12:43 +01:00
nix: Add --flake flag
This allows using an arbitrary "provides" attribute from the specified flake. For example: nix build --flake nixpkgs packages.hello (Maybe provides.packages should be used for consistency...)
This commit is contained in:
parent
272b58220d
commit
beab05851b
5 changed files with 65 additions and 25 deletions
|
|
@ -53,7 +53,8 @@ struct Installable
|
|||
|
||||
struct SourceExprCommand : virtual Args, StoreCommand, MixEvalArgs
|
||||
{
|
||||
Path file;
|
||||
std::optional<Path> file;
|
||||
std::optional<std::string> flakeUri;
|
||||
|
||||
SourceExprCommand();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue