bind: add CoreServices framework on Darwin

Fixes the following error:

    CCLD     dig
    ld: file not found: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices for architecture arm64
    ld: file not found: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices for architecture arm64
    clang-16: clang-16: error: error: linker command failed with exit code 1 (use -v to see invocation)linker command failed with exit code 1 (use -v to see invocation)
This commit is contained in:
Randy Eckenrode
2024-07-27 11:43:42 -04:00
parent 8ebbf8f8cb
commit ae3a87ecc3
+3 -1
View File
@@ -1,6 +1,7 @@
{ stdenv
, lib
, fetchurl
, darwin
, perl
, pkg-config
, libcap
@@ -41,7 +42,8 @@ stdenv.mkDerivation rec {
buildInputs = [ libidn2 libtool libxml2 openssl libuv nghttp2 jemalloc ]
++ lib.optional stdenv.isLinux libcap
++ lib.optional enableGSSAPI libkrb5
++ lib.optional enablePython (python3.withPackages (ps: with ps; [ ply ]));
++ lib.optional enablePython (python3.withPackages (ps: with ps; [ ply ]))
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.CoreServices ];
depsBuildBuild = [ buildPackages.stdenv.cc ];