diff options
author | Théophane Hufschmitt <regnat@users.noreply.github.com> | 2021-11-05 17:35:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-05 17:35:18 +0100 |
commit | 3d6ee223d6fff37610790dfbda1329f05bfc4058 (patch) | |
tree | d2f598ae3b13f0938c71c28dc36c9cca1e8c1cb1 /src/nix | |
parent | a1c1b0e5538983b29fa5b6681292efe790362231 (diff) | |
parent | 1a4c9ba50bb36ab5d18f47b0d00052d274ed824f (diff) |
Merge pull request #5476 from NixOS/ca/fix-build-in-nix-repl
Fix `nix repl`’s building of CA derivations
Diffstat (limited to 'src/nix')
-rw-r--r-- | src/nix/repl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/repl.cc b/src/nix/repl.cc index 07bf32a0a..4f13ee05d 100644 --- a/src/nix/repl.cc +++ b/src/nix/repl.cc @@ -504,8 +504,8 @@ bool NixRepl::processLine(string line) state->store->buildPaths({DerivedPath::Built{drvPath}}); auto drv = state->store->readDerivation(drvPath); logger->cout("\nThis derivation produced the following outputs:"); - for (auto & i : drv.outputsAndOptPaths(*state->store)) - logger->cout(" %s -> %s", i.first, state->store->printStorePath(*i.second.second)); + for (auto & [outputName, outputPath] : state->store->queryDerivationOutputMap(drvPath)) + logger->cout(" %s -> %s", outputName, state->store->printStorePath(outputPath)); } else if (command == ":i") { runNix("nix-env", {"-i", drvPathRaw}); } else { |