git.iko.soy/typeable/nixpkgs
on master help sign in
stdenv: leave SSL_CERT_FILE in shells (#15571)
commitadaee7352bcbcaafaddf7f0a5ef8b65099e06f6e authorNikolay Amiantov <ab@fmap.me> dateThu 1 Sep 2016, 22:50 (10 years ago) parent7f520bd
1 file changed+2−1
pkgs/stdenv/generic/setup.sh+2−1
pkgs/stdenv/generic/setup.sh+2−1
@@ -376,7 +376,8 @@ export NIX_BUILD_CORES
376376
377377# Prevent OpenSSL-based applications from using certificates in
378378# /etc/ssl.
379−if [ -z "$SSL_CERT_FILE" ]; then
379+# Leave it in shells for convenience.
380+if [ -z "$SSL_CERT_FILE" ] && [ -z "$IN_NIX_SHELL" ]; then
380381 export SSL_CERT_FILE=/no-cert-file.crt
381382fi
382383