diff options
Diffstat (limited to 'third_party/nix/src/nix-build/nix-build.cc')
-rw-r--r-- | third_party/nix/src/nix-build/nix-build.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/third_party/nix/src/nix-build/nix-build.cc b/third_party/nix/src/nix-build/nix-build.cc index 85b8a32462e8..1fb8a2f3ad4b 100644 --- a/third_party/nix/src/nix-build/nix-build.cc +++ b/third_party/nix/src/nix-build/nix-build.cc @@ -266,7 +266,7 @@ static void _main(int argc, char** argv) { auto state = std::make_unique<EvalState>(myArgs.searchPath, store); state->repair = repair; - Bindings& autoArgs = *myArgs.getAutoArgs(*state); + std::unique_ptr<Bindings> autoArgs = myArgs.getAutoArgs(*state); if (packages) { std::ostringstream joined; @@ -334,9 +334,9 @@ static void _main(int argc, char** argv) { state->eval(e, vRoot); for (auto& i : attrPaths) { - Value& v(*findAlongAttrPath(*state, i, autoArgs, vRoot)); + Value& v(*findAlongAttrPath(*state, i, autoArgs.get(), vRoot)); state->forceValue(v); - getDerivations(*state, v, "", autoArgs, drvs, false); + getDerivations(*state, v, "", autoArgs.get(), drvs, false); } } |