From 73d9cac3776b705c8d265b0c9c2ddaf18bc48b46 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Mon, 17 Jun 2019 23:09:06 +0200 Subject: darwin-frameworks: replace cf-private and move it's setup-hook The only remaining use-case for cf-private are symbols that are not available in the opensource build. This generally solved the problem because of it's setup-hook. --- pkgs/os-specific/darwin/apple-sdk/cf-setup-hook.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 pkgs/os-specific/darwin/apple-sdk/cf-setup-hook.sh (limited to 'pkgs/os-specific/darwin/apple-sdk/cf-setup-hook.sh') diff --git a/pkgs/os-specific/darwin/apple-sdk/cf-setup-hook.sh b/pkgs/os-specific/darwin/apple-sdk/cf-setup-hook.sh new file mode 100644 index 00000000000..66e24fe5877 --- /dev/null +++ b/pkgs/os-specific/darwin/apple-sdk/cf-setup-hook.sh @@ -0,0 +1,9 @@ +linkSystemCoreFoundationFramework() { + NIX_CFLAGS_COMPILE="-F@out@/Library/Frameworks $NIX_CFLAGS_COMPILE" + # gross! many symbols (such as _OBJC_CLASS_$_NSArray) are defined in system CF, but not + # in the opensource release + # if the package needs private headers, we assume they also want to link with system CF + NIX_LDFLAGS+=" /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation" +} + +preConfigureHooks+=(linkSystemCoreFoundationFramework) -- cgit 1.4.1