mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
nix-expr: Add primops to EvalSettings
This commit is contained in:
parent
9b0f455609
commit
3c4c0953e0
5 changed files with 30 additions and 3 deletions
|
@ -103,4 +103,13 @@ Path getNixDefExpr()
|
|||
: getHome() + "/.nix-defexpr";
|
||||
}
|
||||
|
||||
void EvalSettings::addPrimOp(PrimOp && primOp)
|
||||
{
|
||||
extraPrimOps.emplace_back(std::move(primOp));
|
||||
}
|
||||
void EvalSettings::addPrimOp(const PrimOp & primOp)
|
||||
{
|
||||
extraPrimOps.emplace_back(PrimOp(primOp));
|
||||
}
|
||||
|
||||
} // namespace nix
|
Loading…
Add table
Add a link
Reference in a new issue