diff --git a/flake.lock b/flake.lock index 450d227..4b8e88e 100644 --- a/flake.lock +++ b/flake.lock @@ -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": { diff --git a/scope.cc b/scope.cc index 8709a26..190c0f4 100644 --- a/scope.cc +++ b/scope.cc @@ -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, });