about summary refs log tree commit diff
path: root/pkgs/tools/networking/curl
diff options
context:
space:
mode:
authorTobias Mayer <tobim@fastmail.fm>2023-10-13 10:37:13 +0200
committerVladimír Čunát <v@cunat.cz>2023-10-13 10:37:45 +0200
commitc2cce178faa83b2bf1d9a5693d70b0d231ce66cc (patch)
tree65f27546d2042cc97d85d17c20bde36a0c5e5c94 /pkgs/tools/networking/curl
parent667dcd799d670e99ba4dd0e264885a01db9a758f (diff)
curl: fixup build on darwin after update
> checking for connect in libraries... cannot find connect
> configure: error: cannot find connect function in libraries.
Diffstat (limited to 'pkgs/tools/networking/curl')
-rw-r--r--pkgs/tools/networking/curl/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/networking/curl/default.nix b/pkgs/tools/networking/curl/default.nix
index c99f09e7f93a0..e9d0327363364 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.