curl: disable default CA bundle

Without this curl might detect /etc/ssl/cert.pem at build time on macOS,
causing curl to ignore NIX_SSL_CERT_FILE.

Fixes #42317
This commit is contained in:
Daiderd Jordan 2018-06-23 12:13:23 +02:00
parent 59daa4fd62
commit 288939ce22
No known key found for this signature in database
GPG Key ID: D02435D05B810C96
1 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,10 @@ stdenv.mkDerivation rec {
'';
configureFlags = [
# Disable default CA bundle, use NIX_SSL_CERT_FILE or fallback
# to nss-cacert from the default profile.
"--without-ca-bundle"
"--without-ca-path"
"--with-ca-fallback"
"--disable-manual"
( if sslSupport then "--with-ssl=${openssl.dev}" else "--without-ssl" )