From adaee7352bcbcaafaddf7f0a5ef8b65099e06f6e Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Thu, 1 Sep 2016 22:50:08 +0400 Subject: [PATCH] stdenv: leave SSL_CERT_FILE in shells (#15571) --- pkgs/stdenv/generic/setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh index c478c3753233..feb82fd92266 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