git.iko.soy/typeable/nixpkgs
on master help sign in
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

commit288939ce22a8d63077e888db227289d9e36d41e5 authorDaiderd Jordan <daiderd@gmail.com> dateSat 23 Jun 2018, 12:13 (8 years ago) parent59daa4f
1 file changed+4
pkgs/tools/networking/curl/default.nix+4
pkgs/tools/networking/curl/default.nix+4
@@ -63,6 +63,10 @@ stdenv.mkDerivation rec {
6363 '';
6464
6565 configureFlags = [
66+ # Disable default CA bundle, use NIX_SSL_CERT_FILE or fallback
67+ # to nss-cacert from the default profile.
68+ "--without-ca-bundle"
69+ "--without-ca-path"
6670 "--with-ca-fallback"
6771 "--disable-manual"
6872 ( if sslSupport then "--with-ssl=${openssl.dev}" else "--without-ssl" )