stdenv: leave SSL_CERT_FILE in shells (#15571)

This commit is contained in:
Nikolay Amiantov 2016-09-01 22:50:08 +04:00 committed by Domen Kožar
parent 7f520bdad8
commit adaee7352b

View file

@ -376,7 +376,8 @@ export NIX_BUILD_CORES
# Prevent OpenSSL-based applications from using certificates in
# /etc/ssl.
if [ -z "$SSL_CERT_FILE" ]; then
# Leave it in shells for convenience.
if [ -z "$SSL_CERT_FILE" ] && [ -z "$IN_NIX_SHELL" ]; then
export SSL_CERT_FILE=/no-cert-file.crt
fi