From 27b510af5c3f8ad562dbc90dd39f82236fdf57db Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 17 Jan 2018 12:04:44 +0100 Subject: [PATCH] nix eval: Stop progress bar before printing the result --- src/nix/eval.cc | 4 ++++ 1 file changed, 4 insertions(+) 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) {