darwin.apple_sdk: convert frameworks and libs to stubs

+259 -834
-9
pkgs/os-specific/darwin/apple-sdk/cf-setup-hook.sh
··· 1 - linkSystemCoreFoundationFramework() { 2 - NIX_CFLAGS_COMPILE="-F@out@/Library/Frameworks${NIX_CFLAGS_COMPILE:+ }${NIX_CFLAGS_COMPILE-}" 3 - # gross! many symbols (such as _OBJC_CLASS_$_NSArray) are defined in system CF, but not 4 - # in the opensource release 5 - # if the package needs private headers, we assume they also want to link with system CF 6 - NIX_LDFLAGS+=" @out@/Library/Frameworks/CoreFoundation.framework/CoreFoundation.tbd" 7 - } 8 - 9 - preConfigureHooks+=(linkSystemCoreFoundationFramework)
+257 -345
pkgs/os-specific/darwin/apple-sdk/default.nix
··· 1 - { stdenv, stdenvNoCC, fetchurl, cpio, pbzx, pkgs, lib, darwin-stubs, print-reexports }: 1 + # Compatibility stubs for packages that used the old SDK frameworks. 2 + # TODO(@reckenrode) Make these stubs warn after framework usage has been cleaned up in nixpkgs. 3 + { lib, callPackage }: 2 4 3 5 let 4 - # sadly needs to be exported because security_tool needs it 5 - sdk = stdenv.mkDerivation rec { 6 - pname = "MacOS_SDK"; 7 - version = "10.12"; 8 - 9 - # This URL comes from https://swscan.apple.com/content/catalogs/others/index-10.12.merged-1.sucatalog, which we found by: 10 - # 1. Google: site:swscan.apple.com and look for a name that seems appropriate for your version 11 - # 2. In the resulting file, search for a file called DevSDK ending in .pkg 12 - # 3. ??? 13 - # 4. Profit 14 - src = fetchurl { 15 - url = "http://swcdn.apple.com/content/downloads/33/36/041-90419-A_7JJ4H9ZHO2/xs88ob5wjz6riz7g6764twblnvksusg4ps/DevSDK_OSX1012.pkg"; 16 - sha256 = "13xq34sb7383b37hwy076gnhf96prpk1b4087p87xnwswxbrisih"; 17 - }; 18 - 19 - nativeBuildInputs = [ cpio pbzx ]; 20 - 21 - outputs = [ "out" "dev" "man" ]; 22 - 23 - unpackPhase = '' 24 - pbzx $src | cpio -idm 25 - ''; 26 - 27 - sourceRoot = "."; 28 - 29 - installPhase = '' 30 - mkdir -p $out 31 - 32 - cp -R System/Library $out 33 - cp -R usr/* $out 34 - 35 - pushd $out/lib 36 - cp ${darwin-stubs}/usr/lib/libcups*.tbd . 37 - ln -s libcups.2.tbd libcups.tbd 38 - ln -s libcupscgi.1.tbd libcupscgi.tbd 39 - ln -s libcupsimage.2.tbd libcupsimage.tbd 40 - ln -s libcupsmime.1.tbd libcupsmime.tbd 41 - ln -s libcupsppdc.1.tbd libcupsppdc.tbd 42 - popd 43 - ''; 44 - 45 - meta = with lib; { 46 - description = "Apple SDK ${version}"; 47 - maintainers = with maintainers; [ copumpkin ]; 48 - platforms = platforms.darwin; 49 - }; 50 - }; 51 - 52 - mkFrameworkSubs = name: deps: 53 - let 54 - deps' = deps // { "${name}" = placeholder "out"; }; 55 - substArgs = lib.concatMap (x: [ "--subst-var-by" x deps'."${x}" ]) (lib.attrNames deps'); 56 - in lib.escapeShellArgs substArgs; 57 - 58 - framework = name: deps: stdenv.mkDerivation { 59 - name = "apple-framework-${name}"; 60 - 61 - dontUnpack = true; 62 - 63 - # because we copy files from the system 64 - preferLocalBuild = true; 65 - 66 - disallowedRequisites = [ sdk ]; 67 - 68 - nativeBuildInputs = [ print-reexports ]; 69 - 70 - extraTBDFiles = []; 71 - 72 - installPhase = '' 73 - linkFramework() { 74 - local path="$1" 75 - local nested_path="$1" 76 - if [ "$path" == "JavaNativeFoundation.framework" ]; then 77 - local nested_path="JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework" 78 - fi 79 - if [ "$path" == "JavaRuntimeSupport.framework" ]; then 80 - local nested_path="JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework" 81 - fi 82 - local name="$(basename "$path" .framework)" 83 - local current="$(readlink "/System/Library/Frameworks/$nested_path/Versions/Current")" 84 - if [ -z "$current" ]; then 85 - current=A 86 - fi 87 - 88 - local dest="$out/Library/Frameworks/$path" 89 - 90 - mkdir -p "$dest/Versions/$current" 91 - pushd "$dest/Versions/$current" >/dev/null 92 - 93 - if [ -d "${sdk.out}/Library/Frameworks/$nested_path/Versions/$current/Headers" ]; then 94 - cp -R "${sdk.out}/Library/Frameworks/$nested_path/Versions/$current/Headers" . 95 - elif [ -d "${sdk.out}/Library/Frameworks/$name.framework/Versions/$current/Headers" ]; then 96 - current="$(readlink "/System/Library/Frameworks/$name.framework/Versions/Current")" 97 - cp -R "${sdk.out}/Library/Frameworks/$name.framework/Versions/$current/Headers" . 98 - fi 99 - 100 - local tbd_source=${darwin-stubs}/System/Library/Frameworks/$nested_path/Versions/$current 101 - if [ "${name}" != "Kernel" ]; then 102 - # The Kernel.framework has headers but no actual library component. 103 - cp -v $tbd_source/*.tbd . 104 - fi 105 - 106 - if [ -d "$tbd_source/Libraries" ]; then 107 - mkdir Libraries 108 - cp -v $tbd_source/Libraries/*.tbd Libraries/ 109 - fi 110 - 111 - ln -s -L "/System/Library/Frameworks/$nested_path/Versions/$current/Resources" 112 - 113 - if [ -f "/System/Library/Frameworks/$nested_path/module.map" ]; then 114 - ln -s "/System/Library/Frameworks/$nested_path/module.map" 115 - fi 116 - 117 - pushd "${sdk.out}/Library/Frameworks/$nested_path/Versions/$current" >/dev/null 118 - local children=$(echo Frameworks/*.framework) 119 - popd >/dev/null 120 - 121 - for child in $children; do 122 - childpath="$path/Versions/$current/$child" 123 - linkFramework "$childpath" 124 - done 125 - 126 - pushd ../.. >/dev/null 127 - ln -s "$current" Versions/Current 128 - ln -s Versions/Current/* . 129 - popd >/dev/null 130 - 131 - popd >/dev/null 132 - } 133 - 134 - linkFramework "${name}.framework" 135 - 136 - # linkFramework is recursive, the rest of the processing is not. 137 - 138 - local tbd_source=${darwin-stubs}/System/Library/Frameworks/${name}.framework 139 - for tbd in $extraTBDFiles; do 140 - local tbd_dest_dir=$out/Library/Frameworks/${name}.framework/$(dirname "$tbd") 141 - mkdir -p "$tbd_dest_dir" 142 - cp -v "$tbd_source/$tbd" "$tbd_dest_dir" 143 - done 144 - 145 - # Fix and check tbd re-export references 146 - find $out -name '*.tbd' | while read tbd; do 147 - echo "Fixing re-exports in $tbd" 148 - substituteInPlace "$tbd" ${mkFrameworkSubs name deps} 149 - 150 - echo "Checking re-exports in $tbd" 151 - print-reexports "$tbd" | while read target; do 152 - local expected="''${target%.dylib}.tbd" 153 - if ! [ -e "$expected" ]; then 154 - echo -e "Re-export missing:\n\t$target\n\t(expected $expected)" 155 - echo -e "While processing\n\t$tbd" 156 - exit 1 157 - else 158 - echo "Re-exported target $target ok" 159 - fi 160 - done 161 - done 162 - ''; 163 - 164 - propagatedBuildInputs = builtins.attrValues deps; 165 - 166 - meta = with lib; { 167 - description = "Apple SDK framework ${name}"; 168 - maintainers = with maintainers; [ copumpkin ]; 169 - platforms = platforms.darwin; 170 - }; 171 - }; 172 - 173 - tbdOnlyFramework = name: { private ? true }: stdenv.mkDerivation { 174 - name = "apple-framework-${name}"; 175 - dontUnpack = true; 176 - installPhase = '' 177 - mkdir -p $out/Library/Frameworks/ 178 - cp -r ${darwin-stubs}/System/Library/${lib.optionalString private "Private"}Frameworks/${name}.framework \ 179 - $out/Library/Frameworks 180 - 181 - cd $out/Library/Frameworks/${name}.framework 182 - 183 - versions=(./Versions/*) 184 - if [ "''${#versions[@]}" != 1 ]; then 185 - echo "Unable to determine current version of framework ${name}" 186 - exit 1 187 - fi 188 - current=$(basename ''${versions[0]}) 189 - 190 - chmod u+w -R . 191 - ln -s "$current" Versions/Current 192 - ln -s Versions/Current/* . 193 - 194 - # NOTE there's no re-export checking here, this is probably wrong 195 - ''; 196 - }; 197 - in rec { 198 - libs = { 199 - xpc = stdenv.mkDerivation { 200 - name = "apple-lib-xpc"; 201 - dontUnpack = true; 202 - 203 - installPhase = '' 204 - mkdir -p $out/include 205 - pushd $out/include >/dev/null 206 - cp -r "${lib.getDev sdk}/include/xpc" $out/include/xpc 207 - cp "${lib.getDev sdk}/include/launch.h" $out/include/launch.h 208 - popd >/dev/null 209 - ''; 210 - }; 211 - 212 - Xplugin = stdenv.mkDerivation { 213 - name = "apple-lib-Xplugin"; 214 - dontUnpack = true; 215 - 216 - # Not enough 217 - __propagatedImpureHostDeps = [ "/usr/lib/libXplugin.1.dylib" ]; 218 - 219 - propagatedBuildInputs = with frameworks; [ 220 - OpenGL ApplicationServices Carbon IOKit CoreGraphics CoreServices CoreText 221 - ]; 222 - 223 - installPhase = '' 224 - mkdir -p $out/include $out/lib 225 - ln -s "${lib.getDev sdk}/include/Xplugin.h" $out/include/Xplugin.h 226 - cp ${darwin-stubs}/usr/lib/libXplugin.1.tbd $out/lib 227 - ln -s libXplugin.1.tbd $out/lib/libXplugin.tbd 228 - ''; 229 - }; 230 - 231 - utmp = stdenv.mkDerivation { 232 - name = "apple-lib-utmp"; 233 - dontUnpack = true; 234 - 235 - installPhase = '' 236 - mkdir -p $out/include 237 - pushd $out/include >/dev/null 238 - ln -s "${lib.getDev sdk}/include/utmp.h" 239 - ln -s "${lib.getDev sdk}/include/utmpx.h" 240 - popd >/dev/null 241 - ''; 242 - }; 243 - 244 - sandbox = stdenv.mkDerivation { 245 - name = "apple-lib-sandbox"; 246 - dontUnpack = true; 247 - 248 - installPhase = '' 249 - mkdir -p $out/include $out/lib 250 - ln -s "${lib.getDev sdk}/include/sandbox.h" $out/include/sandbox.h 251 - cp "${darwin-stubs}/usr/lib/libsandbox.1.tbd" $out/lib 252 - ln -s libsandbox.1.tbd $out/lib/libsandbox.tbd 253 - ''; 254 - }; 255 - 256 - simd = stdenvNoCC.mkDerivation { 257 - name = "apple-lib-simd"; 258 - 259 - preferLocalBuild = true; 260 - allowSubstitutes = false; 261 - 262 - buildCommand = "echo 'simd library not available in the 10.12 SDK'; exit 1"; 263 - }; 264 - }; 265 - 266 - overrides = super: { 267 - AppKit = lib.overrideDerivation super.AppKit (drv: { 268 - __propagatedImpureHostDeps = drv.__propagatedImpureHostDeps or [] ++ [ 269 - "/System/Library/PrivateFrameworks/" 270 - ]; 271 - }); 272 - 273 - Carbon = lib.overrideDerivation super.Carbon (drv: { 274 - extraTBDFiles = [ "Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering.tbd" ]; 275 - }); 276 - 277 - CoreFoundation = lib.overrideDerivation super.CoreFoundation (drv: { 278 - setupHook = ./cf-setup-hook.sh; 279 - }); 280 - 281 - CoreMedia = lib.overrideDerivation super.CoreMedia (drv: { 282 - __propagatedImpureHostDeps = drv.__propagatedImpureHostDeps or [] ++ [ 283 - "/System/Library/Frameworks/CoreImage.framework" 284 - ]; 285 - }); 286 - 287 - CoreMIDI = lib.overrideDerivation super.CoreMIDI (drv: { 288 - __propagatedImpureHostDeps = drv.__propagatedImpureHostDeps or [] ++ [ 289 - "/System/Library/PrivateFrameworks/" 290 - ]; 291 - setupHook = ./private-frameworks-setup-hook.sh; 292 - }); 293 - 294 - IMServicePlugIn = lib.overrideDerivation super.IMServicePlugIn (drv: { 295 - extraTBDFiles = [ "Versions/A/Frameworks/IMServicePlugInSupport.framework/Versions/A/IMServicePlugInSupport.tbd" ]; 296 - }); 297 - 298 - Security = lib.overrideDerivation super.Security (drv: { 299 - setupHook = ./security-setup-hook.sh; 300 - }); 301 - 302 - QuartzCore = lib.overrideDerivation super.QuartzCore (drv: { 303 - installPhase = drv.installPhase + '' 304 - f="$out/Library/Frameworks/QuartzCore.framework/Headers/CoreImage.h" 305 - substituteInPlace "$f" \ 306 - --replace "QuartzCore/../Frameworks/CoreImage.framework/Headers" "CoreImage" 307 - ''; 308 - }); 309 - 310 - MetalKit = lib.overrideDerivation super.MetalKit (drv: { 311 - installPhase = drv.installPhase + '' 312 - mkdir -p $out/include/simd 313 - cp ${lib.getDev sdk}/include/simd/*.h $out/include/simd/ 314 - ''; 315 - }); 316 - 317 - System = lib.overrideDerivation super.System (drv: { 318 - installPhase = '' 319 - mkdir -p $out/Library/Frameworks/System.framework/Versions/B 320 - ln -s $out/Library/Frameworks/System.framework/Versions/{B,Current} 321 - ln -s ${pkgs.darwin.Libsystem}/lib/libSystem.B.tbd $out/Library/Frameworks/System.framework/Versions/B/System.tbd 322 - ln -s $out/Library/Frameworks/System.framework/{Versions/Current/,}System.tbd 323 - ''; 324 - }); 6 + mkStub = callPackage ./mk-stub.nix { } "10.12"; 325 7 326 - WebKit = lib.overrideDerivation super.WebKit (drv: { 327 - extraTBDFiles = [ 328 - "Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore.tbd" 329 - "Versions/A/Frameworks/WebKitLegacy.framework/Versions/A/WebKitLegacy.tbd" 330 - ]; 331 - }); 332 - } // lib.genAttrs [ 8 + frameworks = lib.genAttrs [ 9 + "AGL" 10 + "AVFoundation" 11 + "AVKit" 12 + "Accelerate" 13 + "Accounts" 14 + "AddressBook" 15 + "AppKit" 16 + "AppKitScripting" 17 + "AppleScriptKit" 18 + "AppleScriptObjC" 19 + "ApplicationServices" 20 + "AudioToolbox" 21 + "AudioUnit" 22 + "AudioVideoBridging" 23 + "Automator" 24 + "CFNetwork" 25 + "CalendarStore" 26 + "Carbon" 27 + "Cocoa" 28 + "Collaboration" 333 29 "ContactsPersistence" 30 + "CoreAudio" 31 + "CoreAudioKit" 32 + "CoreBluetooth" 33 + "CoreData" 34 + "CoreFoundation" 35 + "CoreGraphics" 36 + "CoreImage" 37 + "CoreLocation" 38 + "CoreMIDI" 39 + "CoreMIDIServer" 40 + "CoreMedia" 41 + "CoreMediaIO" 42 + "CoreServices" 334 43 "CoreSymbolication" 44 + "CoreText" 45 + "CoreVideo" 46 + "CoreWLAN" 47 + "DVDPlayback" 335 48 "DebugSymbols" 49 + "DirectoryService" 50 + "DiscRecording" 51 + "DiscRecordingUI" 52 + "DiskArbitration" 336 53 "DisplayServices" 54 + "EventKit" 55 + "ExceptionHandling" 56 + "FWAUserLib" 57 + "ForceFeedback" 58 + "Foundation" 59 + "GLKit" 60 + "GLUT" 61 + "GSS" 337 62 "GameCenter" 63 + "GameController" 64 + "GameKit" 65 + "GameplayKit" 66 + "Hypervisor" 67 + "ICADevices" 68 + "IMServicePlugIn" 69 + "IOBluetooth" 70 + "IOBluetoothUI" 71 + "IOKit" 72 + "IOSurface" 73 + "ImageCaptureCore" 74 + "ImageIO" 75 + "InputMethodKit" 76 + "InstallerPlugins" 77 + "InstantMessage" 78 + "JavaFrameEmbedding" 79 + "JavaNativeFoundation" 80 + "JavaRuntimeSupport" 81 + "JavaScriptCore" 82 + "JavaVM" 83 + "Kerberos" 84 + "Kernel" 85 + "LDAP" 86 + "LatentSemanticMapping" 87 + "LocalAuthentication" 88 + "MapKit" 89 + "MediaAccessibility" 90 + "MediaPlayer" 91 + "MediaToolbox" 92 + "Metal" 93 + "MetalKit" 94 + "ModelIO" 338 95 "MultitouchSupport" 96 + "NetFS" 97 + "OSAKit" 98 + "OpenAL" 99 + "OpenCL" 100 + "OpenDirectory" 101 + "OpenGL" 102 + "PCSC" 103 + "PreferencePanes" 104 + "PubSub" 105 + "QTKit" 106 + "Quartz" 107 + "QuartzCore" 108 + "QuickLook" 109 + "QuickTime" 110 + "SceneKit" 111 + "ScreenSaver" 112 + "Scripting" 113 + "ScriptingBridge" 114 + "Security" 115 + "SecurityFoundation" 116 + "SecurityInterface" 117 + "ServiceManagement" 339 118 "SkyLight" 119 + "Social" 120 + "SpriteKit" 121 + "StoreKit" 122 + "SyncServices" 123 + "System" 124 + "SystemConfiguration" 125 + "TWAIN" 126 + "Tcl" 340 127 "UIFoundation" 341 - ] 342 - (x: tbdOnlyFramework x {}); 128 + "VideoDecodeAcceleration" 129 + "VideoToolbox" 130 + "WebKit" 131 + "vmnet" 132 + ] mkStub; 343 133 344 - bareFrameworks = lib.mapAttrs framework (import ./frameworks.nix { 345 - inherit frameworks libs; 346 - inherit (pkgs.darwin) libobjc; 347 - }); 348 - 349 - frameworks = bareFrameworks // overrides bareFrameworks; 350 - 351 - inherit darwin-stubs; 352 - 353 - objc4 = pkgs.darwin.libobjc; 354 - 355 - sdkRoot = pkgs.callPackage ./sdkRoot.nix { sdkVersion = "10.12.4"; }; 134 + bareFrameworks = lib.genAttrs [ 135 + "AGL" 136 + "AVFoundation" 137 + "AVKit" 138 + "Accelerate" 139 + "Accounts" 140 + "AddressBook" 141 + "AppKit" 142 + "AppKitScripting" 143 + "AppleScriptKit" 144 + "AppleScriptObjC" 145 + "ApplicationServices" 146 + "AudioToolbox" 147 + "AudioUnit" 148 + "AudioVideoBridging" 149 + "Automator" 150 + "CFNetwork" 151 + "CalendarStore" 152 + "Carbon" 153 + "Cocoa" 154 + "Collaboration" 155 + "CoreAudio" 156 + "CoreAudioKit" 157 + "CoreBluetooth" 158 + "CoreData" 159 + "CoreFoundation" 160 + "CoreGraphics" 161 + "CoreImage" 162 + "CoreLocation" 163 + "CoreMIDI" 164 + "CoreMIDIServer" 165 + "CoreMedia" 166 + "CoreMediaIO" 167 + "CoreServices" 168 + "CoreText" 169 + "CoreVideo" 170 + "CoreWLAN" 171 + "DVDPlayback" 172 + "DirectoryService" 173 + "DiscRecording" 174 + "DiscRecordingUI" 175 + "DiskArbitration" 176 + "EventKit" 177 + "ExceptionHandling" 178 + "FWAUserLib" 179 + "ForceFeedback" 180 + "Foundation" 181 + "GLKit" 182 + "GLUT" 183 + "GSS" 184 + "GameCenter" 185 + "GameController" 186 + "GameKit" 187 + "GameplayKit" 188 + "Hypervisor" 189 + "ICADevices" 190 + "IMServicePlugIn" 191 + "IOBluetooth" 192 + "IOBluetoothUI" 193 + "IOKit" 194 + "IOSurface" 195 + "ImageCaptureCore" 196 + "ImageIO" 197 + "InputMethodKit" 198 + "InstallerPlugins" 199 + "InstantMessage" 200 + "JavaFrameEmbedding" 201 + "JavaNativeFoundation" 202 + "JavaRuntimeSupport" 203 + "JavaScriptCore" 204 + "JavaVM" 205 + "Kerberos" 206 + "Kernel" 207 + "LDAP" 208 + "LatentSemanticMapping" 209 + "LocalAuthentication" 210 + "MapKit" 211 + "MediaAccessibility" 212 + "MediaPlayer" 213 + "MediaToolbox" 214 + "Metal" 215 + "MetalKit" 216 + "ModelIO" 217 + "NetFS" 218 + "OSAKit" 219 + "OpenAL" 220 + "OpenCL" 221 + "OpenDirectory" 222 + "OpenGL" 223 + "PCSC" 224 + "PreferencePanes" 225 + "PubSub" 226 + "QTKit" 227 + "Quartz" 228 + "QuartzCore" 229 + "QuickLook" 230 + "QuickTime" 231 + "SceneKit" 232 + "ScreenSaver" 233 + "Scripting" 234 + "ScriptingBridge" 235 + "Security" 236 + "SecurityFoundation" 237 + "SecurityInterface" 238 + "ServiceManagement" 239 + "Social" 240 + "SpriteKit" 241 + "StoreKit" 242 + "SyncServices" 243 + "System" 244 + "SystemConfiguration" 245 + "TWAIN" 246 + "Tcl" 247 + "VideoDecodeAcceleration" 248 + "VideoToolbox" 249 + "WebKit" 250 + "vmnet" 251 + ] mkStub; 252 + in 253 + { 254 + inherit bareFrameworks frameworks; 356 255 357 - inherit (pkgs.darwin) Libsystem; 256 + libs = lib.genAttrs [ 257 + "Xplugin" 258 + "sandbox" 259 + "simd" 260 + "utmp" 261 + "xpc" 262 + ] mkStub; 358 263 359 - inherit sdk; 264 + version = "10.12"; 360 265 } 266 + // lib.genAttrs [ 267 + "darwin-stubs" 268 + "Libsystem" 269 + "objc4" 270 + "sdk" 271 + "sdkRoot" 272 + ] mkStub
-130
pkgs/os-specific/darwin/apple-sdk/frameworks.nix
··· 1 - # Current as of 10.12 2 - # Epic weird knot-tying happening here. 3 - # TODO: clean up the process for generating this and include it 4 - 5 - { frameworks, libs, libobjc, }: 6 - 7 - with frameworks; with libs; { 8 - AGL = { inherit Carbon OpenGL; }; 9 - AVFoundation = { inherit ApplicationServices CoreGraphics CoreMedia MediaToolbox; }; 10 - AVKit = {}; 11 - Accounts = {}; 12 - AddressBook = { inherit libobjc Carbon ContactsPersistence; }; 13 - AppKit = { inherit ApplicationServices AudioToolbox AudioUnit Foundation QuartzCore UIFoundation; }; 14 - AppKitScripting = {}; 15 - AppleScriptKit = {}; 16 - AppleScriptObjC = {}; 17 - AudioToolbox = { inherit CoreAudio CoreMIDI; }; 18 - AudioUnit = { inherit AudioToolbox Carbon CoreAudio; }; 19 - AudioVideoBridging = { inherit Foundation; }; 20 - Automator = {}; 21 - CFNetwork = {}; 22 - CalendarStore = {}; 23 - Cocoa = { inherit AppKit CoreData; }; 24 - Collaboration = {}; 25 - # Impure version of CoreFoundation, this should not be used unless another 26 - # framework includes headers that are not available in the pure version. 27 - CoreFoundation = {}; 28 - CoreAudio = { inherit IOKit; }; 29 - CoreAudioKit = { inherit AudioUnit; }; 30 - CoreData = {}; 31 - CoreGraphics = { inherit Accelerate IOKit IOSurface SystemConfiguration; }; 32 - CoreImage = {}; 33 - CoreLocation = {}; 34 - CoreMIDI = {}; 35 - CoreMIDIServer = { inherit CoreMIDI; }; 36 - CoreMedia = { inherit ApplicationServices AudioToolbox AudioUnit CoreAudio CoreGraphics CoreVideo; }; 37 - CoreMediaIO = { inherit CoreMedia; }; 38 - CoreText = { inherit CoreGraphics; }; 39 - CoreVideo = { inherit ApplicationServices CoreGraphics IOSurface OpenGL; }; 40 - CoreWLAN = { inherit SecurityFoundation; }; 41 - DVDPlayback = {}; 42 - DirectoryService = {}; 43 - DiscRecording = { inherit libobjc CoreServices IOKit; }; 44 - DiscRecordingUI = {}; 45 - DiskArbitration = { inherit IOKit; }; 46 - EventKit = {}; 47 - ExceptionHandling = {}; 48 - FWAUserLib = {}; 49 - ForceFeedback = { inherit IOKit; }; 50 - Foundation = { inherit libobjc CoreFoundation Security ApplicationServices SystemConfiguration; }; 51 - GLKit = {}; 52 - GLUT = { inherit OpenGL; }; 53 - GSS = {}; 54 - GameCenter = {}; 55 - GameController = {}; 56 - GameKit = { inherit Cocoa Foundation GameCenter GameController GameplayKit Metal MetalKit ModelIO SceneKit SpriteKit; }; 57 - GameplayKit = {}; 58 - Hypervisor = {}; 59 - ICADevices = { inherit libobjc Carbon IOBluetooth; }; 60 - IMServicePlugIn = {}; 61 - IOBluetoothUI = { inherit IOBluetooth; }; 62 - IOKit = {}; 63 - IOSurface = { inherit IOKit xpc; }; 64 - ImageCaptureCore = {}; 65 - ImageIO = { inherit CoreGraphics; }; 66 - InputMethodKit = { inherit Carbon; }; 67 - InstallerPlugins = {}; 68 - InstantMessage = {}; 69 - JavaFrameEmbedding = {}; 70 - JavaNativeFoundation = {}; 71 - JavaRuntimeSupport = {}; 72 - JavaScriptCore = { inherit libobjc; }; 73 - Kerberos = {}; 74 - Kernel = { inherit IOKit; }; 75 - LDAP = {}; 76 - LatentSemanticMapping = { inherit Carbon; }; 77 - LocalAuthentication = {}; 78 - MapKit = {}; 79 - MediaAccessibility = { inherit CoreGraphics CoreText QuartzCore; }; 80 - MediaPlayer = {}; 81 - MediaToolbox = { inherit AudioToolbox AudioUnit CoreMedia; }; 82 - Metal = {}; 83 - MetalKit = { inherit ModelIO Metal; }; 84 - ModelIO = {}; 85 - NetFS = {}; 86 - OSAKit = { inherit Carbon; }; 87 - OpenAL = {}; 88 - OpenCL = { inherit IOSurface OpenGL; }; 89 - OpenGL = {}; 90 - PCSC = { inherit CoreData; }; 91 - PreferencePanes = {}; 92 - PubSub = {}; 93 - QTKit = { inherit CoreMediaIO CoreMedia MediaToolbox QuickTime VideoToolbox; }; 94 - QuickLook = { inherit ApplicationServices; }; 95 - SceneKit = {}; 96 - ScreenSaver = {}; 97 - Scripting = {}; 98 - ScriptingBridge = {}; 99 - Security = { inherit IOKit; }; 100 - SecurityFoundation = {}; 101 - SecurityInterface = { inherit Security SecurityFoundation; }; 102 - ServiceManagement = { inherit Security; }; 103 - Social = {}; 104 - SpriteKit = {}; 105 - StoreKit = {}; 106 - SyncServices = {}; 107 - System = {}; 108 - SystemConfiguration = { inherit Security; }; 109 - TWAIN = { inherit Carbon; }; 110 - Tcl = {}; 111 - VideoDecodeAcceleration = { inherit CoreVideo; }; 112 - VideoToolbox = { inherit CoreMedia CoreVideo; }; 113 - WebKit = { inherit libobjc ApplicationServices Carbon JavaScriptCore OpenGL; }; 114 - 115 - # Umbrellas 116 - Accelerate = { inherit CoreWLAN IOBluetooth; }; 117 - ApplicationServices = { inherit CoreGraphics CoreServices CoreText ImageIO; }; 118 - Carbon = { inherit libobjc ApplicationServices CoreServices Foundation IOKit Security QuartzCore; }; 119 - CoreBluetooth = {}; 120 - # TODO: figure out which part of the umbrella depends on CoreFoundation and move it there. 121 - CoreServices = { inherit CFNetwork CoreFoundation CoreAudio CoreData DiskArbitration Security NetFS OpenDirectory ServiceManagement; }; 122 - IOBluetooth = { inherit CoreBluetooth IOKit; }; 123 - JavaVM = {}; 124 - OpenDirectory = {}; 125 - Quartz = { inherit QuartzCore QuickLook QTKit; }; 126 - QuartzCore = { inherit libobjc ApplicationServices CoreVideo OpenCL CoreImage Metal; }; 127 - QuickTime = { inherit ApplicationServices AudioUnit Carbon CoreAudio CoreServices OpenGL QuartzCore; }; 128 - 129 - vmnet = {}; 130 - }
-256
pkgs/os-specific/darwin/apple-sdk/impure-deps.nix
··· 1 - rec { 2 - CFNetwork = [ 3 - "/System/Library/Frameworks/CFNetwork.framework" 4 - "/usr/lib/libsqlite3.dylib" 5 - "/usr/lib/libxml2.2.dylib" 6 - ]; 7 - ForceFeedback = [ 8 - "/System/Library/Frameworks/ForceFeedback.framework" 9 - ]; 10 - AGL = [ 11 - "/System/Library/Frameworks/AGL.framework" 12 - ]; 13 - IOKit = [ 14 - "/System/Library/Frameworks/IOKit.framework" 15 - ]; 16 - JavaScriptCore = [ 17 - "/System/Library/Frameworks/JavaScriptCore.framework" 18 - ]; 19 - QuickLook = [ 20 - "/System/Library/Frameworks/QuickLook.framework" 21 - ]; 22 - Quartz = [ 23 - "/System/Library/Frameworks/Quartz.framework" 24 - "/System/Library/PrivateFrameworks/AppleSystemInfo.framework/Versions/A/AppleSystemInfo" 25 - "/System/Library/PrivateFrameworks/CorePDF.framework/Versions/A/CorePDF" 26 - "/usr/lib/libspindump.dylib" 27 - ]; 28 - ImageCaptureCore = [ 29 - "/System/Library/Frameworks/ImageCaptureCore.framework" 30 - ]; 31 - VideoToolbox = [ 32 - "/System/Library/Frameworks/VideoToolbox.framework" 33 - "/System/Library/PrivateFrameworks/AppleVA.framework/Versions/A/AppleVA" 34 - ]; 35 - QuickTime = [ 36 - "/System/Library/Frameworks/QuickTime.framework" 37 - ]; 38 - CoreMedia = [ 39 - "/System/Library/Frameworks/CoreMedia.framework" 40 - ]; 41 - CoreMediaIO = [ 42 - "/System/Library/Frameworks/CoreMediaIO.framework" 43 - "/System/Library/PrivateFrameworks/AppSandbox.framework/Versions/A/AppSandbox" 44 - "/System/Library/PrivateFrameworks/AppContainer.framework/Versions/A/AppContainer" 45 - "/System/Library/PrivateFrameworks/SecCodeWrapper.framework/Versions/A/SecCodeWrapper" 46 - "/System/Library/PrivateFrameworks/XPCService.framework/Versions/A/XPCService" 47 - "/usr/lib/libsandbox.1.dylib" 48 - "/usr/lib/libMatch.1.dylib" 49 - ]; 50 - MediaToolbox = [ 51 - "/System/Library/Frameworks/MediaToolbox.framework" 52 - "/System/Library/PrivateFrameworks/CoreAUC.framework/Versions/A/CoreAUC" 53 - "/System/Library/PrivateFrameworks/NetworkStatistics.framework/Versions/A/NetworkStatistics" 54 - ]; 55 - QTKit = [ 56 - "/System/Library/Frameworks/QTKit.framework" 57 - "/System/Library/PrivateFrameworks/CoreMediaAuthoring.framework/Versions/A/CoreMediaAuthoring" 58 - ]; 59 - OSAKit = [ 60 - "/System/Library/Frameworks/OSAKit.framework" 61 - "/usr/lib/libexslt.0.dylib" 62 - ]; 63 - WebKit = [ 64 - "/System/Library/Frameworks/WebKit.framework" 65 - ]; 66 - DiskArbitration = [ 67 - "/System/Library/Frameworks/DiskArbitration.framework" 68 - ]; 69 - Security = [ 70 - "/System/Library/Frameworks/Security.framework" 71 - "/usr/lib/libbsm.0.dylib" 72 - "/usr/lib/libbz2.1.0.dylib" 73 - "/usr/lib/libpam.2.dylib" 74 - "/usr/lib/libxar.1.dylib" 75 - "/usr/lib/libxml2.2.dylib" 76 - "/usr/lib/libsqlite3.dylib" 77 - ]; 78 - GSS = [ 79 - "/System/Library/Frameworks/GSS.framework" 80 - ]; 81 - Kerberos = [ 82 - "/System/Library/Frameworks/Kerberos.framework" 83 - ]; 84 - CoreServices = [ 85 - "/System/Library/Frameworks/CoreServices.framework" 86 - "/System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore" 87 - "/System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC" 88 - "/System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling" 89 - "/usr/lib/libmecabra.dylib" 90 - "/usr/lib/libcmph.dylib" 91 - "/usr/lib/libiconv.2.dylib" 92 - "/usr/lib/libxslt.1.dylib" 93 - ] ++ Foundation; 94 - IOSurface = [ 95 - "/System/Library/Frameworks/IOSurface.framework" 96 - ]; 97 - CoreGraphics = [ 98 - "/System/Library/Frameworks/CoreGraphics.framework" 99 - "/System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport" 100 - "/usr/lib/libbsm.0.dylib" 101 - "/usr/lib/libz.1.dylib" 102 - ]; 103 - CoreText = [ 104 - "/System/Library/Frameworks/CoreText.framework" 105 - ]; 106 - ImageIO = [ 107 - "/System/Library/Frameworks/ImageIO.framework" 108 - ]; 109 - ApplicationServices = [ 110 - "/System/Library/Frameworks/ApplicationServices.framework" 111 - "/usr/lib/libcups.2.dylib" 112 - "/usr/lib/libresolv.9.dylib" 113 - ] ++ AudioToolbox; 114 - OpenGL = [ 115 - "/System/Library/Frameworks/OpenGL.framework" 116 - ]; 117 - CoreVideo = [ 118 - "/System/Library/Frameworks/CoreVideo.framework" 119 - ]; 120 - QuartzCore = [ 121 - "/System/Library/Frameworks/QuartzCore.framework" 122 - "/System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport" 123 - ]; 124 - PCSC = [ 125 - "/System/Library/Frameworks/PCSC.framework" 126 - ]; 127 - AppKit = [ 128 - "/System/Library/Frameworks/AppKit.framework" 129 - "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211" 130 - "/System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG" 131 - "/System/Library/PrivateFrameworks/AppleVPA.framework/Versions/A/AppleVPA" 132 - "/System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup" 133 - "/System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary" 134 - "/System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth" 135 - "/System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication" 136 - "/System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI" 137 - "/System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi" 138 - "/System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport" 139 - "/System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore" 140 - "/System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols" 141 - "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv" 142 - "/System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore" 143 - "/System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage" 144 - "/System/Library/PrivateFrameworks/Heimdal.framework/Heimdal" 145 - "/System/Library/PrivateFrameworks/Heimdal.framework/Versions/Current" 146 - "/System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal" 147 - "/System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices" 148 - "/System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling" 149 - "/System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport" 150 - "/System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth" 151 - "/System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis" 152 - "/System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices" 153 - "/System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing" 154 - "/System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore" 155 - "/System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication" 156 - "/System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC" 157 - "/System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation" 158 - "/System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport" 159 - "/usr/lib/libCRFSuite.dylib" 160 - "/usr/lib/libOpenScriptingUtil.dylib" 161 - "/usr/lib/libarchive.2.dylib" 162 - "/usr/lib/libbsm.0.dylib" 163 - "/usr/lib/libbz2.1.0.dylib" 164 - "/usr/lib/libc++.1.dylib" 165 - "/usr/lib/libc++abi.dylib" 166 - "/usr/lib/libcmph.dylib" 167 - "/usr/lib/libcups.2.dylib" 168 - "/usr/lib/libextension.dylib" 169 - "/usr/lib/libheimdal-asn1.dylib" 170 - "/usr/lib/libiconv.2.dylib" 171 - "/usr/lib/libicucore.A.dylib" 172 - "/usr/lib/liblangid.dylib" 173 - "/usr/lib/liblzma.5.dylib" 174 - "/usr/lib/libmecabra.dylib" 175 - "/usr/lib/libpam.2.dylib" 176 - "/usr/lib/libresolv.9.dylib" 177 - "/usr/lib/libsqlite3.dylib" 178 - "/usr/lib/libxar.1.dylib" 179 - "/usr/lib/libxml2.2.dylib" 180 - "/usr/lib/libxslt.1.dylib" 181 - "/usr/lib/libz.1.dylib" 182 - ]; 183 - Foundation = [ 184 - "/System/Library/Frameworks/Foundation.framework" 185 - "/usr/lib/libextension.dylib" 186 - "/usr/lib/libarchive.2.dylib" 187 - "/usr/lib/liblzma.5.dylib" 188 - "/usr/lib/liblangid.dylib" 189 - "/usr/lib/libCRFSuite.dylib" 190 - ]; 191 - CoreData = [ 192 - "/System/Library/Frameworks/CoreData.framework" 193 - ]; 194 - Cocoa = [ 195 - "/System/Library/Frameworks/Cocoa.framework" 196 - "/System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation" 197 - "/System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A" 198 - ]; 199 - Carbon = [ 200 - "/System/Library/Frameworks/Carbon.framework" 201 - "/System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI" 202 - "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv" 203 - "/System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices" 204 - "/System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary" 205 - "/System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing" 206 - "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211" 207 - "/System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage" 208 - ]; 209 - CoreAudio = [ 210 - "/System/Library/Frameworks/CoreAudio.framework" 211 - ]; 212 - AudioUnit = [ 213 - "/System/Library/Frameworks/AudioUnit.framework" 214 - ]; 215 - CoreMIDI = [ 216 - "/System/Library/Frameworks/CoreMIDI.framework" 217 - ]; 218 - AudioToolbox = [ 219 - "/System/Library/Frameworks/AudioToolbox.framework" 220 - ]; 221 - SystemConfiguration = [ 222 - "/System/Library/Frameworks/SystemConfiguration.framework" 223 - ]; 224 - NetFS = [ 225 - "/System/Library/Frameworks/NetFS.framework" 226 - "/System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth" 227 - "/System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport" 228 - ]; 229 - Accelerate = [ 230 - "/System/Library/Frameworks/Accelerate.framework" 231 - ]; 232 - OpenDirectory = [ 233 - "/System/Library/Frameworks/OpenDirectory.framework" 234 - ]; 235 - ServiceManagement = [ 236 - "/System/Library/Frameworks/ServiceManagement.framework" 237 - ]; 238 - OpenCL = [ 239 - "/System/Library/Frameworks/OpenCL.framework" 240 - ]; 241 - CoreWLAN = [ 242 - "/System/Library/Frameworks/CoreWLAN.framework" 243 - ]; 244 - IOBluetooth = [ 245 - "/System/Library/Frameworks/IOBluetooth.framework" 246 - ] ++ AudioUnit ++ CoreBluetooth; 247 - CoreBluetooth = [ 248 - "/System/Library/Frameworks/CoreBluetooth.framework" 249 - ]; 250 - SecurityFoundation = [ 251 - "/System/Library/Frameworks/SecurityFoundation.framework" 252 - ]; 253 - Kernel = [ 254 - "/System/Library/Frameworks/Kernel.framework" 255 - ]; 256 - }
-8
pkgs/os-specific/darwin/apple-sdk/private-frameworks-setup-hook.sh
··· 1 - addPrivateFrameworks() { 2 - flag="-F/System/Library/PrivateFrameworks" 3 - if [[ "${NIX_CFLAGS_COMPILE-}" != *$flag* ]]; then 4 - NIX_CFLAGS_COMPILE+=" $flag" 5 - fi 6 - } 7 - 8 - addEnvHooks "$hostOffset" addPrivateFrameworks
-68
pkgs/os-specific/darwin/apple-sdk/sdkRoot.nix
··· 1 - { 2 - lib, 3 - runCommand, 4 - writeText, 5 - sdkVersion, 6 - }: 7 - 8 - let 9 - sdkName = "MacOSX${sdkVersion}"; 10 - toolchainName = "com.apple.dt.toolchain.XcodeDefault"; 11 - productBuildVer = null; 12 - 13 - inherit (lib.generators) toPlist toJSON; 14 - 15 - SDKSettings = { 16 - CanonicalName = "macosx${sdkVersion}"; 17 - DisplayName = "macOS ${sdkVersion}"; 18 - Toolchains = [ toolchainName ]; 19 - Version = sdkVersion; 20 - MaximumDeploymentTarget = "${sdkVersion}.99"; 21 - isBaseSDK = "YES"; 22 - }; 23 - 24 - SystemVersion = 25 - lib.optionalAttrs (productBuildVer != null) { ProductBuildVersion = productBuildVer; } 26 - // { 27 - ProductName = "macOS"; 28 - ProductVersion = sdkVersion; 29 - }; 30 - in 31 - runCommand "sdkroot-${sdkVersion}" { } '' 32 - sdk="$out/${sdkName}.sdk" 33 - 34 - install -D ${writeText "SDKSettings.plist" (toPlist { } SDKSettings)} "$sdk/SDKSettings.plist" 35 - install -D ${writeText "SDKSettings.json" (toJSON { } SDKSettings)} "$sdk/SDKSettings.json" 36 - install -D ${ 37 - writeText "SystemVersion.plist" (toPlist { } SystemVersion) 38 - } "$sdk/System/Library/CoreServices/SystemVersion.plist" 39 - 40 - ln -s "$sdk" "$sdk/usr" 41 - 42 - install -D '${../../../build-support/setup-hooks/role.bash}' "$out/nix-support/setup-hook" 43 - cat >> "$out/nix-support/setup-hook" <<-hook 44 - # 45 - # See comments in cc-wrapper's setup hook. This works exactly the same way. 46 - # 47 - [[ -z \''${strictDeps-} ]] || (( "\$hostOffset" < 0 )) || return 0 48 - 49 - sdkRootHook() { 50 - # See ../../../build-support/setup-hooks/role.bash 51 - local role_post 52 - getHostRoleEnvHook 53 - 54 - # Only set the SDK root if one has not been set via this hook or some other means. 55 - if [[ ! \$NIX_CFLAGS_COMPILE =~ isysroot ]]; then 56 - export NIX_CFLAGS_COMPILE\''${role_post}+=' -isysroot $out/${sdkName}.sdk' 57 - fi 58 - } 59 - 60 - # See ../../../build-support/setup-hooks/role.bash 61 - getTargetRole 62 - 63 - addEnvHooks "\$targetOffset" sdkRootHook 64 - 65 - # No local scope in sourced file 66 - unset -v role_post 67 - hook 68 - ''
-10
pkgs/os-specific/darwin/apple-sdk/security-setup-hook.sh
··· 1 - noDeprecatedDeclarations() { 2 - # Security.framework has about 2000 deprecated constants, all of which the user will be 3 - # warned about at compilation time 4 - flag="-Wno-deprecated-declarations" 5 - if [[ "${NIX_CFLAGS_COMPILE-}" != *$flag* ]]; then 6 - NIX_CFLAGS_COMPILE+=" $flag" 7 - fi 8 - } 9 - 10 - addEnvHooks "$hostOffset" noDeprecatedDeclarations
+2 -8
pkgs/top-level/darwin-packages.nix
··· 50 50 impure-cmds = pkgs.callPackage ../os-specific/darwin/impure-cmds { }; 51 51 52 52 # macOS 10.12 SDK 53 - apple_sdk_10_12 = pkgs.callPackage ../os-specific/darwin/apple-sdk { 54 - inherit (buildPackages.darwin) print-reexports; 55 - inherit (self) darwin-stubs; 56 - fetchurl = fetchurlBoot; 57 - }; 53 + apple_sdk_10_12 = pkgs.callPackage ../os-specific/darwin/apple-sdk { }; 58 54 59 55 # macOS 11.0 SDK 60 56 apple_sdk_11_0 = pkgs.callPackage ../os-specific/darwin/apple-sdk-11.0 { }; ··· 93 89 }; 94 90 95 91 stubs = { 96 - inherit apple_sdk_11_0 apple_sdk_12_3; 92 + inherit apple_sdk apple_sdk_10_12 apple_sdk_11_0 apple_sdk_12_3; 97 93 } // lib.genAttrs [ 98 94 ] (mkStub apple_sdk.version); 99 95 in 100 96 101 97 impure-cmds // appleSourcePackages // chooseLibs // stubs // { 102 - 103 - inherit apple_sdk apple_sdk_10_12; 104 98 105 99 stdenvNoCF = stdenv.override { 106 100 extraBuildInputs = [];