diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-10-24 14:24:57 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-10-24 14:24:57 +0200 |
commit | be220702a75427b80258a92d1ed8c4573c1478fa (patch) | |
tree | fa1535bf1b682db5f9a508f0cb393f8f235b16f0 /src/nix/progress-bar.cc | |
parent | f8624762aca7df05cfb405f5e79065d61b1a8d4b (diff) |
Progress indicator: Show on what machine we're building
E.g.
$ nix build nixpkgs.hello --builders 'root@wendy'
[1/0/1 built] building hello-2.10 on ssh://root@wendy: checking for minix/config.h... no
Diffstat (limited to 'src/nix/progress-bar.cc')
-rw-r--r-- | src/nix/progress-bar.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nix/progress-bar.cc b/src/nix/progress-bar.cc index 76138b2cc..a33ea3423 100644 --- a/src/nix/progress-bar.cc +++ b/src/nix/progress-bar.cc @@ -156,6 +156,9 @@ public: if (hasSuffix(name, ".drv")) name.resize(name.size() - 4); i->s = fmt("building " ANSI_BOLD "%s" ANSI_NORMAL, name); + auto machineName = getS(fields, 1); + if (machineName != "") + i->s += fmt(" on " ANSI_BOLD "%s" ANSI_NORMAL, machineName); } if (type == actSubstitute) { |