diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-09-01 22:50:08 +0400 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2016-09-01 20:50:08 +0200 |
commit | adaee7352bcbcaafaddf7f0a5ef8b65099e06f6e (patch) | |
tree | 980c83fba4e8753dc8e426a77226a1eaca328c0e /pkgs/stdenv/generic | |
parent | 7f520bdad8d480727e48f6c33ef053f07574b0ad (diff) |
stdenv: leave SSL_CERT_FILE in shells (#15571)
Diffstat (limited to 'pkgs/stdenv/generic')
-rw-r--r-- | pkgs/stdenv/generic/setup.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh index c478c37532331..feb82fd922666 100644 --- a/pkgs/stdenv/generic/setup.sh +++ b/pkgs/stdenv/generic/setup.sh @@ -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 |