Skip to content
Snippets Groups Projects
Commit 6a24e49b authored by Will Dietz's avatar Will Dietz
Browse files

repl: use `nix build` for building instead of `nix-store -r`

progress bar!
parent 6924bdf2
No related branches found
No related tags found
No related merge requests found
......@@ -385,7 +385,7 @@ bool NixRepl::processLine(string line)
/* We could do the build in this process using buildPaths(),
but doing it in a child makes it easier to recover from
problems / SIGINT. */
if (runProgram(settings.nixBinDir + "/nix-store", Strings{"-r", drvPath}) == 0) {
if (runProgram(settings.nixBinDir + "/nix", Strings{"build", drvPath}) == 0) {
Derivation drv = readDerivation(drvPath);
std::cout << std::endl << "this derivation produced the following outputs:" << std::endl;
for (auto & i : drv.outputs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment