about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-07-06T19·36+0200
committerGitHub <noreply@github.com>2018-07-06T19·36+0200
commitaa64e95bc82b3a57f3a645a746aacf4d2479266e (patch)
tree59e189fb0d5a1eae20708c159a491f08d795d0ba /src
parentf1f4c257f48ed863b2061bc47a2334fd37ca3eff (diff)
parent6a24e49ba82553b5efcc49c627424bd4e26e16a5 (diff)
Merge pull request #2250 from dtzWill/feature/repl-progress-bar-builds
repl: use `nix build` for building instead of `nix-store -r`
Diffstat (limited to 'src')
-rw-r--r--src/nix/repl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/repl.cc b/src/nix/repl.cc
index 4723a1974b77..1eb716006375 100644
--- a/src/nix/repl.cc
+++ b/src/nix/repl.cc
@@ -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)