aboutsummaryrefslogtreecommitdiff
path: root/src/nix/repl.cc
diff options
context:
space:
mode:
authorCarlo Nucera <carlo.nucera@protonmail.com>2020-07-28 13:59:24 -0400
committerCarlo Nucera <carlo.nucera@protonmail.com>2020-07-28 13:59:24 -0400
commit7ef1e3cd1429f336c568ccf4d59cd89cde68efbd (patch)
tree7a39e96dd61ae5e18e01fc9a81eff46a23a84742 /src/nix/repl.cc
parentd564ac1c5086bda75388d21a25583b2c9809f086 (diff)
Use the new interface
Diffstat (limited to 'src/nix/repl.cc')
-rw-r--r--src/nix/repl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/repl.cc b/src/nix/repl.cc
index fb9050d0d..803d89018 100644
--- a/src/nix/repl.cc
+++ b/src/nix/repl.cc
@@ -485,8 +485,8 @@ bool NixRepl::processLine(string line)
if (runProgram(settings.nixBinDir + "/nix", Strings{"build", "--no-link", drvPath}) == 0) {
auto drv = readDerivation(*state->store, drvPath, Derivation::nameFromPath(state->store->parseStorePath(drvPath)));
std::cout << std::endl << "this derivation produced the following outputs:" << std::endl;
- for (auto & i : drv.outputs)
- std::cout << fmt(" %s -> %s\n", i.first, state->store->printStorePath(i.second.path(*state->store, drv.name)));
+ for (auto & i : drv.outputsAndPaths(*state->store))
+ std::cout << fmt(" %s -> %s\n", i.first, state->store->printStorePath(i.second.second));
}
} else if (command == ":i") {
runProgram(settings.nixBinDir + "/nix-env", Strings{"-i", drvPath});