update primop call

This commit is contained in:
atagen 2026-04-20 16:09:26 +10:00
parent 0e5218513e
commit dbfc2ba4e1
2 changed files with 5 additions and 5 deletions

6
flake.lock generated
View file

@ -2,11 +2,11 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1771923393,
"narHash": "sha256-Fy0+UXELv9hOE8WjYhJt8fMDLYTU2Dqn3cX4BwoGBos=",
"lastModified": 1776329215,
"narHash": "sha256-a8BYi3mzoJ/AcJP8UldOx8emoPRLeWqALZWu4ZvjPXw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ea7f1f06811ce7fcc81d6c6fd4213150c23edcf2",
"rev": "b86751bc4085f48661017fa226dee99fab6c651b",
"type": "github"
},
"original": {

View file

@ -40,7 +40,7 @@ static void prim_scope(EvalState & state, const PosIdx pos, Value ** args, Value
v = *inner;
}
static RegisterPrimOp rp({
static RegisterPrimOp rp(PrimOp{
.name = "scope",
.args = {"path", "value"},
.doc = R"(
@ -48,5 +48,5 @@ static RegisterPrimOp rp({
Example: `scope "a.b.c" 42` evaluates to `{ a = { b = { c = 42; }; }; }`.
)",
.fun = prim_scope,
.impl = prim_scope,
});