nix eval: Stop progress bar before printing the result

This commit is contained in:
Eelco Dolstra 2018-01-17 12:04:44 +01:00
parent 16e0287556
commit 27b510af5c
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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) {