about summary refs log tree commit diff
path: root/src/nix/eval.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-01-17T11·04+0100
committerEelco Dolstra <edolstra@gmail.com>2018-01-17T11·04+0100
commit27b510af5c3f8ad562dbc90dd39f82236fdf57db (patch)
tree7d7b50107951f9ffcc087ce53625988aaa42da82 /src/nix/eval.cc
parent16e0287556cbf04d2642c1091b4fe00fa6e352af (diff)
nix eval: Stop progress bar before printing the result
Diffstat (limited to 'src/nix/eval.cc')
-rw-r--r--src/nix/eval.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nix/eval.cc b/src/nix/eval.cc
index 2bc58b7dd4b5..b7058361cbec 100644
--- a/src/nix/eval.cc
+++ b/src/nix/eval.cc
@@ -5,6 +5,7 @@
 #include "eval.hh"
 #include "json.hh"
 #include "value-to-json.hh"
+#include "progress-bar.hh"
 
 using namespace nix;
 
@@ -58,6 +59,9 @@ struct CmdEval : MixJSON, InstallableCommand
 
         auto v = installable->toValue(*state);
         PathSet context;
+
+        stopProgressBar();
+
         if (raw) {
             std::cout << state->coerceToString(noPos, *v, context);
         } else if (json) {