From ae3a87ecc32f3d5998d3235ae9efc0a0d992c54f Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 27 Jul 2024 11:43:42 -0400 Subject: [PATCH] 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) --- pkgs/servers/dns/bind/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/dns/bind/default.nix b/pkgs/servers/dns/bind/default.nix index 4690fa7693c6..a7c3f564af31 100644 --- a/pkgs/servers/dns/bind/default.nix +++ b/pkgs/servers/dns/bind/default.nix @@ -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 ];