aboutsummaryrefslogtreecommitdiff
path: root/src/nix/search.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/search.cc
parentfab731a9d4622b1ecd7dea01895d9fbaf83301ea (diff)
EvalCache: Revert to using symbols in getAttr()
Diffstat (limited to 'src/nix/search.cc')
-rw-r--r--src/nix/search.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/search.cc b/src/nix/search.cc
index 6febc0a55..76451f810 100644
--- a/src/nix/search.cc
+++ b/src/nix/search.cc
@@ -156,7 +156,7 @@ struct CmdSearch : InstallableCommand, MixJSON
recurse();
else if (attrPathS[0] == "legacyPackages" && attrPath.size() > 2) {
- auto attr = cursor.maybeGetAttr("recurseForDerivations");
+ auto attr = cursor.maybeGetAttr(state->sRecurseForDerivations);
if (attr && attr->getBool())
recurse();
}