diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-04-26 14:01:21 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-04-26 14:01:42 +0200 |
commit | 474695975dde60f582ca0b2fb72c17f664e22876 (patch) | |
tree | 3054af9cc5b2d73d71dfc88838ac248a062ed692 /src/nix/app.cc | |
parent | fab731a9d4622b1ecd7dea01895d9fbaf83301ea (diff) |
EvalCache: Revert to using symbols in getAttr()
Diffstat (limited to 'src/nix/app.cc')
-rw-r--r-- | src/nix/app.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nix/app.cc b/src/nix/app.cc index eec53ad7c..cce84d026 100644 --- a/src/nix/app.cc +++ b/src/nix/app.cc @@ -85,9 +85,9 @@ UnresolvedApp Installable::toApp(EvalState & state) else if (type == "derivation") { auto drvPath = cursor->forceDerivation(); - auto outPath = cursor->getAttr("outPath")->getString(); - auto outputName = cursor->getAttr("outputName")->getString(); - auto name = cursor->getAttr("name")->getString(); + auto outPath = cursor->getAttr(state.sOutPath)->getString(); + auto outputName = cursor->getAttr(state.sOutputName)->getString(); + auto name = cursor->getAttr(state.sName)->getString(); auto aPname = cursor->maybeGetAttr("pname"); auto aMeta = cursor->maybeGetAttr("meta"); auto aMainProgram = aMeta ? aMeta->maybeGetAttr("mainProgram") : nullptr; |