From 708c36f0b0f772349a6b67c4f4b2c0d9780b918c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 21 Jan 2022 13:59:04 +0100 Subject: [PATCH] nix-shell: print sourced shell file in higher levels to easen debugs when nix-shell is not working in your shell --- src/nix-build/nix-build.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc index 471a03ac7..aacce98c8 100755 --- a/src/nix-build/nix-build.cc +++ b/src/nix-build/nix-build.cc @@ -515,7 +515,7 @@ static void main_nix_build(int argc, char * * argv) shellEscape(*shell), (getenv("TZ") ? (string("export TZ=") + shellEscape(getenv("TZ")) + "; ") : ""), envCommand); - vomit("Sourcing nix-shell with file %s and contents:\n%s", rcfile, rc); + debug("Sourcing nix-shell with file %s and contents:\n%s", rcfile, rc); writeFile(rcfile, rc); Strings envStrs;