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:
Eelco Dolstra
2019-02-12 21:55:43 +01:00
parent 272b58220d
commit beab05851b
5 changed files with 65 additions and 25 deletions
-2
View File
@@ -318,8 +318,6 @@ public:
const FlakeRegistry & getFlakeRegistry();
Value * makeFlakeRegistryValue();
private:
std::unique_ptr<FlakeRegistry> _flakeRegistry;
std::once_flag _flakeRegistryInit;