Merge pull request #43664 from nlewo/pr-go-x
goBuildPackage: Add -x to the go build command if NIX_DEBUG >= 1
This commit is contained in:
commit
c5f1eea023
@ -151,6 +151,10 @@ go.stdenv.mkDerivation (
|
||||
fi
|
||||
}
|
||||
|
||||
if (( "''${NIX_DEBUG:-0}" >= 1 )); then
|
||||
buildFlagsArray+=(-x)
|
||||
fi
|
||||
|
||||
if [ ''${#buildFlagsArray[@]} -ne 0 ]; then
|
||||
declare -p buildFlagsArray > $TMPDIR/buildFlagsArray
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user