aboutsummaryrefslogtreecommitdiff
path: root/src/nix/flake.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-04-26 14:01:21 +0200
committerEelco Dolstra <edolstra@gmail.com>2022-04-26 14:01:42 +0200
commit474695975dde60f582ca0b2fb72c17f664e22876 (patch)
tree3054af9cc5b2d73d71dfc88838ac248a062ed692 /src/nix/flake.cc
parentfab731a9d4622b1ecd7dea01895d9fbaf83301ea (diff)
EvalCache: Revert to using symbols in getAttr()
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 2c4a64c85..040c1c7af 100644
--- a/src/nix/flake.cc
+++ b/src/nix/flake.cc
@@ -1012,7 +1012,7 @@ struct CmdFlakeShow : FlakeCommand, MixJSON
auto showDerivation = [&]()
{
- auto name = visitor.getAttr("name")->getString();
+ auto name = visitor.getAttr(state->sName)->getString();
if (json) {
std::optional<std::string> description;
if (auto aMeta = visitor.maybeGetAttr("meta")) {