diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-01-17 12:04:44 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-01-17 12:04:44 +0100 |
commit | 27b510af5c3f8ad562dbc90dd39f82236fdf57db (patch) | |
tree | 7d7b50107951f9ffcc087ce53625988aaa42da82 | |
parent | 16e0287556cbf04d2642c1091b4fe00fa6e352af (diff) |
nix eval: Stop progress bar before printing the result
-rw-r--r-- | src/nix/eval.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nix/eval.cc b/src/nix/eval.cc index 2bc58b7dd..b7058361c 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) { |