curl: fix rustls ca-certificates detection (#331754)

This commit is contained in:
Martin Weinelt 2024-08-30 19:03:30 +02:00 committed by GitHub
commit cda8a98a72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -149,6 +149,8 @@ stdenv.mkDerivation (finalAttrs: {
"--without-ca-path"
] ++ lib.optionals (!gnutlsSupport && !opensslSupport && !wolfsslSupport && !rustlsSupport) [
"--without-ssl"
] ++ lib.optionals (rustlsSupport && !stdenv.isDarwin) [
"--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt"
] ++ lib.optionals (gnutlsSupport && !stdenv.isDarwin) [
"--with-ca-path=/etc/ssl/certs"
];