forked from mirrors/nixpkgs
stdenv: leave SSL_CERT_FILE in shells (#15571)
This commit is contained in:
parent
7f520bdad8
commit
adaee7352b
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue