diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-02-02 12:45:44 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-02-02 12:45:44 +0100 |
commit | 17e3f353df3d829ce57f3eb16ab5c810056cdf9b (patch) | |
tree | 63de40310671aecd7be967c1e389781a62edff31 /src/nix | |
parent | cd35bbbeef72375873e396b9ffed14a4638693a8 (diff) | |
parent | 7d4cc5515ce5e4972fd5b474ae18cf95f6ea257e (diff) |
Merge branch 'parser-improvements' of https://github.com/pennae/nix
Diffstat (limited to 'src/nix')
-rw-r--r-- | src/nix/flake.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc index 97f4d911c..101d38c6c 100644 --- a/src/nix/flake.cc +++ b/src/nix/flake.cc @@ -476,8 +476,8 @@ struct CmdFlakeCheck : FlakeCommand if (!v.isLambda()) throw Error("bundler must be a function"); if (!v.lambda.fun->formals || - !v.lambda.fun->formals->argNames.count(state->symbols.create("program")) || - !v.lambda.fun->formals->argNames.count(state->symbols.create("system"))) + !v.lambda.fun->formals->has(state->symbols.create("program")) || + !v.lambda.fun->formals->has(state->symbols.create("system"))) throw Error("bundler must take formal arguments 'program' and 'system'"); } catch (Error & e) { e.addTrace(pos, hintfmt("while checking the template '%s'", attrPath)); |