mirror of
https://github.com/NixOS/nix
synced 2025-06-28 17:51:15 +02:00
Add EvalState::getBuiltins
This commit is contained in:
parent
a58e38dab7
commit
8a36d2d8a7
4 changed files with 43 additions and 2 deletions
|
@ -630,6 +630,12 @@ public:
|
|||
*/
|
||||
Value & getBuiltin(const std::string & name);
|
||||
|
||||
/**
|
||||
* Retrieve the `builtins` attrset, equivalent to evaluating the reference `builtins`.
|
||||
* Always returns an attribute set value.
|
||||
*/
|
||||
Value & getBuiltins();
|
||||
|
||||
struct Doc
|
||||
{
|
||||
Pos pos;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue