mirror of
https://github.com/NixOS/nix
synced 2025-06-28 17:51:15 +02:00
Make EvalState::getBuiltin safe for missing attr
This commit is contained in:
parent
3b76d01f3b
commit
a58e38dab7
2 changed files with 10 additions and 1 deletions
|
@ -623,6 +623,11 @@ private:
|
|||
|
||||
public:
|
||||
|
||||
/**
|
||||
* Retrieve a specific builtin, equivalent to evaluating `builtins.${name}`.
|
||||
* @param name The attribute name of the builtin to retrieve.
|
||||
* @throws EvalError if the builtin does not exist.
|
||||
*/
|
||||
Value & getBuiltin(const std::string & name);
|
||||
|
||||
struct Doc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue