diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2020-07-08 15:38:01 -0400 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2020-07-08 15:38:01 -0400 |
commit | af95a7c16b0fc0b033a7191f686fe98b2015162f (patch) | |
tree | 011186734ed386352aa3ae62e550a71a80e3ed3a /src/nix/repl.cc | |
parent | 7d8d78f06a637ba6b75285d299b07b81279c422f (diff) |
Add name to BasicDerivation
We always have a name for BasicDerivation, since we have a derivation
store path that has a name.
Diffstat (limited to 'src/nix/repl.cc')
-rw-r--r-- | src/nix/repl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/repl.cc b/src/nix/repl.cc index fdacf604b..a3d85ed31 100644 --- a/src/nix/repl.cc +++ b/src/nix/repl.cc @@ -483,7 +483,7 @@ bool NixRepl::processLine(string line) but doing it in a child makes it easier to recover from problems / SIGINT. */ if (runProgram(settings.nixBinDir + "/nix", Strings{"build", "--no-link", drvPath}) == 0) { - auto drv = readDerivation(*state->store, drvPath); + auto drv = readDerivation(*state->store, drvPath, std::string(state->store->parseStorePath(drvPath).name())); 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)); |