stdenv: Turn on set -x if NIX_DEBUG >= 6

Why 6? It seems a decently high number, giving us room for more degrees
of debugging before the `set -x` sledgehammer without incurring a
mass-rebuild.
This commit is contained in:
John Ericson 2017-09-19 19:11:29 -04:00
parent 127a5f3357
commit f6fcb9bc0d

View file

@ -1,6 +1,10 @@
set -eu
set -o pipefail
if (( "${NIX_DEBUG:-0}" >= 6 )); then
set -x
fi
: ${outputs:=out}