aboutsummaryrefslogtreecommitdiff
path: root/src/nix/flake.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-02-07 14:08:24 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-02-07 14:08:24 +0100
commit0b013a54dc570395bed887369f8dd622b8ce337b (patch)
tree2c5f3b4910cfe5fac935c10531b82fc226348271 /src/nix/flake.cc
parent84a3a5c3cdc786a8848abf5b9096f40991205e72 (diff)
findAlongAttrPath(): Return position
Diffstat (limited to 'src/nix/flake.cc')
-rw-r--r--src/nix/flake.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc
index 3b473de73..8945d8829 100644
--- a/src/nix/flake.cc
+++ b/src/nix/flake.cc
@@ -348,7 +348,7 @@ struct CmdFlakeCheck : FlakeCommand
Activity act(*logger, lvlChatty, actUnknown,
fmt("checking NixOS configuration '%s'", attrPath));
Bindings & bindings(*state->allocBindings(0));
- auto vToplevel = findAlongAttrPath(*state, "config.system.build.toplevel", bindings, v);
+ auto vToplevel = findAlongAttrPath(*state, "config.system.build.toplevel", bindings, v).first;
state->forceAttrs(*vToplevel, pos);
if (!state->isDerivation(*vToplevel))
throw Error("attribute 'config.system.build.toplevel' is not a derivation");