1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 01:11:15 +02: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:
Eelco Dolstra 2019-02-12 21:55:43 +01:00
parent 272b58220d
commit beab05851b
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
5 changed files with 65 additions and 25 deletions

View file

@ -5,6 +5,9 @@
namespace nix {
struct Value;
class EvalState;
struct FlakeRegistry
{
struct Entry
@ -14,4 +17,8 @@ struct FlakeRegistry
std::map<FlakeId, Entry> entries;
};
Value * makeFlakeRegistryValue(EvalState & state);
Value * makeFlakeValue(EvalState & state, std::string flakeUri, Value & v);
}