curl: fix build without TLS

Fixes "configure: error: select TLS backend(s) or disable TLS with --without-ssl."
if all backends are switched off.
This commit is contained in:
Stefan Frijters 2023-03-23 22:26:44 +01:00
parent b9831fe22c
commit 6fce94a26c
No known key found for this signature in database
GPG Key ID: 7619A6BC6E7DFA6F

View File

@ -129,6 +129,8 @@ stdenv.mkDerivation (finalAttrs: {
# Without this curl might detect /etc/ssl/cert.pem at build time on macOS, causing curl to ignore NIX_SSL_CERT_FILE.
"--without-ca-bundle"
"--without-ca-path"
] ++ lib.optionals (!gnutlsSupport && !opensslSupport && !wolfsslSupport) [
"--without-ssl"
];
CXX = "${stdenv.cc.targetPrefix}c++";