Skip to content

Commit

Permalink
curl: Use CA bundle in nix default profile by default
Browse files Browse the repository at this point in the history
  • Loading branch information
shlevy committed Mar 10, 2017
1 parent 66bc213 commit fb4c43d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/tools/networking/curl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ stdenv.mkDerivation rec {
'';

configureFlags = [
"--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt"
# OS X does not have a default system bundle, so we assume cacerts is installed in the default nix-env profile
# This sucks. We should probably just include the latest cacerts in the darwin bootstrap.
"--with-ca-bundle=${if stdenv.isDarwin then "/nix/var/nix/profiles/default" else ""}/etc/ssl/certs/ca-${if stdenv.isDarwin then "bundle" else "certificates"}.crt"
"--disable-manual"
( if sslSupport then "--with-ssl=${openssl.dev}" else "--without-ssl" )
( if gnutlsSupport then "--with-gnutls=${gnutls.dev}" else "--without-gnutls" )
Expand Down

0 comments on commit fb4c43d

Please sign in to comment.