From 6fce94a26ca1104317298914b0a04906bfa15b52 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Thu, 23 Mar 2023 22:26:44 +0100 Subject: [PATCH] curl: fix build without TLS Fixes "configure: error: select TLS backend(s) or disable TLS with --without-ssl." if all backends are switched off. --- pkgs/tools/networking/curl/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/networking/curl/default.nix b/pkgs/tools/networking/curl/default.nix index fca190bde4ab..d7dbd958b586 100644 --- a/pkgs/tools/networking/curl/default.nix +++ b/pkgs/tools/networking/curl/default.nix @@ -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++";