diff options
Diffstat (limited to 'third_party/nix/src/nix-prefetch-url/nix-prefetch-url.cc')
-rw-r--r-- | third_party/nix/src/nix-prefetch-url/nix-prefetch-url.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/nix/src/nix-prefetch-url/nix-prefetch-url.cc b/third_party/nix/src/nix-prefetch-url/nix-prefetch-url.cc index 5454c6cd108e..66e7cff810f5 100644 --- a/third_party/nix/src/nix-prefetch-url/nix-prefetch-url.cc +++ b/third_party/nix/src/nix-prefetch-url/nix-prefetch-url.cc @@ -107,7 +107,7 @@ static int _main(int argc, char** argv) { auto store = openStore(); auto state = std::make_unique<EvalState>(myArgs.searchPath, store); - Bindings& autoArgs = *myArgs.getAutoArgs(*state); + std::unique_ptr<Bindings> autoArgs = myArgs.getAutoArgs(*state); /* If -A is given, get the URI from the specified Nix expression. */ @@ -122,7 +122,7 @@ static int _main(int argc, char** argv) { resolveExprPath(lookupFileArg(*state, args.empty() ? "." : args[0])); Value vRoot; state->evalFile(path, vRoot); - Value& v(*findAlongAttrPath(*state, attrPath, autoArgs, vRoot)); + Value& v(*findAlongAttrPath(*state, attrPath, autoArgs.get(), vRoot)); state->forceAttrs(v); /* Extract the URI. */ |