diff --git a/pkgs/tools/networking/curl/default.nix b/pkgs/tools/networking/curl/default.nix index c99f09e7f93a..e9d032736336 100644 --- a/pkgs/tools/networking/curl/default.nix +++ b/pkgs/tools/networking/curl/default.nix @@ -26,6 +26,8 @@ , zlibSupport ? true, zlib , zstdSupport ? false, zstd +, darwin + # for passthru.tests , coeurl , curlpp @@ -70,6 +72,10 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ pkg-config perl ]; + buildInputs = lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.CoreServices + ]; + # Zlib and OpenSSL must be propagated because `libcurl.la' contains # "-lz -lssl", which aren't necessary direct build inputs of # applications that use Curl.