Merge pull request #222796 from SFrijters/curl-without-ssl

curl: fix build without TLS

Changed files
+2
pkgs
tools
networking
+2
pkgs/tools/networking/curl/default.nix
···
# 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++";