curl*: move CXX and CXXCPP into env for structuredAttrs (#490794)

This commit is contained in:
Jo
2026-02-19 12:48:30 +00:00
committed by GitHub
+5 -4
View File
@@ -119,7 +119,11 @@ stdenv.mkDerivation (finalAttrs: {
strictDeps = true;
env = lib.optionalAttrs (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isStatic) {
env = {
CXX = "${stdenv.cc.targetPrefix}c++";
CXXCPP = "${stdenv.cc.targetPrefix}c++ -E";
}
// lib.optionalAttrs (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isStatic) {
# Not having this causes curls `configure` script to fail with static builds on Darwin because
# some of curls propagated inputs need libiconv.
NIX_LDFLAGS = "-liconv";
@@ -209,9 +213,6 @@ stdenv.mkDerivation (finalAttrs: {
"--with-ca-path=/etc/ssl/certs"
];
CXX = "${stdenv.cc.targetPrefix}c++";
CXXCPP = "${stdenv.cc.targetPrefix}c++ -E";
# takes 14 minutes on a 24 core and because many other packages depend on curl
# they cannot be run concurrently and are a bottleneck
# tests are available in passthru.tests.withCheck