git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #63381 from LnL7/darwin-frameworks

darwin-frameworks: remove CF references

commit10f3980f9534d96d32f026547f2a1d9a5aa8e468 authorDaiderd Jordan <daiderd@gmail.com> dateWed 3 Jul 2019, 22:40 (7 years ago) parentf38fbf842705e7
69 files changed+221−468
pkgs/applications/editors/emacs/25.nix+2−6 pkgs/applications/editors/emacs/default.nix+2−6 pkgs/applications/editors/emacs/macport.nix+1−3 pkgs/applications/editors/vim/configurable.nix+2−2 pkgs/applications/editors/vim/default.nix+2−6 pkgs/applications/graphics/gimp/default.nix+2−4 pkgs/applications/misc/alacritty/default.nix+1−7 pkgs/applications/misc/aminal/default.nix+1−7 pkgs/applications/misc/kitty/default.nix−2 pkgs/applications/misc/synergy/default.nix+2−2 pkgs/applications/misc/zola/default.nix+3−2 pkgs/applications/science/misc/root/5.nix+2−2 pkgs/applications/science/misc/root/default.nix+2−2 pkgs/development/compilers/llvm/4/lldb.nix+1−1 pkgs/development/compilers/llvm/5/lldb.nix+1−1 pkgs/development/compilers/llvm/6/lldb.nix+1−1 pkgs/development/compilers/llvm/7/lldb.nix+13−8 pkgs/development/compilers/llvm/8/lldb.nix+1−1 pkgs/development/libraries/SDL/default.nix+1−6 pkgs/development/libraries/SDL2/default.nix+2−6 pkgs/development/libraries/ffmpeg-full/default.nix+2−10 pkgs/development/libraries/fltk/1.4.nix+14−18 pkgs/development/libraries/fltk/default.nix+13−18 pkgs/development/libraries/glfw/3.x.nix+3−8 pkgs/development/libraries/glib/default.nix−3 pkgs/development/libraries/libui/default.nix+2−2 pkgs/development/libraries/opencv/3.x.nix+2−2 pkgs/development/libraries/opencv/4.x.nix+2−2 pkgs/development/libraries/opencv/default.nix+2−2 pkgs/development/libraries/pcl/default.nix+2−2 pkgs/development/libraries/qt-4.x/4.8/default.nix+2−2 pkgs/development/libraries/qt-5/5.11/default.nix+3−7 pkgs/development/libraries/qt-5/5.12/default.nix+3−7 pkgs/development/libraries/qt-5/5.6/default.nix+1−4 pkgs/development/libraries/qt-5/5.9/default.nix+2−7 pkgs/development/libraries/qt-5/modules/qtbase.nix−2 pkgs/development/libraries/qt-5/modules/qtconnectivity.nix+2−2 pkgs/development/libraries/qt-5/modules/qtmacextras.nix+2−4 pkgs/development/libraries/qt-5/modules/qtwebengine.nix−8 pkgs/development/libraries/qt-5/modules/qtwebkit.nix+1−1 pkgs/development/libraries/qt-5/modules/qtwebview.nix+2−8 pkgs/development/libraries/sfml/default.nix+2−5 pkgs/development/libraries/tk/generic.nix+2−4 pkgs/development/libraries/vtk/default.nix+8−8 pkgs/development/libraries/wxwidgets/3.0/mac.nix+2−9 pkgs/development/python-modules/watchdog/default.nix+1−1 pkgs/development/tools/analysis/flow/default.nix+2−2 pkgs/development/tools/cargo-web/default.nix+2−6 pkgs/development/tools/watchman/default.nix+12−13 pkgs/games/gargoyle/default.nix+2−2 pkgs/misc/emulators/dolphin-emu/master.nix+2−2 pkgs/misc/jackaudio/default.nix+2−2 pkgs/os-specific/darwin/cf-private/setup-hook.sh → pkgs/os-specific/darwin/apple-sdk/cf-setup-hook.sh+3−6 pkgs/os-specific/darwin/apple-sdk/default.nix+6−2 pkgs/os-specific/darwin/apple-sdk/frameworks.nix+40−39 pkgs/os-specific/darwin/cf-private/default.nix−58 pkgs/os-specific/darwin/trash/default.nix+2−7 pkgs/servers/x11/quartz-wm/default.nix+1−3 pkgs/servers/x11/xorg/overrides.nix+2−6 pkgs/servers/x11/xquartz/default.nix+1−6 pkgs/tools/misc/contacts/default.nix+2−7 pkgs/tools/misc/noti/default.nix+2−2 pkgs/tools/misc/watchexec/default.nix+1−5 pkgs/tools/security/keybase/default.nix+2−6 pkgs/tools/security/pinentry/mac.nix+2−7 pkgs/tools/text/mdbook/default.nix+1−5 pkgs/tools/video/atomicparsley/default.nix+2−6 pkgs/top-level/all-packages.nix+9−52 pkgs/top-level/darwin-packages.nix+6−3
pkgs/applications/editors/emacs/25.nix+2−6
@@ -1,7 +1,7 @@
11{ stdenv, lib, fetchurl, ncurses, xlibsWrapper, libXaw, libXpm, Xaw3d
22, pkgconfig, gettext, libXft, dbus, libpng, libjpeg, libungif
33, libtiff, librsvg, gconf, libxml2, imagemagick, gnutls, libselinux
4−, alsaLib, cairo, acl, gpm, cf-private, AppKit, GSS, ImageIO
4+, alsaLib, cairo, acl, gpm, AppKit, GSS, ImageIO
55, withX ? !stdenv.isDarwin
66, withGTK2 ? false, gtk2 ? null
77, withGTK3 ? true, gtk3 ? null, gsettings-desktop-schemas ? null
@@ -62,11 +62,7 @@ stdenv.mkDerivation rec {
6262 ++ lib.optionals (withX && withGTK3) [ gtk3 gsettings-desktop-schemas ]
6363 ++ lib.optional (stdenv.isDarwin && withX) cairo
6464 ++ lib.optionals (withX && withXwidgets) [ webkitgtk24x-gtk3 glib-networking ]
65− ++ lib.optionals stdenv.isDarwin [
66− AppKit GSS ImageIO
67− # Needed for CFNotificationCenterAddObserver symbols.
68− cf-private
69− ];
65+ ++ lib.optionals stdenv.isDarwin [ AppKit GSS ImageIO ];
7066
7167 hardeningDisable = [ "format" ];
7268
pkgs/applications/editors/emacs/default.nix+2−6
@@ -1,7 +1,7 @@
11{ stdenv, lib, fetchurl, ncurses, xlibsWrapper, libXaw, libXpm
22, Xaw3d, libXcursor, pkgconfig, gettext, libXft, dbus, libpng, libjpeg, libungif
33, libtiff, librsvg, gconf, libxml2, imagemagick, gnutls, libselinux
4−, alsaLib, cairo, acl, gpm, cf-private, AppKit, GSS, ImageIO, m17n_lib, libotf
4+, alsaLib, cairo, acl, gpm, AppKit, GSS, ImageIO, m17n_lib, libotf
55, systemd ? null
66, withX ? !stdenv.isDarwin
77, withNS ? stdenv.isDarwin
@@ -67,11 +67,7 @@ stdenv.mkDerivation rec {
6767 ++ lib.optionals (withX && withGTK3) [ gtk3-x11 gsettings-desktop-schemas ]
6868 ++ lib.optional (stdenv.isDarwin && withX) cairo
6969 ++ lib.optionals (withX && withXwidgets) [ webkitgtk ]
70− ++ lib.optionals withNS [
71− AppKit GSS ImageIO
72− # Needed for CFNotificationCenterAddObserver symbols.
73− cf-private
74− ];
70+ ++ lib.optionals withNS [ AppKit GSS ImageIO ];
7571
7672 hardeningDisable = [ "format" ];
7773
pkgs/applications/editors/emacs/macport.nix+1−3
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, ncurses, pkgconfig, texinfo, libxml2, gnutls, gettext, autoconf, automake
2−, cf-private, AppKit, Carbon, Cocoa, IOKit, OSAKit, Quartz, QuartzCore, WebKit
2+, AppKit, Carbon, Cocoa, IOKit, OSAKit, Quartz, QuartzCore, WebKit
33, ImageCaptureCore, GSS, ImageIO # These may be optional
44}:
55
@@ -33,8 +33,6 @@ stdenv.mkDerivation rec {
3333 buildInputs = [ ncurses libxml2 gnutls texinfo gettext
3434 AppKit Carbon Cocoa IOKit OSAKit Quartz QuartzCore WebKit
3535 ImageCaptureCore GSS ImageIO # may be optional
36− # Needed for CFNotificationCenterAddObserver symbols.
37− cf-private
3836 ];
3937
4038 postUnpack = ''
pkgs/applications/editors/vim/configurable.nix+2−2
@@ -10,7 +10,7 @@
1010, runtimeShell
1111
1212# apple frameworks
13−, CoreServices, CoreData, Cocoa, Foundation, libobjc, cf-private
13+, CoreServices, CoreData, Cocoa, Foundation, libobjc
1414
1515, features ? "huge" # One of tiny, small, normal, big or huge
1616, wrapPythonDrv ? false
@@ -132,7 +132,7 @@ in stdenv.mkDerivation rec {
132132 libXmu glib libICE ]
133133 ++ stdenv.lib.optional (guiSupport == "gtk2") gtk2-x11
134134 ++ stdenv.lib.optional (guiSupport == "gtk3") gtk3-x11
135− ++ stdenv.lib.optionals darwinSupport [ CoreServices CoreData Cocoa Foundation libobjc cf-private ]
135+ ++ stdenv.lib.optionals darwinSupport [ CoreServices CoreData Cocoa Foundation libobjc ]
136136 ++ stdenv.lib.optional luaSupport lua
137137 ++ stdenv.lib.optional pythonSupport python
138138 ++ stdenv.lib.optional tclSupport tcl
pkgs/applications/editors/vim/default.nix+2−6
@@ -6,7 +6,7 @@
66 sha256 = "18ifhv5q9prd175q3vxbqf6qyvkk6bc7d2lhqdk0q78i68kv9y0c";
77 }
88# apple frameworks
9−, cf-private, Carbon, Cocoa
9+, Carbon, Cocoa
1010}:
1111
1212let
@@ -19,11 +19,7 @@ stdenv.mkDerivation rec {
1919
2020 nativeBuildInputs = [ gettext pkgconfig ];
2121 buildInputs = [ ncurses ]
22− ++ stdenv.lib.optionals stdenv.hostPlatform.isDarwin [
23− Carbon Cocoa
24− # Needed for OBJC_CLASS_$_NSArray symbols.
25− cf-private
26− ];
22+ ++ stdenv.lib.optionals stdenv.hostPlatform.isDarwin [ Carbon Cocoa ];
2723
2824 configureFlags = [
2925 "--enable-multibyte"
pkgs/applications/graphics/gimp/default.nix+2−4
@@ -3,7 +3,7 @@
33, libmng, librsvg, libwmf, zlib, libzip, ghostscript, aalib, shared-mime-info
44, python2Packages, libexif, gettext, xorg, glib-networking, libmypaint, gexiv2
55, harfbuzz, mypaint-brushes, libwebp, libheif, libgudev, openexr
6−, AppKit, Cocoa, gtk-mac-integration-gtk2, cf-private }:
6+, AppKit, Cocoa, gtk-mac-integration-gtk2 }:
77
88let
99 inherit (python2Packages) pygtk wrapPython python;
@@ -24,9 +24,7 @@ in stdenv.mkDerivation rec {
2424 libmng librsvg libwmf zlib libzip ghostscript aalib shared-mime-info libwebp libheif
2525 python pygtk libexif xorg.libXpm glib-networking libmypaint mypaint-brushes
2626 ] ++ stdenv.lib.optionals stdenv.isDarwin [
27− # cf-private is needed to get some things not in swift-corefoundation.
28− # For instance _OBJC_CLASS_$_NSArray is missing.
29− AppKit Cocoa gtk-mac-integration-gtk2 cf-private
27+ AppKit Cocoa gtk-mac-integration-gtk2
3028 ] ++ stdenv.lib.optionals stdenv.isLinux [ libgudev ];
3129
3230 pythonPath = [ pygtk ];
pkgs/applications/misc/alacritty/default.nix+1−7
@@ -24,9 +24,7 @@
2424 wayland,
2525
2626 # Darwin Frameworks
27− cf-private,
2827 AppKit,
29− CoreFoundation,
3028 CoreGraphics,
3129 CoreServices,
3230 CoreText,
@@ -74,11 +72,7 @@ in buildRustPackage rec {
7472 ];
7573
7674 buildInputs = rpathLibs
77− ++ lib.optionals stdenv.isDarwin [
78− AppKit CoreFoundation CoreGraphics CoreServices CoreText Foundation OpenGL
79− # Needed for CFURLResourceIsReachable symbols.
80− cf-private
81− ];
75+ ++ lib.optionals stdenv.isDarwin [ AppKit CoreGraphics CoreServices CoreText Foundation OpenGL ];
8276
8377 outputs = [ "out" "terminfo" ];
8478
pkgs/applications/misc/aminal/default.nix+1−7
@@ -2,7 +2,6 @@
22, Carbon
33, Cocoa
44, Kernel
5−, cf-private
65, fetchFromGitHub
76, lib
87, mesa_glu
@@ -25,12 +24,7 @@ buildGoPackage rec {
2524 xorg.libXinerama
2625 xorg.libXrandr
2726 xorg.libXxf86vm
28− ] ++ lib.optionals stdenv.isDarwin [
29− Carbon
30− Cocoa
31− Kernel
32− cf-private /* Needed for NSDefaultRunLoopMode */
33− ];
27+ ] ++ lib.optionals stdenv.isDarwin [ Carbon Cocoa Kernel ];
3428
3529 src = fetchFromGitHub {
3630 owner = "liamg";
pkgs/applications/misc/kitty/default.nix−2
@@ -9,7 +9,6 @@
99 IOKit,
1010 Kernel,
1111 OpenGL,
12− cf-private,
1312 libicns,
1413 libpng,
1514 librsvg,
@@ -40,7 +39,6 @@ buildPythonApplication rec {
4039 IOKit
4140 Kernel
4241 OpenGL
43− cf-private
4442 libpng
4543 python3
4644 zlib
pkgs/applications/misc/synergy/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, lib, fetchFromGitHub, fetchpatch, fetchurl, cmake, xlibsWrapper
2−, ApplicationServices, Carbon, Cocoa, CoreServices, ScreenSaver, cf-private
2+, ApplicationServices, Carbon, Cocoa, CoreServices, ScreenSaver
33, libX11, libXi, libXtst, libXrandr, xinput, curl, openssl, unzip }:
44
55stdenv.mkDerivation rec {
@@ -64,7 +64,7 @@ stdenv.mkDerivation rec {
6464 buildInputs = [
6565 cmake curl openssl
6666 ] ++ lib.optionals stdenv.isDarwin [
67− ApplicationServices Carbon Cocoa CoreServices ScreenSaver cf-private
67+ ApplicationServices Carbon Cocoa CoreServices ScreenSaver
6868 ] ++ lib.optionals stdenv.isLinux [ xlibsWrapper libX11 libXi libXtst libXrandr xinput ];
6969
7070 installPhase = ''
pkgs/applications/misc/zola/default.nix+3−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, rustPlatform, cmake, pkgconfig, openssl, CoreServices, cf-private }:
1+{ stdenv, fetchFromGitHub, rustPlatform, cmake, pkgconfig, openssl, CoreServices }:
22
33rustPlatform.buildRustPackage rec {
44 pname = "zola";
@@ -14,7 +14,8 @@ rustPlatform.buildRustPackage rec {
1414 cargoSha256 = "1brmlg6nqyls1v62z0fg0km150q9m7h71wy67lidcnw76icmqr24";
1515
1616 nativeBuildInputs = [ cmake pkgconfig ];
17− buildInputs = [ openssl ] ++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices cf-private ];
17+ buildInputs = [ openssl ]
18+ ++ stdenv.lib.optional stdenv.isDarwin CoreServices;
1819
1920 postInstall = ''
2021 install -D -m 444 completions/zola.bash \
pkgs/applications/science/misc/root/5.nix+2−2
@@ -1,6 +1,6 @@
11{ stdenv, fetchurl, fetchpatch, cmake, pcre, pkgconfig, python2
22, libX11, libXpm, libXft, libXext, libGLU_combined, zlib, libxml2, lzma, gsl_1
3−, Cocoa, OpenGL, cf-private, noSplash ? false }:
3+, Cocoa, OpenGL, noSplash ? false }:
44
55stdenv.mkDerivation rec {
66 name = "root-${version}";
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
1414 nativeBuildInputs = [ pkgconfig ];
1515 buildInputs = [ cmake pcre python2 zlib libxml2 lzma gsl_1 ]
1616 ++ stdenv.lib.optionals (!stdenv.isDarwin) [ libX11 libXpm libXft libXext libGLU_combined ]
17− ++ stdenv.lib.optionals (stdenv.isDarwin) [ Cocoa OpenGL cf-private ]
17+ ++ stdenv.lib.optionals (stdenv.isDarwin) [ Cocoa OpenGL ]
1818 ;
1919
2020 patches = [
pkgs/applications/science/misc/root/default.nix+2−2
@@ -1,6 +1,6 @@
11{ stdenv, fetchurl, cmake, pcre, pkgconfig, python2
22, libX11, libXpm, libXft, libXext, libGLU_combined, zlib, libxml2, lz4, lzma, gsl, xxHash
3−, Cocoa, OpenGL, cf-private, noSplash ? false }:
3+, Cocoa, OpenGL, noSplash ? false }:
44
55stdenv.mkDerivation rec {
66 name = "root-${version}";
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
1414 nativeBuildInputs = [ pkgconfig ];
1515 buildInputs = [ cmake pcre python2 zlib libxml2 lz4 lzma gsl xxHash ]
1616 ++ stdenv.lib.optionals (!stdenv.isDarwin) [ libX11 libXpm libXft libXext libGLU_combined ]
17− ++ stdenv.lib.optionals (stdenv.isDarwin) [ Cocoa OpenGL cf-private ]
17+ ++ stdenv.lib.optionals (stdenv.isDarwin) [ Cocoa OpenGL ]
1818 ;
1919
2020 patches = [
pkgs/development/compilers/llvm/4/lldb.nix+1−1
@@ -32,7 +32,7 @@ stdenv.mkDerivation {
3232
3333 nativeBuildInputs = [ cmake python which swig ];
3434 buildInputs = [ ncurses zlib libedit libxml2 llvm ]
35− ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc darwin.apple_sdk.frameworks.Foundation darwin.bootstrap_cmds darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa darwin.cf-private ];
35+ ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc darwin.apple_sdk.frameworks.Foundation darwin.bootstrap_cmds darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa ];
3636
3737 CXXFLAGS = "-fno-rtti";
3838 hardeningDisable = [ "format" ];
pkgs/development/compilers/llvm/5/lldb.nix+1−1
@@ -31,7 +31,7 @@ stdenv.mkDerivation {
3131
3232 nativeBuildInputs = [ cmake python which swig ];
3333 buildInputs = [ ncurses zlib libedit libxml2 llvm ]
34− ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc darwin.apple_sdk.frameworks.Foundation darwin.bootstrap_cmds darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa darwin.cf-private ];
34+ ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc darwin.apple_sdk.frameworks.Foundation darwin.bootstrap_cmds darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa ];
3535
3636 CXXFLAGS = "-fno-rtti";
3737 hardeningDisable = [ "format" ];
pkgs/development/compilers/llvm/6/lldb.nix+1−1
@@ -31,7 +31,7 @@ stdenv.mkDerivation {
3131
3232 nativeBuildInputs = [ cmake python which swig ];
3333 buildInputs = [ ncurses zlib libedit libxml2 llvm ]
34− ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc darwin.apple_sdk.frameworks.Foundation darwin.bootstrap_cmds darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa darwin.cf-private ];
34+ ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc darwin.apple_sdk.frameworks.Foundation darwin.bootstrap_cmds darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa ];
3535
3636 CXXFLAGS = "-fno-rtti";
3737 hardeningDisable = [ "format" ];
pkgs/development/compilers/llvm/7/lldb.nix+13−8
@@ -9,6 +9,7 @@
99, libxml2
1010, llvm
1111, clang-unwrapped
12+, perl
1213, python
1314, version
1415, darwin
@@ -19,6 +20,11 @@ stdenv.mkDerivation {
1920
2021 src = fetch "lldb" "0klsscg1sczc4nw2l53xggi969k361cng2sjjrfp3bv4g5x14s4v";
2122
23+ nativeBuildInputs = [ cmake perl python which swig ];
24+ buildInputs = [ ncurses zlib libedit libxml2 llvm ]
25+ ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc darwin.apple_sdk.frameworks.Foundation darwin.bootstrap_cmds darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa ];
26+
27+
2228 postPatch = ''
2329 # Fix up various paths that assume llvm and clang are installed in the same place
2430 sed -i 's,".*ClangConfig.cmake","${clang-unwrapped}/lib/cmake/clang/ClangConfig.cmake",' \
@@ -30,22 +36,21 @@ stdenv.mkDerivation {
3036 sed -i -e 's,message(SEND_ERROR "Cannot find debugserver on system."),,' \
3137 -e 's,string(STRIP ''${XCODE_DEV_DIR} XCODE_DEV_DIR),,' \
3238 tools/debugserver/source/CMakeLists.txt
39+
40+ # Fix /usr/bin references for sandboxed builds.
41+ patchShebangs scripts
3342 '';
3443
35− nativeBuildInputs = [ cmake python which swig ];
36− buildInputs = [ ncurses zlib libedit libxml2 llvm ]
37− ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc darwin.apple_sdk.frameworks.Foundation darwin.bootstrap_cmds darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa darwin.cf-private ];
44+ cmakeFlags = [
45+ "-DLLDB_CODESIGN_IDENTITY=" # codesigning makes nondeterministic
46+ "-DSKIP_DEBUGSERVER=ON"
47+ ];
3848
3949 CXXFLAGS = "-fno-rtti";
4050 hardeningDisable = [ "format" ];
4151
4252 NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-I${libxml2.dev}/include/libxml2";
4353
44− cmakeFlags = [
45− "-DLLDB_CODESIGN_IDENTITY=" # codesigning makes nondeterministic
46− "-DSKIP_DEBUGSERVER=ON"
47− ];
48−
4954 enableParallelBuilding = true;
5055
5156 postInstall = ''
pkgs/development/compilers/llvm/8/lldb.nix+1−1
@@ -31,7 +31,7 @@ stdenv.mkDerivation {
3131
3232 nativeBuildInputs = [ cmake python which swig ];
3333 buildInputs = [ ncurses zlib libedit libxml2 llvm ]
34− ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc darwin.apple_sdk.frameworks.Foundation darwin.bootstrap_cmds darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa darwin.cf-private ];
34+ ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc darwin.apple_sdk.frameworks.Foundation darwin.bootstrap_cmds darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa ];
3535
3636 CXXFLAGS = "-fno-rtti";
3737 hardeningDisable = [ "format" ];
pkgs/development/libraries/SDL/default.nix+1−6
@@ -6,7 +6,6 @@
66, libXext, libICE, libXrandr
77, pulseaudioSupport ? config.pulseaudio or stdenv.isLinux && !stdenv.hostPlatform.isAndroid, libpulseaudio
88, OpenGL, CoreAudio, CoreServices, AudioUnit, Kernel, Cocoa
9−, cf-private
109}:
1110
1211# NOTE: When editing this expression see if the same change applies to
@@ -41,11 +40,7 @@ stdenv.mkDerivation rec {
4140
4241 buildInputs = [ ]
4342 ++ optional (!stdenv.hostPlatform.isMinGW && alsaSupport) audiofile
44− ++ optionals stdenv.isDarwin [
45− AudioUnit CoreAudio CoreServices Kernel OpenGL
46− # Needed for NSDefaultRunLoopMode symbols.
47− cf-private
48− ];
43+ ++ optionals stdenv.isDarwin [ AudioUnit CoreAudio CoreServices Kernel OpenGL ];
4944
5045 configureFlags = [
5146 "--disable-oss"
pkgs/development/libraries/SDL2/default.nix+2−6
@@ -14,7 +14,7 @@
1414, pulseaudioSupport ? config.pulseaudio or stdenv.isLinux && !stdenv.hostPlatform.isAndroid
1515, libpulseaudio
1616, AudioUnit, Cocoa, CoreAudio, CoreServices, ForceFeedback, OpenGL
17−, audiofile, cf-private, libiconv
17+, audiofile, libiconv
1818}:
1919
2020# NOTE: When editing this expression see if the same change applies to
@@ -58,11 +58,7 @@ stdenv.mkDerivation rec {
5858 ++ dlopenBuildInputs
5959 ++ optional ibusSupport ibus
6060 ++ optional fcitxSupport fcitx
61− ++ optionals stdenv.isDarwin [
62− AudioUnit Cocoa CoreAudio CoreServices ForceFeedback OpenGL
63− # Needed for NSDefaultRunLoopMode symbols.
64− cf-private
65− ];
61+ ++ optionals stdenv.isDarwin [ AudioUnit Cocoa CoreAudio CoreServices ForceFeedback OpenGL ];
6662
6763 enableParallelBuilding = true;
6864
pkgs/development/libraries/ffmpeg-full/default.nix+2−10
@@ -139,7 +139,7 @@
139139 * Darwin frameworks
140140 */
141141, Cocoa, CoreAudio, CoreServices, AVFoundation, MediaToolbox
142−, VideoDecodeAcceleration, cf-private
142+, VideoDecodeAcceleration
143143}:
144144
145145/* Maintainer notes:
@@ -419,7 +419,7 @@ stdenv.mkDerivation rec {
419419 ++ optional nvenc nv-codec-headers
420420 ++ optionals stdenv.isDarwin [ Cocoa CoreServices CoreAudio AVFoundation
421421 MediaToolbox VideoDecodeAcceleration
422− libiconv cf-private /* For _OBJC_EHTYPE_$_NSException */ ];
422+ libiconv ];
423423
424424 buildFlags = [ "all" ]
425425 ++ optional qtFaststartProgram "tools/qt-faststart"; # Build qt-faststart executable
@@ -427,14 +427,6 @@ stdenv.mkDerivation rec {
427427 # Hacky framework patching technique borrowed from the phantomjs2 package
428428 postInstall = optionalString qtFaststartProgram ''
429429 cp -a tools/qt-faststart $out/bin/
430− '' + optionalString stdenv.isDarwin ''
431− FILES=($(ls $out/bin/*))
432− FILES+=($(ls $out/lib/*.dylib))
433− for f in ''${FILES[@]}; do
434− if [ ! -h "$f" ]; then
435− install_name_tool -change ${cf-private}/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation "$f"
436− fi
437− done
438430 '';
439431
440432 enableParallelBuilding = true;
pkgs/development/libraries/fltk/1.4.nix+14−18
@@ -1,11 +1,13 @@
11{ stdenv, fetchurl, pkgconfig, xlibsWrapper, xorgproto, libXi
22, freeglut, libGLU_combined, libjpeg, zlib, libXft, libpng
3−, libtiff, freetype, cf-private, Cocoa, AGL, GLUT
3+, libtiff, freetype, Cocoa, AGL, GLUT
44}:
55
66let
77 version = "1.4.x-r13121";
8−in stdenv.mkDerivation {
8+in
9+
10+stdenv.mkDerivation {
911 name = "fltk-${version}";
1012
1113 src = fetchurl {
@@ -13,19 +15,16 @@ in stdenv.mkDerivation {
1315 sha256 = "1v8wxvxcbk99i82x2v5fpqg5vj8n7g8a38g30ry7nzcjn5sf3r63";
1416 };
1517
16− preConfigure = "make clean";
17−
1818 patches = stdenv.lib.optionals stdenv.isDarwin [ ./nsosv.patch ];
1919
2020 nativeBuildInputs = [ pkgconfig ];
21+ buildInputs = [ libGLU_combined libjpeg zlib libpng libXft ]
22+ ++ stdenv.lib.optional stdenv.isDarwin [ AGL Cocoa GLUT ];
2123
22− buildInputs = [
23− libGLU_combined
24− libjpeg
25− zlib
26− libpng
27− libXft
28− ];
24+ propagatedBuildInputs = [ xorgproto ]
25+ ++ (if stdenv.isDarwin
26+ then [ freetype libtiff ]
27+ else [ xlibsWrapper libXi freeglut ]);
2928
3029 configureFlags = [
3130 "--enable-gl"
@@ -35,18 +34,15 @@ in stdenv.mkDerivation {
3534 "--enable-xft"
3635 ];
3736
38− propagatedBuildInputs = [ xorgproto ]
39− ++ (if stdenv.isDarwin
40− then [ Cocoa AGL GLUT freetype libtiff cf-private /* Needed for NSDefaultRunLoopMode */ ]
41− else [ xlibsWrapper libXi freeglut ]);
37+ preConfigure = "make clean";
4238
4339 enableParallelBuilding = true;
4440
45− meta = {
41+ meta = with stdenv.lib; {
4642 description = "A C++ cross-platform lightweight GUI library";
4743 homepage = http://www.fltk.org;
48− platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
49− license = stdenv.lib.licenses.gpl2;
44+ platforms = platforms.linux ++ platforms.darwin;
45+ license = licenses.gpl2;
5046 };
5147
5248}
pkgs/development/libraries/fltk/default.nix+13−18
@@ -1,11 +1,13 @@
11{ stdenv, fetchurl, pkgconfig, xlibsWrapper, xorgproto, libXi
22, freeglut, libGLU_combined, libjpeg, zlib, libXft, libpng
3−, libtiff, freetype, cf-private, Cocoa, AGL, GLUT
3+, libtiff, freetype, Cocoa, AGL, GLUT
44}:
55
66let
77 version = "1.3.5";
8−in stdenv.mkDerivation {
8+in
9+
10+stdenv.mkDerivation {
911 name = "fltk-${version}";
1012
1113 src = fetchurl {
@@ -16,14 +18,13 @@ in stdenv.mkDerivation {
1618 patches = stdenv.lib.optionals stdenv.isDarwin [ ./nsosv.patch ];
1719
1820 nativeBuildInputs = [ pkgconfig ];
21+ buildInputs = [ libGLU_combined libjpeg zlib libpng libXft ]
22+ ++ stdenv.lib.optional stdenv.isDarwin [ AGL Cocoa GLUT ];
1923
20− buildInputs = [
21− libGLU_combined
22− libjpeg
23− zlib
24− libpng
25− libXft
26− ];
24+ propagatedBuildInputs = [ xorgproto ]
25+ ++ (if stdenv.isDarwin
26+ then [ freetype libtiff ]
27+ else [ xlibsWrapper libXi freeglut ]);
2728
2829 configureFlags = [
2930 "--enable-gl"
@@ -33,18 +34,12 @@ in stdenv.mkDerivation {
3334 "--enable-xft"
3435 ];
3536
36− propagatedBuildInputs = [ xorgproto ]
37− ++ (if stdenv.isDarwin
38− then [ Cocoa AGL GLUT freetype libtiff cf-private /* Needed for NSDefaultRunLoopMode */ ]
39− else [ xlibsWrapper libXi freeglut ]);
40−
4137 enableParallelBuilding = true;
4238
43− meta = {
39+ meta = with stdenv.lib; {
4440 description = "A C++ cross-platform lightweight GUI library";
4541 homepage = http://www.fltk.org;
46− platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
47− license = stdenv.lib.licenses.gpl2;
42+ platforms = platforms.linux ++ platforms.darwin;
43+ license = licenses.gpl2;
4844 };
49−
5045}
pkgs/development/libraries/glfw/3.x.nix+3−8
@@ -1,5 +1,5 @@
11{ stdenv, lib, fetchFromGitHub, cmake, libGL, libXrandr, libXinerama, libXcursor, libX11
2−, cf-private, Cocoa, Kernel, fixDarwinDylibNames
2+, Cocoa, Kernel, fixDarwinDylibNames
33}:
44
55stdenv.mkDerivation rec {
@@ -19,13 +19,8 @@ stdenv.mkDerivation rec {
1919
2020 nativeBuildInputs = [ cmake ];
2121
22− buildInputs = [
23− libX11 libXrandr libXinerama libXcursor
24− ] ++ lib.optionals stdenv.isDarwin [
25− Cocoa Kernel fixDarwinDylibNames
26− # Needed for NSDefaultRunLoopMode symbols.
27− cf-private
28− ];
22+ buildInputs = [ libX11 libXrandr libXinerama libXcursor ]
23+ ++ lib.optionals stdenv.isDarwin [ Cocoa Kernel fixDarwinDylibNames ];
2924
3025 cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
3126
pkgs/development/libraries/glib/default.nix−3
@@ -81,9 +81,6 @@ stdenv.mkDerivation rec {
8181 utillinuxMinimal # for libmount
8282 ] ++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
8383 AppKit Carbon Cocoa CoreFoundation CoreServices Foundation
84− # Needed for CFURLCreateFromFSRef, etc. which have deen deprecated
85− # since 10.9 and are not part of swift-corelibs CoreFoundation.
86− darwin.cf-private
8784 ]);
8885
8986 nativeBuildInputs = [
pkgs/development/libraries/libui/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchgit, cmake, pkgconfig, gtk3, cf-private, Cocoa }:
1+{ stdenv, fetchgit, cmake, pkgconfig, gtk3, Cocoa }:
22
33let
44 shortName = "libui";
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
1616
1717 nativeBuildInputs = [ cmake pkgconfig ];
1818 buildInputs = stdenv.lib.optional stdenv.isLinux gtk3
19− ++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa cf-private /* For NSDefaultRunLoopMode */ ];
19+ ++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa ];
2020
2121 preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
2222 sed -i 's/set(CMAKE_OSX_DEPLOYMENT_TARGET "10.8")//' ./CMakeLists.txt
pkgs/development/libraries/opencv/3.x.nix+2−2
@@ -31,7 +31,7 @@
3131, enableDC1394 ? false, libdc1394
3232, enableDocs ? false, doxygen, graphviz-nox
3333
34−, cf-private, AVFoundation, Cocoa, VideoDecodeAcceleration, bzip2
34+, AVFoundation, Cocoa, VideoDecodeAcceleration, bzip2
3535}:
3636
3737let
@@ -206,7 +206,7 @@ stdenv.mkDerivation rec {
206206 ++ lib.optionals enableTesseract [ tesseract leptonica ]
207207 ++ lib.optional enableTbb tbb
208208 ++ lib.optional enableCuda cudatoolkit
209− ++ lib.optionals stdenv.isDarwin [ cf-private AVFoundation Cocoa VideoDecodeAcceleration bzip2 ]
209+ ++ lib.optionals stdenv.isDarwin [ bzip2 AVFoundation Cocoa VideoDecodeAcceleration ]
210210 ++ lib.optionals enableDocs [ doxygen graphviz-nox ];
211211
212212 propagatedBuildInputs = lib.optional enablePython pythonPackages.numpy;
pkgs/development/libraries/opencv/4.x.nix+2−2
@@ -31,7 +31,7 @@
3131, enableDC1394 ? false, libdc1394
3232, enableDocs ? false, doxygen, graphviz-nox
3333
34−, cf-private, AVFoundation, Cocoa, VideoDecodeAcceleration, bzip2
34+, AVFoundation, Cocoa, VideoDecodeAcceleration, bzip2
3535}:
3636
3737let
@@ -213,7 +213,7 @@ stdenv.mkDerivation rec {
213213 ++ lib.optionals enableTesseract [ tesseract leptonica ]
214214 ++ lib.optional enableTbb tbb
215215 ++ lib.optional enableCuda cudatoolkit
216− ++ lib.optionals stdenv.isDarwin [ cf-private AVFoundation Cocoa VideoDecodeAcceleration bzip2 ]
216+ ++ lib.optionals stdenv.isDarwin [ bzip2 AVFoundation Cocoa VideoDecodeAcceleration ]
217217 ++ lib.optionals enableDocs [ doxygen graphviz-nox ];
218218
219219 propagatedBuildInputs = lib.optional enablePython pythonPackages.numpy;
pkgs/development/libraries/opencv/default.nix+2−2
@@ -10,7 +10,7 @@
1010, enableFfmpeg ? false, ffmpeg
1111, enableGStreamer ? false, gst_all_1
1212, enableEigen ? true, eigen
13−, cf-private, Cocoa, QTKit
13+, Cocoa, QTKit
1414}:
1515
1616let
@@ -54,7 +54,7 @@ stdenv.mkDerivation rec {
5454 ++ lib.optional enableFfmpeg ffmpeg
5555 ++ lib.optionals enableGStreamer (with gst_all_1; [ gstreamer gst-plugins-base ])
5656 ++ lib.optional enableEigen eigen
57− ++ lib.optionals stdenv.isDarwin [ Cocoa QTKit cf-private /* For NSDefaultRunLoopMode */ ]
57+ ++ lib.optionals stdenv.isDarwin [ Cocoa QTKit ]
5858 ;
5959
6060 propagatedBuildInputs = lib.optional enablePython pythonPackages.numpy;
pkgs/development/libraries/pcl/default.nix+2−2
@@ -1,6 +1,6 @@
11{ stdenv, fetchFromGitHub, cmake
22, qhull, flann, boost, vtk, eigen, pkgconfig, qtbase
3−, libusb1, libpcap, libXt, libpng, Cocoa, AGL, cf-private, OpenGL
3+, libusb1, libpcap, libXt, libpng, Cocoa, AGL, OpenGL
44}:
55
66stdenv.mkDerivation rec {
@@ -18,8 +18,8 @@ stdenv.mkDerivation rec {
1818 nativeBuildInputs = [ pkgconfig cmake ];
1919 buildInputs = [ qhull flann boost eigen libusb1 libpcap
2020 libpng vtk qtbase libXt ]
21+ ++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa AGL ];
2122
22− ++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa AGL cf-private ];
2323 cmakeFlags = stdenv.lib.optionals stdenv.isDarwin [
2424 "-DOPENGL_INCLUDE_DIR=${OpenGL}/Library/Frameworks"
2525 ];
pkgs/development/libraries/qt-4.x/4.8/default.nix+2−2
@@ -14,7 +14,7 @@
1414, examples ? false
1515, demos ? false
1616# darwin support
17−, cf-private, libobjc, ApplicationServices, OpenGL, Cocoa, AGL, libcxx
17+, libobjc, ApplicationServices, OpenGL, Cocoa, AGL, libcxx
1818}:
1919
2020let
@@ -189,7 +189,7 @@ stdenv.mkDerivation rec {
189189 postgresql sqlite libjpeg libmng libtiff icu ]
190190 ++ lib.optionals (mysql != null) [ mysql.connector-c ]
191191 ++ lib.optionals gtkStyle [ gtk2 gdk_pixbuf ]
192− ++ lib.optionals stdenv.isDarwin [ cf-private ApplicationServices OpenGL Cocoa AGL libcxx libobjc ];
192+ ++ lib.optionals stdenv.isDarwin [ ApplicationServices OpenGL Cocoa AGL libcxx libobjc ];
193193
194194 nativeBuildInputs = [ perl pkgconfig which ];
195195
pkgs/development/libraries/qt-5/5.11/default.nix+3−7
@@ -20,7 +20,7 @@ top-level attribute to `top-level/all-packages.nix`.
2020 stdenv, fetchurl, fetchFromGitHub, makeSetupHook,
2121 bison, cups ? null, harfbuzz, libGL, perl,
2222 gstreamer, gst-plugins-base, gtk3, dconf,
23− cf-private, llvmPackages_5,
23+ llvmPackages_5,
2424
2525 # options
2626 developerBuild ? false,
@@ -92,17 +92,13 @@ let
9292 };
9393
9494 qtcharts = callPackage ../modules/qtcharts.nix {};
95− qtconnectivity = callPackage ../modules/qtconnectivity.nix {
96− inherit cf-private;
97− };
95+ qtconnectivity = callPackage ../modules/qtconnectivity.nix {};
9896 qtdeclarative = callPackage ../modules/qtdeclarative.nix {};
9997 qtdoc = callPackage ../modules/qtdoc.nix {};
10098 qtgraphicaleffects = callPackage ../modules/qtgraphicaleffects.nix {};
10199 qtimageformats = callPackage ../modules/qtimageformats.nix {};
102100 qtlocation = callPackage ../modules/qtlocation.nix { };
103− qtmacextras = callPackage ../modules/qtmacextras.nix {
104− inherit cf-private;
105− };
101+ qtmacextras = callPackage ../modules/qtmacextras.nix {};
106102 qtmultimedia = callPackage ../modules/qtmultimedia.nix {
107103 inherit gstreamer gst-plugins-base;
108104 };
pkgs/development/libraries/qt-5/5.12/default.nix+3−7
@@ -20,7 +20,7 @@ top-level attribute to `top-level/all-packages.nix`.
2020 stdenv, fetchurl, fetchFromGitHub, makeSetupHook,
2121 bison, cups ? null, harfbuzz, libGL, perl,
2222 gstreamer, gst-plugins-base, gtk3, dconf,
23− cf-private, llvmPackages_5,
23+ llvmPackages_5,
2424
2525 # options
2626 developerBuild ? false,
@@ -97,17 +97,13 @@ let
9797 };
9898
9999 qtcharts = callPackage ../modules/qtcharts.nix {};
100− qtconnectivity = callPackage ../modules/qtconnectivity.nix {
101− inherit cf-private;
102− };
100+ qtconnectivity = callPackage ../modules/qtconnectivity.nix {};
103101 qtdeclarative = callPackage ../modules/qtdeclarative.nix {};
104102 qtdoc = callPackage ../modules/qtdoc.nix {};
105103 qtgraphicaleffects = callPackage ../modules/qtgraphicaleffects.nix {};
106104 qtimageformats = callPackage ../modules/qtimageformats.nix {};
107105 qtlocation = callPackage ../modules/qtlocation.nix {};
108− qtmacextras = callPackage ../modules/qtmacextras.nix {
109− inherit cf-private;
110− };
106+ qtmacextras = callPackage ../modules/qtmacextras.nix {};
111107 qtmultimedia = callPackage ../modules/qtmultimedia.nix {
112108 inherit gstreamer gst-plugins-base;
113109 };
pkgs/development/libraries/qt-5/5.6/default.nix+1−4
@@ -29,7 +29,6 @@ existing packages here and modify it as necessary.
2929 stdenv, fetchurl, fetchpatch, makeSetupHook,
3030 bison, cups ? null, harfbuzz, libGL, perl,
3131 gstreamer, gst-plugins-base,
32− cf-private,
3332
3433 # options
3534 developerBuild ? false,
@@ -133,9 +132,7 @@ let
133132 /* qtactiveqt = not packaged */
134133 /* qtandroidextras = not packaged */
135134 /* qtcanvas3d = not packaged */
136− qtconnectivity = callPackage ../modules/qtconnectivity.nix {
137− inherit cf-private;
138− };
135+ qtconnectivity = callPackage ../modules/qtconnectivity.nix {};
139136 qtdeclarative = callPackage ../modules/qtdeclarative.nix {};
140137 qtdoc = callPackage ../modules/qtdoc.nix {};
141138 qtgraphicaleffects = callPackage ../modules/qtgraphicaleffects.nix {};
pkgs/development/libraries/qt-5/5.9/default.nix+2−7
@@ -20,7 +20,6 @@ top-level attribute to `top-level/all-packages.nix`.
2020 stdenv, fetchurl, fetchpatch, makeSetupHook,
2121 bison, cups ? null, harfbuzz, libGL, perl,
2222 gstreamer, gst-plugins-base, gtk3, dconf,
23− cf-private,
2423
2524 # options
2625 developerBuild ? false,
@@ -94,17 +93,13 @@ let
9493 };
9594
9695 qtcharts = callPackage ../modules/qtcharts.nix {};
97− qtconnectivity = callPackage ../modules/qtconnectivity.nix {
98− inherit cf-private;
99− };
96+ qtconnectivity = callPackage ../modules/qtconnectivity.nix {};
10097 qtdeclarative = callPackage ../modules/qtdeclarative.nix {};
10198 qtdoc = callPackage ../modules/qtdoc.nix {};
10299 qtgraphicaleffects = callPackage ../modules/qtgraphicaleffects.nix {};
103100 qtimageformats = callPackage ../modules/qtimageformats.nix {};
104101 qtlocation = callPackage ../modules/qtlocation.nix {};
105− qtmacextras = callPackage ../modules/qtmacextras.nix {
106− inherit cf-private;
107− };
102+ qtmacextras = callPackage ../modules/qtmacextras.nix {};
108103 qtmultimedia = callPackage ../modules/qtmultimedia.nix {
109104 inherit gstreamer gst-plugins-base;
110105 };
pkgs/development/libraries/qt-5/modules/qtbase.nix−2
@@ -78,8 +78,6 @@ stdenv.mkDerivation {
7878 [ libinput ]
7979 ++ lib.optional withGtk3 gtk3
8080 )
81− # Needed for OBJC_CLASS_$_NSDate symbols.
82− ++ lib.optional stdenv.isDarwin darwin.cf-private
8381 ++ lib.optional developerBuild gdb
8482 ++ lib.optional (cups != null) cups
8583 ++ lib.optional (mysql != null) mysql.connector-c
pkgs/development/libraries/qt-5/modules/qtconnectivity.nix+2−2
@@ -1,8 +1,8 @@
1−{ qtModule, stdenv, qtbase, qtdeclarative, bluez, cf-private }:
1+{ qtModule, stdenv, qtbase, qtdeclarative, bluez }:
22
33qtModule {
44 name = "qtconnectivity";
55 qtInputs = [ qtbase qtdeclarative ];
6− buildInputs = if stdenv.isDarwin then [ cf-private ] else [ bluez ];
6+ buildInputs = stdenv.lib.optional stdenv.isLinux bluez;
77 outputs = [ "out" "dev" "bin" ];
88}
pkgs/development/libraries/qt-5/modules/qtmacextras.nix+2−4
@@ -1,10 +1,8 @@
1−{ stdenv, qtModule, qtbase, cf-private }:
1+{ stdenv, qtModule, qtbase }:
22
33qtModule {
44 name = "qtmacextras";
5− qtInputs = [ qtbase ]
6− # Needed for _OBJC_CLASS_$_NSData symbols.
7− ++ stdenv.lib.optional stdenv.isDarwin cf-private;
5+ qtInputs = [ qtbase ];
86 meta = with stdenv.lib; {
97 maintainers = with maintainers; [ periklis ];
108 platforms = platforms.darwin;
pkgs/development/libraries/qt-5/modules/qtwebengine.nix−8
@@ -200,14 +200,6 @@ EOF
200200 (runCommand "MacOS_SDK_sandbox.h" {} ''
201201 install -Dm444 "${lib.getDev darwin.apple_sdk.sdk}"/include/sandbox.h "$out"/include/sandbox.h
202202 '')
203−
204− # For:
205− # _NSDefaultRunLoopMode
206− # _OBJC_CLASS_$_NSDate
207− # _OBJC_CLASS_$_NSDictionary
208− # _OBJC_CLASS_$_NSRunLoop
209− # _OBJC_CLASS_$_NSURL
210− darwin.cf-private
211203 ]);
212204
213205 __impureHostDeps = optional stdenv.isDarwin "/usr/lib/libsandbox.1.dylib";
pkgs/development/libraries/qt-5/modules/qtwebkit.nix+1−1
@@ -28,7 +28,7 @@ qtModule {
2828 ++ optional (stdenv.isDarwin && lib.versionAtLeast qtbase.version "5.9.0") qtmultimedia
2929 ++ optional usingAnnulenWebkitFork qtwebchannel;
3030 buildInputs = [ fontconfig libwebp libxml2 libxslt sqlite glib gst_all_1.gstreamer gst_all_1.gst-plugins-base ]
31− ++ optionals (stdenv.isDarwin) (with darwin; with apple_sdk.frameworks; [ cf-private ICU OpenGL ])
31+ ++ optionals (stdenv.isDarwin) (with darwin; with apple_sdk.frameworks; [ ICU OpenGL ])
3232 ++ optional usingAnnulenWebkitFork hyphen;
3333 nativeBuildInputs = [
3434 bison2 flex gdb gperf perl pkgconfig python2 ruby
pkgs/development/libraries/qt-5/modules/qtwebview.nix+2−8
@@ -1,20 +1,14 @@
11{ darwin, stdenv, qtModule, qtdeclarative, qtwebengine }:
22
33with stdenv.lib;
4−
4+
55qtModule {
66 name = "qtwebview";
77 qtInputs = [ qtdeclarative qtwebengine ];
88 buildInputs = optional (stdenv.isDarwin) [
99 darwin.apple_sdk.frameworks.CoreFoundation
1010 darwin.apple_sdk.frameworks.WebKit
11−
12− # For:
13− # _OBJC_CLASS_$_NSArray
14− # _OBJC_CLASS_$_NSDate
15− # _OBJC_CLASS_$_NSURL
16− darwin.cf-private
1711 ];
1812 outputs = [ "out" "dev" "bin" ];
1913 NIX_LDFLAGS = optionalString stdenv.isDarwin "-framework CoreFoundation -framework WebKit";
20−}
14+}
pkgs/development/libraries/sfml/default.nix+2−5
@@ -1,6 +1,6 @@
11{ stdenv, fetchzip, cmake, libX11, freetype, libjpeg, openal, flac, libvorbis
22, glew, libXrandr, libXrender, udev, xcbutilimage
3−, cf-private, IOKit, Foundation, AppKit, OpenAL
3+, IOKit, Foundation, AppKit, OpenAL
44}:
55
66let
@@ -19,10 +19,7 @@ stdenv.mkDerivation rec {
1919 buildInputs = [ freetype libjpeg openal flac libvorbis glew ]
2020 ++ stdenv.lib.optional stdenv.isLinux udev
2121 ++ stdenv.lib.optionals (!stdenv.isDarwin) [ libX11 libXrandr libXrender xcbutilimage ]
22− ++ stdenv.lib.optionals stdenv.isDarwin [ IOKit Foundation AppKit OpenAL
23− # Needed for _NSDefaultRunLoopMode, _OBJC_CLASS_$_NSArray, _OBJC_CLASS_$_NSDate
24− cf-private
25− ];
22+ ++ stdenv.lib.optionals stdenv.isDarwin [ IOKit Foundation AppKit OpenAL ];
2623
2724 cmakeFlags = [ "-DSFML_INSTALL_PKGCONFIG_FILES=yes"
2825 "-DSFML_MISC_INSTALL_PREFIX=share/SFML"
pkgs/development/libraries/tk/generic.nix+2−4
@@ -32,11 +32,9 @@ stdenv.mkDerivation {
3232 ++ stdenv.lib.optional enableAqua "--enable-aqua";
3333
3434 nativeBuildInputs = [ pkgconfig ];
35+ buildInputs = lib.optional enableAqua (with darwin.apple_sdk.frameworks; [ Cocoa ]);
3536
36− propagatedBuildInputs = [ tcl libXft ]
37− ++ lib.optional enableAqua (with darwin; with apple_sdk.frameworks; [
38− Cocoa cf-private
39− ]);
37+ propagatedBuildInputs = [ tcl libXft ];
4038
4139 doCheck = false; # fails. can't find itself
4240
pkgs/development/libraries/vtk/default.nix+8−8
@@ -2,7 +2,7 @@
22, qtLib ? null
33# Darwin support
44, Cocoa, CoreServices, DiskArbitration, IOKit, CFNetwork, Security, GLUT, OpenGL
5−, ApplicationServices, CoreText, IOSurface, cf-private, ImageIO, xpc, libobjc }:
5+, ApplicationServices, CoreText, IOSurface, ImageIO, xpc, libobjc }:
66
77with stdenv.lib;
88
@@ -20,13 +20,13 @@ stdenv.mkDerivation rec {
2020 sha256 = "1hrjxkcvs3ap0bdhk90vymz5pgvxmg7q6sz8ab3wsyddbshr1abq";
2121 };
2222
23− buildInputs =
24− if !stdenv.isDarwin
25− then [ cmake libGLU_combined libX11 xorgproto libXt ] ++ optional (qtLib != null) qtLib
26− else [ cmake qtLib xpc CoreServices DiskArbitration IOKit cf-private
27− CFNetwork Security ApplicationServices CoreText IOSurface ImageIO
28− OpenGL GLUT ];
29− propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ Cocoa libobjc ];
23+ buildInputs = [ cmake ]
24+ ++ optional (qtLib != null) qtLib
25+ ++ optionals stdenv.isLinux [ libGLU_combined libX11 xorgproto libXt ]
26+ ++ optionals stdenv.isDarwin [ xpc Cocoa CoreServices DiskArbitration IOKit
27+ CFNetwork Security ApplicationServices CoreText
28+ IOSurface ImageIO OpenGL GLUT ];
29+ propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ libobjc ];
3030
3131
3232 preBuild = ''
pkgs/development/libraries/wxwidgets/3.0/mac.nix+2−9
@@ -1,6 +1,6 @@
11{ stdenv, fetchzip, expat, libiconv, libjpeg, libpng, libtiff, zlib
22# darwin only attributes
3−, cf-private, derez, rez, setfile
3+, derez, rez, setfile
44, AGL, Cocoa, Kernel
55}:
66
@@ -16,15 +16,9 @@ stdenv.mkDerivation rec {
1616 buildInputs = [
1717 expat libiconv libjpeg libpng libtiff zlib
1818 derez rez setfile
19− Cocoa Kernel
20−
21− # Needed for CFURLGetFSRef, etc. which have deen deprecated
22− # since 10.9 and are not part of swift-corelibs CoreFoundation.
23− cf-private
19+ AGL Cocoa Kernel
2420 ];
2521
26− propagatedBuildInputs = [ AGL ];
27−
2822 postPatch = ''
2923 substituteInPlace configure --replace "-framework System" -lSystem
3024 '';
@@ -71,6 +65,5 @@ stdenv.mkDerivation rec {
7165 homepage = https://www.wxwidgets.org/;
7266 description = "a C++ library that lets developers create applications for Windows, macOS, Linux and other platforms with a single code base";
7367 longDescription = "wxWidgets gives you a single, easy-to-use API for writing GUI applications on multiple platforms that still utilize the native platform's controls and utilities. Link with the appropriate library for your platform and compiler, and your application will adopt the look and feel appropriate to that platform. On top of great GUI functionality, wxWidgets gives you: online help, network programming, streams, clipboard and drag and drop, multithreading, image loading and saving in a variety of popular formats, database support, HTML viewing and printing, and much more.";
74− broken = true;
7568 };
7669}
pkgs/development/python-modules/watchdog/default.nix+1−1
@@ -17,7 +17,7 @@ buildPythonPackage rec {
1717 };
1818
1919 buildInputs = stdenv.lib.optionals stdenv.isDarwin
20− [ pkgs.darwin.apple_sdk.frameworks.CoreServices pkgs.darwin.cf-private ];
20+ [ pkgs.darwin.apple_sdk.frameworks.CoreServices ];
2121 propagatedBuildInputs = [ argh pathtools pyyaml ];
2222
2323 doCheck = false;
pkgs/development/tools/analysis/flow/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, ocamlPackages, cf-private, CoreServices }:
1+{ stdenv, fetchFromGitHub, ocamlPackages, CoreServices }:
22
33stdenv.mkDerivation rec {
44 pname = "flow";
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
1717 '';
1818
1919 buildInputs = (with ocamlPackages; [ ocaml findlib ocamlbuild dtoa core_kernel sedlex ocaml_lwt lwt_log lwt_ppx ppx_deriving ppx_gen_rec ppx_tools_versioned visitors wtf8 ])
20− ++ stdenv.lib.optionals stdenv.isDarwin [ cf-private CoreServices ];
20+ ++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
2121
2222 meta = with stdenv.lib; {
2323 description = "A static type checker for JavaScript";
pkgs/development/tools/cargo-web/default.nix+2−6
@@ -1,5 +1,5 @@
11{ stdenv, fetchFromGitHub, openssl, perl, pkgconfig, rustPlatform
2−, CoreServices, Security, cf-private
2+, CoreServices, Security
33}:
44
55rustPlatform.buildRustPackage rec {
@@ -16,11 +16,7 @@ rustPlatform.buildRustPackage rec {
1616 cargoSha256 = "1f4sj260q4rlzbajwimya1yhh90hmmbhr47yfg9i8xcv5cg0cqjn";
1717
1818 nativeBuildInputs = [ openssl perl pkgconfig ];
19− buildInputs = stdenv.lib.optionals stdenv.isDarwin [
20− CoreServices Security
21− # Needed for CFURLResourceIsReachable symbols.
22− cf-private
23− ];
19+ buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices Security ];
2420
2521 meta = with stdenv.lib; {
2622 description = "A Cargo subcommand for the client-side Web";
pkgs/development/tools/watchman/default.nix+12−13
@@ -1,12 +1,11 @@
1−{ stdenv, lib, config, fetchFromGitHub, autoconf, automake, pcre,
2− libtool, pkgconfig, openssl,
3− confFile ? config.watchman.confFile or null,
4− withApple ? stdenv.isDarwin, CoreServices, CoreFoundation
1+{ stdenv, lib, config, fetchFromGitHub, autoconf, automake, pcre
2+, libtool, pkgconfig, openssl
3+, confFile ? config.watchman.confFile or null
4+, withApple ? stdenv.isDarwin, CoreServices
55}:
66
77stdenv.mkDerivation rec {
88 name = "watchman-${version}";
9−
109 version = "4.9.0";
1110
1211 src = fetchFromGitHub {
@@ -16,18 +15,18 @@ stdenv.mkDerivation rec {
1615 sha256 = "0fdaj5pmicm6j17d5q7px800m5rmam1a400x3hv1iiifnmhgnkal";
1716 };
1817
19− buildInputs = [ pcre openssl ]
20− ++ lib.optionals withApple [ CoreFoundation CoreServices ];
2118 nativeBuildInputs = [ autoconf automake pkgconfig libtool ];
19+ buildInputs = [ pcre openssl ]
20+ ++ lib.optionals withApple [ CoreServices ];
2221
2322 configureFlags = [
24− "--enable-lenient"
25− "--enable-conffile=${if confFile == null then "no" else confFile}"
26− "--with-pcre=yes"
23+ "--enable-lenient"
24+ "--enable-conffile=${if confFile == null then "no" else confFile}"
25+ "--with-pcre=yes"
2726
28− # For security considerations re: --disable-statedir, see:
29− # https://github.com/facebook/watchman/issues/178
30− "--disable-statedir"
27+ # For security considerations re: --disable-statedir, see:
28+ # https://github.com/facebook/watchman/issues/178
29+ "--disable-statedir"
3130 ];
3231
3332 prePatch = ''
pkgs/games/gargoyle/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchFromGitHub, substituteAll, jam, cctools, pkgconfig
2−, SDL, SDL_mixer, SDL_sound, cf-private, gtk2, libvorbis, smpeg }:
2+, SDL, SDL_mixer, SDL_sound, gtk2, libvorbis, smpeg }:
33
44let
55
@@ -32,7 +32,7 @@ stdenv.mkDerivation {
3232 nativeBuildInputs = [ jam pkgconfig ] ++ stdenv.lib.optional stdenv.isDarwin cctools;
3333
3434 buildInputs = [ SDL SDL_mixer SDL_sound gtk2 ]
35− ++ stdenv.lib.optionals stdenv.isDarwin [ cf-private smpeg libvorbis ];
35+ ++ stdenv.lib.optionals stdenv.isDarwin [ smpeg libvorbis ];
3636
3737 buildPhase = jamenv + "jam -j$NIX_BUILD_CORES";
3838
pkgs/misc/emulators/dolphin-emu/master.nix+2−2
@@ -5,7 +5,7 @@
55, soundtouch, sfml, vulkan-loader ? null, libpulseaudio ? null
66
77# - Inputs used for Darwin
8−, CoreBluetooth, cf-private, ForceFeedback, IOKit, OpenGL, libpng, hidapi }:
8+, CoreBluetooth, ForceFeedback, IOKit, OpenGL, libpng, hidapi }:
99
1010let
1111 desktopItem = makeDesktopItem {
@@ -41,7 +41,7 @@ in stdenv.mkDerivation rec {
4141 ] ++ stdenv.lib.optionals stdenv.isLinux [
4242 bluez udev libevdev alsaLib vulkan-loader
4343 ] ++ stdenv.lib.optionals stdenv.isDarwin [
44− CoreBluetooth cf-private OpenGL ForceFeedback IOKit
44+ CoreBluetooth OpenGL ForceFeedback IOKit
4545 ];
4646
4747 cmakeFlags = [
pkgs/misc/jackaudio/default.nix+2−2
@@ -3,7 +3,7 @@
33, bash, libsamplerate, libsndfile, readline, eigen, celt
44, wafHook
55# Darwin Dependencies
6−, aften, AudioUnit, CoreAudio, cf-private, libobjc, Accelerate
6+, aften, AudioUnit, CoreAudio, libobjc, Accelerate
77
88# Optional Dependencies
99, dbus ? null, libffado ? null, alsaLib ? null
@@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
4141 buildInputs = [ libsamplerate libsndfile readline eigen celt
4242 optDbus optPythonDBus optLibffado optAlsaLib optLibopus
4343 ] ++ optionals stdenv.isDarwin [
44− aften AudioUnit CoreAudio Accelerate cf-private libobjc
44+ aften AudioUnit CoreAudio Accelerate libobjc
4545 ];
4646
4747 prePatch = ''
pkgs/os-specific/darwin/cf-private/setup-hook.sh → pkgs/os-specific/darwin/apple-sdk/cf-setup-hook.shrenamed+3−6
@@ -1,12 +1,9 @@
1−prependSearchPath() {
2− NIX_CFLAGS_COMPILE="-F@out@/Library/Frameworks ${NIX_CFLAGS_COMPILE}"
3−}
4−
5−linkWithRealCF() {
1+linkSystemCoreFoundationFramework() {
2+ NIX_CFLAGS_COMPILE="-F@out@/Library/Frameworks $NIX_CFLAGS_COMPILE"
63 # gross! many symbols (such as _OBJC_CLASS_$_NSArray) are defined in system CF, but not
74 # in the opensource release
85 # if the package needs private headers, we assume they also want to link with system CF
96 NIX_LDFLAGS+=" /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation"
107}
118
12−preConfigureHooks+=(prependSearchPath linkWithRealCF)
9+preConfigureHooks+=(linkSystemCoreFoundationFramework)
pkgs/os-specific/darwin/apple-sdk/default.nix+6−2
@@ -156,7 +156,7 @@ in rec {
156156 __propagatedImpureHostDeps = [ "/usr/lib/libXplugin.1.dylib" ];
157157
158158 propagatedBuildInputs = with frameworks; [
159− OpenGL ApplicationServices Carbon IOKit pkgs.darwin.CF CoreGraphics CoreServices CoreText
159+ OpenGL ApplicationServices Carbon IOKit CoreGraphics CoreServices CoreText
160160 ];
161161
162162 installPhase = ''
@@ -187,6 +187,10 @@ in rec {
187187 ];
188188 });
189189
190+ CoreFoundation = stdenv.lib.overrideDerivation super.CoreFoundation (drv: {
191+ setupHook = ./cf-setup-hook.sh;
192+ });
193+
190194 CoreMedia = stdenv.lib.overrideDerivation super.CoreMedia (drv: {
191195 __propagatedImpureHostDeps = drv.__propagatedImpureHostDeps ++ [
192196 "/System/Library/Frameworks/CoreImage.framework"
@@ -222,7 +226,7 @@ in rec {
222226
223227 bareFrameworks = stdenv.lib.mapAttrs framework (import ./frameworks.nix {
224228 inherit frameworks libs;
225− inherit (pkgs.darwin) CF cf-private libobjc;
229+ inherit (pkgs.darwin) libobjc;
226230 });
227231
228232 frameworks = bareFrameworks // overrides bareFrameworks;
pkgs/os-specific/darwin/apple-sdk/frameworks.nix+40−39
@@ -2,81 +2,81 @@
22# Epic weird knot-tying happening here.
33# TODO: clean up the process for generating this and include it
44
5−{ frameworks, libs, CF, libobjc, cf-private }:
5+{ frameworks, libs, libobjc, }:
66
77with frameworks; with libs; {
88 AGL = [ Carbon OpenGL ];
99 AVFoundation = [ ApplicationServices CoreGraphics ];
1010 AVKit = [];
1111 Accounts = [];
12− AddressBook = [ Carbon CF ];
12+ AddressBook = [ Carbon ];
1313 AppKit = [ AudioToolbox AudioUnit Foundation QuartzCore ];
1414 AppKitScripting = [];
1515 AppleScriptKit = [];
1616 AppleScriptObjC = [];
17− AudioToolbox = [ CoreAudio CF CoreMIDI ];
18− AudioUnit = [ AudioToolbox Carbon CoreAudio CF ];
17+ AudioToolbox = [ CoreAudio CoreMIDI ];
18+ AudioUnit = [ AudioToolbox Carbon CoreAudio ];
1919 AudioVideoBridging = [ Foundation ];
2020 Automator = [];
21− CFNetwork = [ CF ];
21+ CFNetwork = [];
2222 CalendarStore = [];
2323 Cocoa = [ AppKit ];
2424 Collaboration = [];
2525 # Impure version of CoreFoundation, this should not be used unless another
2626 # framework includes headers that are not available in the pure version.
2727 CoreFoundation = [];
28− CoreAudio = [ CF IOKit ];
28+ CoreAudio = [ IOKit ];
2929 CoreAudioKit = [ AudioUnit ];
3030 CoreData = [];
31− CoreGraphics = [ Accelerate CF IOKit IOSurface SystemConfiguration ];
32− CoreImage = [ ];
31+ CoreGraphics = [ Accelerate IOKit IOSurface SystemConfiguration ];
32+ CoreImage = [];
3333 CoreLocation = [];
34− CoreMIDI = [ CF ];
34+ CoreMIDI = [];
3535 CoreMIDIServer = [];
36− CoreMedia = [ ApplicationServices AudioToolbox AudioUnit CoreAudio CF CoreGraphics CoreVideo ];
37− CoreMediaIO = [ CF CoreMedia ];
38− CoreText = [ CF CoreGraphics ];
39− CoreVideo = [ ApplicationServices CF CoreGraphics IOSurface OpenGL ];
36+ CoreMedia = [ ApplicationServices AudioToolbox AudioUnit CoreAudio CoreGraphics CoreVideo ];
37+ CoreMediaIO = [ CoreMedia ];
38+ CoreText = [ CoreGraphics ];
39+ CoreVideo = [ ApplicationServices CoreGraphics IOSurface OpenGL ];
4040 CoreWLAN = [ SecurityFoundation ];
4141 DVDPlayback = [];
42− DirectoryService = [ CF ];
43− DiscRecording = [ CF CoreServices IOKit ];
42+ DirectoryService = [];
43+ DiscRecording = [ CoreServices IOKit ];
4444 DiscRecordingUI = [];
45− DiskArbitration = [ CF IOKit ];
45+ DiskArbitration = [ IOKit ];
4646 EventKit = [];
4747 ExceptionHandling = [];
4848 FWAUserLib = [];
49− ForceFeedback = [ CF IOKit ];
50− Foundation = [ cf-private libobjc Security ApplicationServices SystemConfiguration ];
51− GLKit = [ CF ];
49+ ForceFeedback = [ IOKit ];
50+ Foundation = [ libobjc CoreFoundation Security ApplicationServices SystemConfiguration ];
51+ GLKit = [];
5252 GLUT = [ OpenGL ];
5353 GSS = [];
5454 GameController = [];
5555 GameKit = [ Foundation ];
5656 Hypervisor = [];
57− ICADevices = [ Carbon CF IOBluetooth ];
57+ ICADevices = [ Carbon IOBluetooth ];
5858 IMServicePlugIn = [];
5959 IOBluetoothUI = [ IOBluetooth ];
60− IOKit = [ CF ];
61− IOSurface = [ CF IOKit xpc ];
60+ IOKit = [];
61+ IOSurface = [ IOKit xpc ];
6262 ImageCaptureCore = [];
63− ImageIO = [ CF CoreGraphics ];
63+ ImageIO = [ CoreGraphics ];
6464 InputMethodKit = [ Carbon ];
6565 InstallerPlugins = [];
6666 InstantMessage = [];
6767 JavaFrameEmbedding = [];
68− JavaScriptCore = [ CF ];
68+ JavaScriptCore = [];
6969 Kerberos = [];
70− Kernel = [ CF IOKit ];
70+ Kernel = [ IOKit ];
7171 LDAP = [];
72− LatentSemanticMapping = [ Carbon CF ];
72+ LatentSemanticMapping = [ Carbon ];
7373 MapKit = [];
74− MediaAccessibility = [ CF CoreGraphics CoreText QuartzCore ];
75− MediaToolbox = [ AudioToolbox AudioUnit CF CoreMedia ];
74+ MediaAccessibility = [ CoreGraphics CoreText QuartzCore ];
75+ MediaToolbox = [ AudioToolbox AudioUnit CoreMedia ];
7676 Metal = [];
7777 MetalKit = [ ModelIO Metal ];
7878 ModelIO = [ ];
79− NetFS = [ CF ];
79+ NetFS = [];
8080 OSAKit = [ Carbon ];
8181 OpenAL = [];
8282 OpenCL = [ IOSurface OpenGL ];
@@ -85,37 +85,38 @@ with frameworks; with libs; {
8585 PreferencePanes = [];
8686 PubSub = [];
8787 QTKit = [ CoreMediaIO CoreMedia MediaToolbox QuickTime VideoToolbox ];
88− QuickLook = [ ApplicationServices CF ];
88+ QuickLook = [ ApplicationServices ];
8989 SceneKit = [];
9090 ScreenSaver = [];
9191 Scripting = [];
9292 ScriptingBridge = [];
93− Security = [ CF IOKit ];
93+ Security = [ IOKit ];
9494 SecurityFoundation = [];
9595 SecurityInterface = [ Security ];
96− ServiceManagement = [ CF Security ];
96+ ServiceManagement = [ Security ];
9797 Social = [];
9898 SpriteKit = [];
9999 StoreKit = [];
100100 SyncServices = [];
101− SystemConfiguration = [ CF Security ];
101+ SystemConfiguration = [ Security ];
102102 TWAIN = [ Carbon ];
103103 Tcl = [];
104− VideoDecodeAcceleration = [ CF CoreVideo ];
105− VideoToolbox = [ CF CoreMedia CoreVideo ];
104+ VideoDecodeAcceleration = [ CoreVideo ];
105+ VideoToolbox = [ CoreMedia CoreVideo ];
106106 WebKit = [ ApplicationServices Carbon JavaScriptCore OpenGL ];
107107
108108 # Umbrellas
109109 Accelerate = [ CoreWLAN IOBluetooth ];
110− ApplicationServices = [ CF CoreServices CoreText ImageIO ];
111− Carbon = [ ApplicationServices CF CoreServices Foundation IOKit Security QuartzCore ];
110+ ApplicationServices = [ CoreServices CoreText ImageIO ];
111+ Carbon = [ ApplicationServices CoreServices Foundation IOKit Security QuartzCore ];
112112 CoreBluetooth = [];
113− CoreServices = [ CFNetwork CoreAudio CoreData CF DiskArbitration Security NetFS OpenDirectory ServiceManagement ];
113+ # TODO: figure out which part of the umbrella depends on CoreFoundation and move it there.
114+ CoreServices = [ CFNetwork CoreFoundation CoreAudio CoreData DiskArbitration Security NetFS OpenDirectory ServiceManagement ];
114115 IOBluetooth = [ IOKit ];
115116 JavaVM = [];
116117 OpenDirectory = [];
117118 Quartz = [ QuickLook QTKit ];
118− QuartzCore = [ ApplicationServices CF CoreVideo OpenCL CoreImage Metal ];
119+ QuartzCore = [ ApplicationServices CoreVideo OpenCL CoreImage Metal ];
119120 QuickTime = [ ApplicationServices AudioUnit Carbon CoreAudio CoreServices OpenGL QuartzCore ];
120121
121122 vmnet = [];
pkgs/os-specific/darwin/cf-private/default.nixdeleted−58
@@ -1,58 +0,0 @@
1−{ CF, apple_sdk }:
2−
3−# cf-private is a bit weird, but boils down to CF with a weird setup-hook that
4−# makes a build link against the system CoreFoundation rather than our pure one.
5−# The reason it exists is that although our CF headers and build are pretty legit
6−# now, the underlying runtime is quite different. Apple's in a bit of flux around CF
7−# right now, and support three different backends for it: swift, "C", and an ObjC
8−# one. The former two can be built from public sources, but the ObjC one isn't really
9−# public. Unfortunately, it's also one of the core underpinnings of a lot of Mac-
10−# specific behavior, and defines a lot of symbols that some Objective C apps depend
11−# on, even though one might expect those symbols to derive from Foundation. So if
12−# your app relies on NSArray and several other basic ObjC types, it turns out that
13−# because of their magic "toll-free bridging" support, the symbols for those types
14−# live in CoreFoundation with an ObjC runtime. And because that isn't public, we have
15−# this hack in place to let people link properly anyway. Phew!
16−#
17−# This can be revisited if Apple ever decide to release the ObjC backend in a publicly
18−# buildable form.
19−#
20−# This doesn't really need to rebuild CF, but it's cheap, and adding a setup hook to
21−# an existing package was annoying. We need a buildEnv that knows how to add those
22−CF.overrideAttrs (orig: {
23− # PLEASE if you add things to this derivation, explain in reasonable detail why
24− # you're adding them and when the workaround can go away. This whole derivation is
25− # a workaround and if you don't explain what you're working around, it makes it
26− # very hard for people to clean it up later.
27−
28− name = "${orig.name}-private";
29− setupHook = ./setup-hook.sh;
30−
31− # TODO: consider re-adding https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/darwin/apple-source-releases/CF/cf-bridging.patch
32− # once the missing headers are in and see if that fixes all need for this.
33−
34− # This can go away once https://bugs.swift.org/browse/SR-8741 happens, which is
35− # looking more likely these days with the friendly people at Apple! We only need
36− # the header because the setup hook takes care of linking us against a version
37− # of the framework with the functionality built into it. The main user I know of
38− # this is watchman, who can almost certainly switch to the pure CF once the header
39− # and functionality is merged in.
40− installPhase = orig.installPhase + ''
41− basepath="Library/Frameworks/CoreFoundation.framework/Headers"
42−
43− # Append the include at top level or nobody will notice the header we're about to add
44− sed -i '/CFNotificationCenter.h/a #include <CoreFoundation/CFFileDescriptor.h>' \
45− "$out/$basepath/CoreFoundation.h"
46−
47− cp ${apple_sdk.frameworks.CoreFoundation}/$basepath/CFFileDescriptor.h $out/$basepath/CFFileDescriptor.h
48− '' +
49− # This one is less likely to go away, but I'll mention it anyway. The issue is at
50− # https://bugs.swift.org/browse/SR-8744, and the main user I know of is qtbase
51− ''
52− path="$basepath/CFURLEnumerator.h"
53− sed -i '/CFNotificationCenter.h/a #include <CoreFoundation/CFURLEnumerator.h>' \
54− "$out/$basepath/CoreFoundation.h"
55−
56− cp ${apple_sdk.frameworks.CoreFoundation}/$path $out/$path
57− '';
58−})
pkgs/os-specific/darwin/trash/default.nix+2−7
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, perl, cf-private, AppKit, Cocoa, ScriptingBridge }:
1+{ stdenv, fetchFromGitHub, perl, AppKit, Cocoa, ScriptingBridge }:
22
33stdenv.mkDerivation rec {
44 version = "0.9.2";
@@ -11,12 +11,7 @@ stdenv.mkDerivation rec {
1111 sha256 = "1d3rc03vgz32faj7qi18iiggxvxlqrj9lsk5jkpa9r1mcs5d89my";
1212 };
1313
14− buildInputs = [
15− perl
16− Cocoa AppKit ScriptingBridge
17− # Neded for OBJC_CLASS_$_NSMutableArray symbols.
18− cf-private
19− ];
14+ buildInputs = [ perl Cocoa AppKit ScriptingBridge ];
2015
2116 patches = [ ./trash.diff ];
2217
pkgs/servers/x11/quartz-wm/default.nix+1−3
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, xorg, pixman, pkgconfig, AppKit, Foundation, Xplugin, cf-private }:
1+{ stdenv, fetchurl, xorg, pixman, pkgconfig, AppKit, Foundation, Xplugin }:
22
33let version = "1.3.1";
44in stdenv.mkDerivation {
@@ -20,8 +20,6 @@ in stdenv.mkDerivation {
2020 pixman
2121 pkgconfig
2222 AppKit Xplugin Foundation
23− # Needed for CFNotificationCenterAddObserver symbols.
24− cf-private
2523 ];
2624 meta = with stdenv.lib; {
2725 license = licenses.apsl20;
pkgs/servers/x11/xorg/overrides.nix+2−6
@@ -5,7 +5,7 @@
55 libGL, spice-protocol, zlib, libGLU, dbus, libunwind, libdrm,
66 mesa, udev, bootstrap_cmds, bison, flex, clangStdenv, autoreconfHook,
77 mcpp, epoxy, openssl, pkgconfig, llvm_6,
8− cf-private, ApplicationServices, Carbon, Cocoa, Xplugin
8+ ApplicationServices, Carbon, Cocoa, Xplugin
99}:
1010
1111let
@@ -469,11 +469,7 @@ self: super:
469469 sha256 = "1j1i3n5xy1wawhk95kxqdc54h34kg7xp4nnramba2q8xqfr5k117";
470470 };
471471 nativeBuildInputs = [ pkgconfig ];
472− buildInputs = [ xorgproto libdrm openssl libX11 libXau libXaw libxcb xcbutil xcbutilwm xcbutilimage xcbutilkeysyms xcbutilrenderutil libXdmcp libXfixes libxkbfile libXmu libXpm libXrender libXres libXt ]
473− ++ stdenv.lib.optionals stdenv.isDarwin [
474− # Needed for NSDefaultRunLoopMode symbols.
475− cf-private
476− ];
472+ buildInputs = [ xorgproto libdrm openssl libX11 libXau libXaw libxcb xcbutil xcbutilwm xcbutilimage xcbutilkeysyms xcbutilrenderutil libXdmcp libXfixes libxkbfile libXmu libXpm libXrender libXres libXt ];
477473 postPatch = stdenv.lib.optionalString stdenv.isLinux "sed '1i#include <malloc.h>' -i include/os.h";
478474 meta.platforms = stdenv.lib.platforms.unix;
479475 } else throw "unsupported xorg abiCompat ${abiCompat} for ${attrs_passed.name}";
pkgs/servers/x11/xquartz/default.nix+1−6
@@ -1,7 +1,6 @@
11{ stdenv, buildEnv, makeFontsConf, gnused, writeScript, xorg, bashInteractive, xterm, makeWrapper, ruby
22, quartz-wm, fontconfig, xlsfonts, xfontsel
33, ttf_bitstream_vera, freefont_ttf, liberation_ttf
4−, cf-private
54, shell ? "${bashInteractive}/bin/bash"
65}:
76
@@ -98,11 +97,7 @@ let
9897in stdenv.mkDerivation {
9998 name = "xquartz-${stdenv.lib.getVersion xorg.xorgserver}";
10099
101− buildInputs = [
102− ruby makeWrapper
103− # Needed for NSDefaultRunLoopMode symbols.
104− cf-private
105− ];
100+ nativeBuildInputs = [ ruby makeWrapper ];
106101
107102 unpackPhase = "sourceRoot=.";
108103
pkgs/tools/misc/contacts/default.nix+2−7
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, xcbuildHook, cf-private, Foundation, AddressBook }:
1+{ stdenv, fetchurl, xcbuildHook, Foundation, AddressBook }:
22
33stdenv.mkDerivation rec {
44 version = "1.1a-3";
@@ -10,12 +10,7 @@ stdenv.mkDerivation rec {
1010 };
1111
1212 nativeBuildInputs = [ xcbuildHook ];
13−
14− buildInputs = [
15− Foundation AddressBook
16− # Needed for OBJC_CLASS_$_NSArray symbols.
17− cf-private
18− ];
13+ buildInputs = [ Foundation AddressBook ];
1914
2015 installPhase = ''
2116 mkdir -p $out/bin
pkgs/tools/misc/noti/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, buildGoPackage, fetchFromGitHub, cf-private, Cocoa }:
1+{ stdenv, buildGoPackage, fetchFromGitHub, Cocoa }:
22
33buildGoPackage rec {
44 name = "noti-${version}";
@@ -11,7 +11,7 @@ buildGoPackage rec {
1111 sha256 = "1chsqfqk0pnhx5k2nr4c16cpb8m6zv69l1jvv4v4903zgfzcm823";
1212 };
1313
14− buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Cocoa cf-private /* For OBJC_CLASS_$_NSDate */ ];
14+ buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Cocoa ];
1515 # TODO: Remove this when we update apple_sdk
1616 NIX_CFLAGS_COMPILE = stdenv.lib.optionals stdenv.isDarwin [ "-fno-objc-arc" ];
1717
pkgs/tools/misc/watchexec/default.nix+1−5
@@ -13,11 +13,7 @@ rustPlatform.buildRustPackage rec {
1313
1414 cargoSha256 = "1sqwplvpg0n9j0h9j94m7a6ylgqi4y4wyx489y09z9gm7aqgrsjc";
1515
16− buildInputs = stdenv.lib.optionals stdenv.isDarwin [
17− CoreServices
18− # This is needed to avoid an undefined symbol error "_CFURLResourceIsReachable"
19− darwin.cf-private
20− ];
16+ buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
2117
2218 meta = with stdenv.lib; {
2319 description = "Executes commands in response to file modifications";
pkgs/tools/security/keybase/default.nix+2−6
@@ -1,4 +1,4 @@
1−{ stdenv, lib, buildGoPackage, fetchurl, cf-private
1+{ stdenv, lib, buildGoPackage, fetchurl
22, AVFoundation, AudioToolbox, ImageIO, CoreMedia
33, Foundation, CoreGraphics, MediaToolbox
44}:
@@ -17,11 +17,7 @@ buildGoPackage rec {
1717 sha256 = "14c0876mxz3xa2k4d665kf8j6k3hc6qybkj0gr4pr9c9gs70cgjh";
1818 };
1919
20− buildInputs = lib.optionals stdenv.isDarwin [
21− AVFoundation AudioToolbox ImageIO CoreMedia Foundation CoreGraphics MediaToolbox
22− # Needed for OBJC_CLASS_$_NSData symbols.
23− cf-private
24− ];
20+ buildInputs = lib.optionals stdenv.isDarwin [ AVFoundation AudioToolbox ImageIO CoreMedia Foundation CoreGraphics MediaToolbox ];
2521 buildFlags = [ "-tags production" ];
2622
2723 meta = with stdenv.lib; {
pkgs/tools/security/pinentry/mac.nix+2−7
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, xcbuildHook, libiconv, Cocoa, ncurses, cf-private }:
1+{ stdenv, fetchFromGitHub, xcbuildHook, libiconv, ncurses, Cocoa }:
22
33stdenv.mkDerivation rec {
44 name = "pinentry-mac-0.9.4";
@@ -11,12 +11,7 @@ stdenv.mkDerivation rec {
1111 };
1212
1313 nativeBuildInputs = [ xcbuildHook ];
14−
15− buildInputs = [
16− libiconv Cocoa ncurses
17− # Needed for OBJC_CLASS_$_NSArray symbols.
18− cf-private
19− ];
14+ buildInputs = [ libiconv ncurses Cocoa ];
2015
2116 installPhase = ''
2217 mkdir -p $out/Applications
pkgs/tools/text/mdbook/default.nix+1−5
@@ -13,11 +13,7 @@ rustPlatform.buildRustPackage rec {
1313
1414 cargoSha256 = "1xpsc4qff2lrq15mz1gvmw6n5vl88sfwpjbsnp5ja5k1im156lam";
1515
16− buildInputs = stdenv.lib.optionals stdenv.isDarwin [
17− CoreServices
18− # This is needed to avoid an undefined symbol error for "_CFURLResourceIsReachable"
19− darwin.cf-private
20− ];
16+ buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
2117
2218 meta = with stdenv.lib; {
2319 description = "Create books from MarkDown";
pkgs/tools/video/atomicparsley/default.nix+2−6
@@ -1,4 +1,4 @@
1−{ stdenv, fetchhg, autoreconfHook, zlib, cf-private, Cocoa }:
1+{ stdenv, fetchhg, autoreconfHook, zlib, Cocoa }:
22
33stdenv.mkDerivation rec {
44 name = "atomicparsley-${version}";
@@ -12,11 +12,7 @@ stdenv.mkDerivation rec {
1212 nativeBuildInputs = [ autoreconfHook ];
1313
1414 buildInputs = [ zlib ]
15− ++ stdenv.lib.optionals stdenv.isDarwin [
16− Cocoa
17− # Needed for OBJC_CLASS_$_NSDictionary symbols.
18− cf-private
19− ];
15+ ++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa ];
2016
2117 configureFlags = stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
2218 # AC_FUNC_MALLOC is broken on cross builds.
pkgs/top-level/all-packages.nix+9−52
@@ -522,8 +522,7 @@ in
522522
523523 alacritty = callPackage ../applications/misc/alacritty {
524524 inherit (xorg) libXcursor libXxf86vm libXi;
525− inherit (darwin) cf-private;
526− inherit (darwin.apple_sdk.frameworks) AppKit CoreFoundation CoreGraphics CoreServices CoreText Foundation OpenGL;
525+ inherit (darwin.apple_sdk.frameworks) AppKit CoreGraphics CoreServices CoreText Foundation OpenGL;
527526 };
528527
529528 aldo = callPackage ../applications/radio/aldo { };
@@ -611,7 +610,6 @@ in
611610 };
612611
613612 atomicparsley = callPackage ../tools/video/atomicparsley {
614− inherit (darwin) cf-private;
615613 inherit (darwin.apple_sdk.frameworks) Cocoa;
616614 };
617615
@@ -1331,7 +1329,6 @@ in
13311329 codec2 = callPackage ../development/libraries/codec2 { };
13321330
13331331 contacts = callPackage ../tools/misc/contacts {
1334− inherit (darwin) cf-private;
13351332 inherit (darwin.apple_sdk.frameworks) Foundation AddressBook;
13361333 xcbuildHook = xcbuild6Hook;
13371334 };
@@ -1742,7 +1739,6 @@ in
17421739 noteshrink = callPackage ../tools/misc/noteshrink { };
17431740
17441741 noti = callPackage ../tools/misc/noti {
1745− inherit (darwin) cf-private;
17461742 inherit (darwin.apple_sdk.frameworks) Cocoa;
17471743 };
17481744
@@ -2556,7 +2552,6 @@ in
25562552 dolphinEmu = callPackage ../misc/emulators/dolphin-emu { };
25572553 dolphinEmuMaster = callPackage ../misc/emulators/dolphin-emu/master.nix {
25582554 inherit (darwin.apple_sdk.frameworks) CoreBluetooth ForceFeedback IOKit OpenGL;
2559− inherit (darwin) cf-private;
25602555 };
25612556
25622557 doomseeker = qt5.callPackage ../applications/misc/doomseeker { };
@@ -3975,7 +3970,6 @@ in
39753970 kexpand = callPackage ../development/tools/kexpand { };
39763971
39773972 keybase = callPackage ../tools/security/keybase {
3978− inherit (darwin) cf-private;
39793973 # Reasoning for the inherited apple_sdk.frameworks:
39803974 # 1. specific compiler errors about: AVFoundation, AudioToolbox, MediaToolbox
39813975 # 2. the rest are added from here: https://github.com/keybase/client/blob/68bb8c893c5214040d86ea36f2f86fbb7fac8d39/go/chat/attachments/preview_darwin.go#L7
@@ -5289,7 +5283,6 @@ in
52895283 };
52905284
52915285 pinentry_mac = callPackage ../tools/security/pinentry/mac.nix {
5292− inherit (darwin) cf-private;
52935286 inherit (darwin.apple_sdk.frameworks) Cocoa;
52945287 xcbuildHook = xcbuild6Hook;
52955288 };
@@ -6565,7 +6558,6 @@ in
65656558
65666559 watchman = callPackage ../development/tools/watchman {
65676560 inherit (darwin.apple_sdk.frameworks) CoreServices;
6568− CoreFoundation = darwin.cf-private;
65696561 };
65706562
65716563 wavefunctioncollapse = callPackage ../tools/graphics/wavefunctioncollapse {};
@@ -8040,7 +8032,6 @@ in
80408032
80418033 cargo-web = callPackage ../development/tools/cargo-web {
80428034 inherit (darwin.apple_sdk.frameworks) CoreServices Security;
8043− inherit (darwin) cf-private;
80448035 };
80458036
80468037 carnix = (callPackage ../build-support/rust/carnix.nix { }).carnix { };
@@ -9242,7 +9233,6 @@ in
92429233
92439234 flow = callPackage ../development/tools/analysis/flow {
92449235 inherit (darwin.apple_sdk.frameworks) CoreServices;
9245− inherit (darwin) cf-private;
92469236 };
92479237
92489238 foreman = callPackage ../tools/system/foreman { };
@@ -10399,7 +10389,6 @@ in
1039910389 vid-stab = if stdenv.isDarwin then null else vid-stab;
1040010390 x265 = if stdenv.isDarwin then null else x265;
1040110391 xavs = if stdenv.isDarwin then null else xavs;
10402− inherit (darwin) cf-private;
1040310392 inherit (darwin.apple_sdk.frameworks)
1040410393 Cocoa CoreServices CoreAudio AVFoundation MediaToolbox
1040510394 VideoDecodeAcceleration;
@@ -10427,11 +10416,9 @@ in
1042710416 flite = callPackage ../development/libraries/flite { };
1042810417
1042910418 fltk13 = callPackage ../development/libraries/fltk {
10430− inherit (darwin) cf-private;
1043110419 inherit (darwin.apple_sdk.frameworks) Cocoa AGL GLUT;
1043210420 };
1043310421 fltk14 = callPackage ../development/libraries/fltk/1.4.nix {
10434− inherit (darwin) cf-private;
1043510422 inherit (darwin.apple_sdk.frameworks) Cocoa AGL GLUT;
1043610423 };
1043710424 fltk = res.fltk13;
@@ -10594,7 +10581,6 @@ in
1059410581 glfw = glfw3;
1059510582 glfw2 = callPackage ../development/libraries/glfw/2.x.nix { };
1059610583 glfw3 = callPackage ../development/libraries/glfw/3.x.nix {
10597− inherit (darwin) cf-private;
1059810584 inherit (darwin.apple_sdk.frameworks) Cocoa Kernel;
1059910585 };
1060010586
@@ -12070,7 +12056,6 @@ in
1207012056 libuecc = callPackage ../development/libraries/libuecc { };
1207112057
1207212058 libui = callPackage ../development/libraries/libui {
12073− inherit (darwin) cf-private;
1207412059 inherit (darwin.apple_sdk.frameworks) Cocoa;
1207512060 };
1207612061
@@ -12531,12 +12516,10 @@ in
1253112516 openct = callPackage ../development/libraries/openct { };
1253212517
1253312518 opencv = callPackage ../development/libraries/opencv {
12534− inherit (darwin) cf-private;
1253512519 inherit (darwin.apple_sdk.frameworks) Cocoa QTKit;
1253612520 };
1253712521
1253812522 opencv3 = callPackage ../development/libraries/opencv/3.x.nix {
12539− inherit (darwin) cf-private;
1254012523 inherit (darwin.apple_sdk.frameworks) AVFoundation Cocoa VideoDecodeAcceleration;
1254112524 };
1254212525
@@ -12545,7 +12528,6 @@ in
1254512528 };
1254612529
1254712530 opencv4 = callPackage ../development/libraries/opencv/4.x.nix {
12548− inherit (darwin) cf-private;
1254912531 inherit (darwin.apple_sdk.frameworks) AVFoundation Cocoa VideoDecodeAcceleration;
1255012532 };
1255112533
@@ -12629,7 +12611,6 @@ in
1262912611 pcg_c = callPackage ../development/libraries/pcg-c { };
1263012612
1263112613 pcl = libsForQt5.callPackage ../development/libraries/pcl {
12632− inherit (darwin) cf-private;
1263312614 inherit (darwin.apple_sdk.frameworks) Cocoa AGL OpenGL;
1263412615 };
1263512616
@@ -12776,7 +12757,7 @@ in
1277612757 # XXX: mariadb doesn't built on fbsd as of nov 2015
1277712758 mysql = if (!stdenv.isFreeBSD) then mysql else null;
1277812759
12779− inherit (pkgs.darwin) cf-private libobjc;
12760+ inherit (pkgs.darwin) libobjc;
1278012761 inherit (pkgs.darwin.apple_sdk.frameworks) ApplicationServices OpenGL Cocoa AGL;
1278112762 };
1278212763
@@ -12802,7 +12783,6 @@ in
1280212783 harfbuzz = harfbuzzFull;
1280312784 inherit libGL;
1280412785 inherit perl;
12805− inherit (darwin) cf-private;
1280612786 inherit (gst_all_1) gstreamer gst-plugins-base;
1280712787 });
1280812788
@@ -12817,7 +12797,6 @@ in
1281712797 harfbuzz = harfbuzzFull;
1281812798 inherit libGL;
1281912799 inherit perl;
12820− inherit (darwin) cf-private;
1282112800 inherit (gst_all_1) gstreamer gst-plugins-base;
1282212801 inherit gtk3;
1282312802 inherit (gnome3) dconf;
@@ -12834,7 +12813,6 @@ in
1283412813 harfbuzz = harfbuzzFull;
1283512814 inherit libGL;
1283612815 inherit perl;
12837− inherit (darwin) cf-private;
1283812816 inherit gtk3;
1283912817 inherit (gnome3) dconf;
1284012818 inherit (gst_all_1) gstreamer gst-plugins-base;
@@ -12852,7 +12830,6 @@ in
1285212830 harfbuzz = harfbuzzFull;
1285312831 inherit libGL;
1285412832 inherit perl;
12855− inherit (darwin) cf-private;
1285612833 inherit gtk3;
1285712834 inherit (gnome3) dconf;
1285812835 inherit (gst_all_1) gstreamer gst-plugins-base;
@@ -13110,7 +13087,6 @@ in
1311013087 schroedinger = callPackage ../development/libraries/schroedinger { };
1311113088
1311213089 SDL = callPackage ../development/libraries/SDL ({
13113− inherit (darwin) cf-private;
1311413090 inherit (darwin.apple_sdk.frameworks) OpenGL CoreAudio CoreServices AudioUnit Kernel Cocoa;
1311513091 } // lib.optionalAttrs stdenv.hostPlatform.isAndroid {
1311613092 # libGLU doesn’t work with Android’s SDL
@@ -13134,7 +13110,6 @@ in
1313413110 SDL_ttf = callPackage ../development/libraries/SDL_ttf { };
1313513111
1313613112 SDL2 = callPackage ../development/libraries/SDL2 {
13137− inherit (darwin) cf-private;
1313813113 inherit (darwin.apple_sdk.frameworks) AudioUnit Cocoa CoreAudio CoreServices ForceFeedback OpenGL;
1313913114 };
1314013115
@@ -13186,7 +13161,6 @@ in
1318613161
1318713162 sfml = callPackage ../development/libraries/sfml {
1318813163 inherit (darwin.apple_sdk.frameworks) IOKit Foundation AppKit OpenAL;
13189− inherit (darwin) cf-private;
1319013164 };
1319113165 csfml = callPackage ../development/libraries/csfml { };
1319213166
@@ -13631,7 +13605,7 @@ in
1363113605 vte-ng = callPackage ../development/libraries/vte/ng.nix { };
1363213606
1363313607 vtk = callPackage ../development/libraries/vtk {
13634− inherit (darwin) cf-private libobjc;
13608+ inherit (darwin) libobjc;
1363513609 inherit (darwin.apple_sdk.libs) xpc;
1363613610 inherit (darwin.apple_sdk.frameworks) Cocoa CoreServices DiskArbitration
1363713611 IOKit CFNetwork Security ApplicationServices
@@ -13747,7 +13721,6 @@ in
1374713721 wxmac = callPackage ../development/libraries/wxwidgets/3.0/mac.nix {
1374813722 inherit (darwin.apple_sdk.frameworks) AGL Cocoa Kernel;
1374913723 inherit (darwin.stubs) setfile rez derez;
13750− inherit (darwin) cf-private;
1375113724 };
1375213725
1375313726 wxSVG = callPackage ../development/libraries/wxSVG {
@@ -14923,13 +14896,10 @@ in
1492314896
1492414897 xqilla = callPackage ../development/tools/xqilla { };
1492514898
14926− xquartz = callPackage ../servers/x11/xquartz {
14927− inherit (darwin) cf-private;
14928− };
14899+ xquartz = callPackage ../servers/x11/xquartz { };
1492914900
1493014901 quartz-wm = callPackage ../servers/x11/quartz-wm {
1493114902 stdenv = clangStdenv;
14932− inherit (darwin) cf-private;
1493314903 inherit (darwin.apple_sdk.frameworks) AppKit Foundation;
1493414904 inherit (darwin.apple_sdk.libs) Xplugin;
1493514905 };
@@ -14939,7 +14909,6 @@ in
1493914909 # have created a cycle.
1494014910 xorg = recurseIntoAttrs ((lib.callPackageWith __splicedPackages ../servers/x11/xorg {
1494114911 }).overrideScope' (lib.callPackageWith __splicedPackages ../servers/x11/xorg/overrides.nix {
14942− inherit (darwin) cf-private;
1494314912 inherit (darwin.apple_sdk.frameworks) ApplicationServices Carbon Cocoa;
1494414913 inherit (darwin.apple_sdk.libs) Xplugin;
1494514914 inherit (buildPackages.darwin) bootstrap_cmds;
@@ -17526,7 +17495,6 @@ in
1752617495 imagemagick = null;
1752717496 acl = null;
1752817497 gpm = null;
17529− inherit (darwin) cf-private;
1753017498 inherit (darwin.apple_sdk.frameworks) AppKit GSS ImageIO;
1753117499 };
1753217500
@@ -17545,7 +17513,6 @@ in
1754517513 imagemagick = null;
1754617514 acl = null;
1754717515 gpm = null;
17548− inherit (darwin) cf-private;
1754917516 inherit (darwin.apple_sdk.frameworks) AppKit GSS ImageIO;
1755017517 };
1755117518
@@ -17556,7 +17523,6 @@ in
1755617523 }));
1755717524
1755817525 emacsMacport = callPackage ../applications/editors/emacs/macport.nix {
17559− inherit (darwin) cf-private;
1756017526 inherit (darwin.apple_sdk.frameworks)
1756117527 AppKit Carbon Cocoa IOKit OSAKit Quartz QuartzCore WebKit
1756217528 ImageCaptureCore GSS ImageIO;
@@ -18153,7 +18119,6 @@ in
1815318119 gegl = gegl_0_4;
1815418120 lcms = lcms2;
1815518121 inherit (darwin.apple_sdk.frameworks) AppKit Cocoa;
18156− inherit (darwin) cf-private;
1815718122 };
1815818123
1815918124 gimp-with-plugins = callPackage ../applications/graphics/gimp/wrapper.nix {
@@ -18759,10 +18724,7 @@ in
1875918724 kipi-plugins = libsForQt5.callPackage ../applications/graphics/kipi-plugins { };
1876018725
1876118726 kitty = callPackage ../applications/misc/kitty {
18762− harfbuzz = if stdenv.isDarwin then harfbuzz.override {
18763− withCoreText = true;
18764− } else harfbuzz;
18765− inherit (darwin) cf-private;
18727+ harfbuzz = harfbuzz.override { withCoreText = stdenv.isDarwin; };
1876618728 inherit (darwin.apple_sdk.frameworks) Cocoa CoreGraphics Foundation IOKit Kernel OpenGL;
1876718729 };
1876818730
@@ -20371,7 +20333,7 @@ in
2037120333 syncthing-tray = callPackage ../applications/misc/syncthing-tray { };
2037220334
2037320335 synergy = callPackage ../applications/misc/synergy {
20374− inherit (darwin) cf-private;
20336+ stdenv = if stdenv.cc.isClang then llvmPackages_5.stdenv else stdenv;
2037520337 inherit (darwin.apple_sdk.frameworks) ApplicationServices Carbon Cocoa CoreServices ScreenSaver;
2037620338 };
2037720339
@@ -20445,7 +20407,6 @@ in
2044520407
2044620408 aminal = callPackage ../applications/misc/aminal {
2044720409 inherit (darwin.apple_sdk.frameworks) Carbon Cocoa Kernel;
20448− inherit (darwin) cf-private;
2044920410 };
2045020411
2045120412 termite-unwrapped = callPackage ../applications/misc/termite { };
@@ -20642,7 +20603,6 @@ in
2064220603 };
2064320604
2064420605 vim = callPackage ../applications/editors/vim {
20645− inherit (darwin) cf-private;
2064620606 inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
2064720607 };
2064820608
@@ -20654,7 +20614,7 @@ in
2065420614
2065520615 vim_configurable = vimUtils.makeCustomizable (callPackage ../applications/editors/vim/configurable.nix {
2065620616 inherit (darwin.apple_sdk.frameworks) CoreServices Cocoa Foundation CoreData;
20657− inherit (darwin) libobjc cf-private;
20617+ inherit (darwin) libobjc;
2065820618 gtk2 = if stdenv.isDarwin then gtk2-x11 else gtk2;
2065920619 gtk3 = if stdenv.isDarwin then gtk3-x11 else gtk3;
2066020620 });
@@ -21310,7 +21270,6 @@ in
2131021270
2131121271 zola = callPackage ../applications/misc/zola {
2131221272 inherit (darwin.apple_sdk.frameworks) CoreServices;
21313− inherit (darwin) cf-private;
2131421273 };
2131521274
2131621275 zoom-us = libsForQt59.callPackage ../applications/networking/instant-messengers/zoom-us { };
@@ -21582,7 +21541,7 @@ in
2158221541 garden-of-coloured-lights = callPackage ../games/garden-of-coloured-lights { allegro = allegro4; };
2158321542
2158421543 gargoyle = callPackage ../games/gargoyle {
21585− inherit (darwin) cctools cf-private;
21544+ inherit (darwin) cctools;
2158621545 };
2158721546
2158821547 gav = callPackage ../games/gav { };
@@ -23054,13 +23013,11 @@ in
2305423013 ns-3 = callPackage ../development/libraries/science/networking/ns3 { };
2305523014
2305623015 root = callPackage ../applications/science/misc/root {
23057− inherit (darwin) cf-private;
2305823016 inherit (darwin.apple_sdk.frameworks) Cocoa OpenGL;
2305923017 stdenv = if stdenv.cc.isClang then llvmPackages_5.stdenv else stdenv;
2306023018 };
2306123019
2306223020 root5 = lowPrio (callPackage ../applications/science/misc/root/5.nix {
23063− inherit (darwin) cf-private;
2306423021 inherit (darwin.apple_sdk.frameworks) Cocoa OpenGL;
2306523022 stdenv = if stdenv.cc.isClang then llvmPackages_5.stdenv else stdenv;
2306623023 });
@@ -23396,7 +23353,7 @@ in
2339623353 jack2 = callPackage ../misc/jackaudio {
2339723354 libopus = libopus.override { withCustomModes = true; };
2339823355 inherit (darwin.apple_sdk.frameworks) AudioUnit CoreAudio Accelerate;
23399− inherit (darwin) cf-private libobjc;
23356+ inherit (darwin) libobjc;
2340023357 };
2340123358 libjack2 = jack2.override { prefix = "lib"; };
2340223359 jack2Full = jack2; # TODO: move to aliases.nix
pkgs/top-level/darwin-packages.nix+6−3
@@ -10,6 +10,10 @@ in
1010
1111 callPackage = newScope (darwin.apple_sdk.frameworks // darwin);
1212
13+ stdenvNoCF = stdenv.override {
14+ extraBuildInputs = [];
15+ };
16+
1317 apple_sdk = callPackage ../os-specific/darwin/apple-sdk { };
1418
1519 binutils-unwrapped = callPackage ../os-specific/darwin/binutils {
@@ -32,9 +36,8 @@ in
3236 libcxxabi = pkgs.libcxxabi;
3337 };
3438
35− cf-private = callPackage ../os-specific/darwin/cf-private {
36− inherit (darwin) CF apple_sdk;
37− };
39+ # TODO: remove alias.
40+ cf-private = darwin.apple_sdk.frameworks.CoreFoundation;
3841
3942 DarwinTools = callPackage ../os-specific/darwin/DarwinTools { };
4043