1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00

nix-shell: print sourced shell file in higher levels

to easen debugs when nix-shell is not working in your shell
This commit is contained in:
Sandro Jäckel 2022-01-21 13:59:04 +01:00 committed by Sandro Jäckel
parent 3157028fc1
commit 708c36f0b0
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -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;