about summary refs log tree commit diff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-05-15T15·33+0200
committerEelco Dolstra <edolstra@gmail.com>2019-05-15T15·33+0200
commit66b8a62101cb1dfe2e368346cf99efd32e9328ae (patch)
tree4ef5a346b159b93a6b1ce6839b30bac5fb23a3c4 /src/libutil/util.hh
parent83f2b110cecf50877ce1585c698dbed6dd225562 (diff)
nix: Add --print-build-logs flag
This causes 'nix' to print build log output to stderr rather than
showing the last log line in the progress bar. Log lines are prefixed
by the name of the derivation (minus the version string), e.g.

  binutils> make[1]: Leaving directory '/build/binutils-2.31.1'
  binutils-wrapper> unpacking sources
  binutils-wrapper> patching sources
  ...
  binutils-wrapper> Using dynamic linker: '/nix/store/kr51dlsj9v5cr4n8700jliyz8v5b2q7q-bootstrap-stage0-glibc/lib/ld-linux-x86-64.so.2'
  bootstrap-stage2-gcc-wrapper> unpacking sources
  ...
  linux-headers> unpacking sources
  linux-headers> unpacking source archive /nix/store/8javli69jhj3bkql2c35gsj5vl91p382-linux-4.19.16.tar.xz
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index 9f239bff371a..23360de2e8d4 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -401,6 +401,7 @@ void ignoreException();
 /* Some ANSI escape sequences. */
 #define ANSI_NORMAL "\e[0m"
 #define ANSI_BOLD "\e[1m"
+#define ANSI_FAINT "\e[2m"
 #define ANSI_RED "\e[31;1m"
 #define ANSI_GREEN "\e[32;1m"
 #define ANSI_BLUE "\e[34;1m"