darwin.apple_sdk_12_3: convert frameworks and libs to stubs

+257 -954
-27
pkgs/os-specific/darwin/apple-sdk-12.3/CLTools_Executables.nix
··· 1 - { 2 - stdenvNoCC, 3 - fetchurl, 4 - cpio, 5 - pbzx, 6 - version, 7 - }: 8 - 9 - let 10 - releases = builtins.fromJSON (builtins.readFile ./apple-sdk-releases.json); 11 - in 12 - stdenvNoCC.mkDerivation (finalAttrs: { 13 - pname = "CLTools_Executables"; 14 - inherit version; 15 - 16 - src = fetchurl releases.${version}.${finalAttrs.pname}; 17 - 18 - nativeBuildInputs = [ 19 - cpio 20 - pbzx 21 - ]; 22 - 23 - buildCommand = '' 24 - pbzx $src | cpio -idm 25 - mv Library/Developer/CommandLineTools $out 26 - ''; 27 - })
···
-28
pkgs/os-specific/darwin/apple-sdk-12.3/CLTools_macOSNMOS_SDK.nix
··· 1 - { 2 - lib, 3 - stdenvNoCC, 4 - fetchurl, 5 - cpio, 6 - pbzx, 7 - version, 8 - }: 9 - 10 - let 11 - releases = builtins.fromJSON (builtins.readFile ./apple-sdk-releases.json); 12 - in 13 - stdenvNoCC.mkDerivation (finalAttrs: { 14 - pname = "CLTools_macOSNMOS_SDK"; 15 - inherit version; 16 - 17 - src = fetchurl releases.${version}.${finalAttrs.pname}; 18 - 19 - nativeBuildInputs = [ 20 - cpio 21 - pbzx 22 - ]; 23 - 24 - buildCommand = '' 25 - pbzx $src | cpio -idm 26 - mv Library/Developer/CommandLineTools/SDKs/MacOSX${lib.versions.majorMinor version}.sdk $out 27 - ''; 28 - })
···
-20
pkgs/os-specific/darwin/apple-sdk-12.3/apple-sdk-releases.json
··· 1 - { 2 - "12.3": { 3 - "CLTools_Executables": { 4 - "hash": "sha256-XlxHwCq+rtBF3Yyfdob3UEHN7YKzb7JF84lRmZbB/50=", 5 - "url": "https://swcdn.apple.com/content/downloads/24/42/002-83793-A_74JRE8GVAT/rlnkct919wgc5c0pjq986z5bb9h62uvni2/CLTools_Executables.pkg" 6 - }, 7 - "CLTools_macOSLMOS_SDK": { 8 - "hash": "sha256-mY9YTlyTujV6R89WaNmkJrfOQatXnoSW8gKxnawQz5Q=", 9 - "url": "https://swcdn.apple.com/content/downloads/24/42/002-83793-A_74JRE8GVAT/rlnkct919wgc5c0pjq986z5bb9h62uvni2/CLTools_macOSLMOS_SDK.pkg" 10 - }, 11 - "CLTools_macOSNMOS_SDK": { 12 - "hash": "sha256-Tr9VCeCP5udmh09U/zPQG2c4ky1LXscBwPfgpRy8uds=", 13 - "url": "https://swcdn.apple.com/content/downloads/24/42/002-83793-A_74JRE8GVAT/rlnkct919wgc5c0pjq986z5bb9h62uvni2/CLTools_macOSNMOS_SDK.pkg" 14 - }, 15 - "CLTools_macOS_SDK": { 16 - "hash": "sha256-2xwYLfiYuEdck7/8NY3iqiPKvoG9HAjXt8Ewyp9c0Es=", 17 - "url": "https://swcdn.apple.com/content/downloads/24/42/002-83793-A_74JRE8GVAT/rlnkct919wgc5c0pjq986z5bb9h62uvni2/CLTools_macOS_SDK.pkg" 18 - } 19 - } 20 - }
···
+255 -38
pkgs/os-specific/darwin/apple-sdk-12.3/default.nix
··· 1 { 2 lib, 3 newScope, 4 - overrideCC, 5 pkgs, 6 stdenv, 7 stdenvNoCC, 8 }: 9 10 let 11 - version = "12.3"; 12 - 13 - MacOSX-SDK = callPackage ./CLTools_macOSNMOS_SDK.nix { inherit version; }; 14 - callPackage = newScope (pkgs.darwin // packages); 15 - 16 - packages = { 17 - # Make sure we pass our special `callPackage` instead of using packages.callPackage which 18 - # does not have necessary attributes in scope. 19 - frameworks = callPackage ./frameworks { inherit callPackage; }; 20 - libs = callPackage ./libs { inherit callPackage; }; 21 - 22 - CLTools_Executables = callPackage ./CLTools_Executables.nix { inherit version; }; 23 - Libsystem = callPackage ./libSystem.nix { }; 24 - LibsystemCross = callPackage ./libSystem.nix { }; 25 - libunwind = callPackage ./libunwind.nix { }; 26 - libnetwork = callPackage ./libnetwork.nix { }; 27 - libpm = callPackage ./libpm.nix { }; 28 - # Avoid introducing a new objc4 if stdenv already has one, to prevent 29 - # conflicting LLVM modules. 30 - objc4 = stdenv.objc4 or (callPackage ./libobjc.nix { }); 31 - 32 - darwin-stubs = stdenvNoCC.mkDerivation { 33 - pname = "darwin-stubs"; 34 - inherit (MacOSX-SDK) version; 35 - 36 - preferLocalBuild = true; 37 - allowSubstitutes = false; 38 39 - buildCommand = '' 40 - mkdir -p "$out" 41 - ln -s ${MacOSX-SDK}/System "$out/System" 42 - ln -s ${MacOSX-SDK}/usr "$out/usr" 43 - ''; 44 - }; 45 46 - sdkRoot = pkgs.callPackage ../apple-sdk/sdkRoot.nix { sdkVersion = version; }; 47 - }; 48 - in 49 - packages
··· 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 { 4 lib, 5 + callPackage, 6 newScope, 7 + overrideSDK, 8 pkgs, 9 stdenv, 10 stdenvNoCC, 11 }: 12 13 let 14 + mkStub = callPackage ../apple-sdk/mk-stub.nix { } "12.3"; 15 + in 16 + lib.genAttrs [ 17 + "CLTools_Executables" 18 + "Libsystem" 19 + "LibsystemCross" 20 + "darwin-stubs" 21 + "libnetwork" 22 + "libpm" 23 + "libunwind" 24 + "objc4" 25 + "sdkRoot" 26 + ] mkStub 27 + // { 28 + frameworks = lib.genAttrs [ 29 + "AGL" 30 + "AVFAudio" 31 + "AVFCapture" 32 + "AVFCore" 33 + "AVFoundation" 34 + "AVKit" 35 + "Accelerate" 36 + "Accessibility" 37 + "Accounts" 38 + "AdServices" 39 + "AdSupport" 40 + "AddressBook" 41 + "AddressBookCore" 42 + "AppKit" 43 + "AppTrackingTransparency" 44 + "AppleScriptKit" 45 + "AppleScriptObjC" 46 + "ApplicationServices" 47 + "AudioToolbox" 48 + "AudioToolboxCore" 49 + "AudioUnit" 50 + "AudioVideoBridging" 51 + "AuthenticationServices" 52 + "AutomaticAssessmentConfiguration" 53 + "Automator" 54 + "BackgroundTasks" 55 + "BusinessChat" 56 + "CFNetwork" 57 + "CHIP" 58 + "CalendarStore" 59 + "CallKit" 60 + "Carbon" 61 + "ClassKit" 62 + "CloudKit" 63 + "Cocoa" 64 + "Collaboration" 65 + "ColorSync" 66 + "Combine" 67 + "Contacts" 68 + "ContactsPersistence" 69 + "ContactsUI" 70 + "CoreAudio" 71 + "CoreAudioKit" 72 + "CoreAudioTypes" 73 + "CoreBluetooth" 74 + "CoreData" 75 + "CoreDisplay" 76 + "CoreFoundation" 77 + "CoreGraphics" 78 + "CoreHaptics" 79 + "CoreImage" 80 + "CoreLocation" 81 + "CoreMIDI" 82 + "CoreMIDIServer" 83 + "CoreML" 84 + "CoreMedia" 85 + "CoreMediaIO" 86 + "CoreMotion" 87 + "CoreServices" 88 + "CoreSpotlight" 89 + "CoreSymbolication" 90 + "CoreTelephony" 91 + "CoreText" 92 + "CoreVideo" 93 + "CoreWLAN" 94 + "CreateML" 95 + "CryptoKit" 96 + "CryptoTokenKit" 97 + "DVDPlayback" 98 + "DataDetection" 99 + "DebugSymbols" 100 + "DeveloperToolsSupport" 101 + "DeviceActivity" 102 + "DeviceCheck" 103 + "DirectoryService" 104 + "DiscRecording" 105 + "DiscRecordingUI" 106 + "DiskArbitration" 107 + "DisplayServices" 108 + "DriverKit" 109 + "EventKit" 110 + "ExceptionHandling" 111 + "ExecutionPolicy" 112 + "ExposureNotification" 113 + "ExternalAccessory" 114 + "FWAUserLib" 115 + "FileProvider" 116 + "FileProviderUI" 117 + "FinderSync" 118 + "ForceFeedback" 119 + "Foundation" 120 + "GLKit" 121 + "GLUT" 122 + "GSS" 123 + "GameCenterFoundation" 124 + "GameCenterUI" 125 + "GameCenterUICore" 126 + "GameController" 127 + "GameKit" 128 + "GameplayKit" 129 + "GroupActivities" 130 + "Hypervisor" 131 + "ICADevices" 132 + "IMServicePlugIn" 133 + "IOBluetooth" 134 + "IOBluetoothUI" 135 + "IOKit" 136 + "IOSurface" 137 + "IOUSBHost" 138 + "IdentityLookup" 139 + "ImageCaptureCore" 140 + "ImageIO" 141 + "InputMethodKit" 142 + "InstallerPlugins" 143 + "InstantMessage" 144 + "Intents" 145 + "IntentsUI" 146 + "JavaNativeFoundation" 147 + "JavaRuntimeSupport" 148 + "JavaScriptCore" 149 + "JavaVM" 150 + "Kerberos" 151 + "Kernel" 152 + "KernelManagement" 153 + "LDAP" 154 + "LatentSemanticMapping" 155 + "LinkPresentation" 156 + "LocalAuthentication" 157 + "LocalAuthenticationEmbeddedUI" 158 + "MLCompute" 159 + "MailKit" 160 + "ManagedSettings" 161 + "MapKit" 162 + "MediaAccessibility" 163 + "MediaLibrary" 164 + "MediaPlayer" 165 + "MediaToolbox" 166 + "Message" 167 + "Metal" 168 + "MetalKit" 169 + "MetalPerformanceShaders" 170 + "MetalPerformanceShadersGraph" 171 + "MetricKit" 172 + "ModelIO" 173 + "MultipeerConnectivity" 174 + "MultitouchSupport" 175 + "MusicKit" 176 + "NaturalLanguage" 177 + "NearbyInteraction" 178 + "NetFS" 179 + "Network" 180 + "NetworkExtension" 181 + "NotificationCenter" 182 + "OSAKit" 183 + "OSLog" 184 + "OpenAL" 185 + "OpenCL" 186 + "OpenDirectory" 187 + "OpenGL" 188 + "PCSC" 189 + "PDFKit" 190 + "PHASE" 191 + "ParavirtualizedGraphics" 192 + "PassKit" 193 + "PassKitCore" 194 + "PencilKit" 195 + "Photos" 196 + "PhotosUI" 197 + "PreferencePanes" 198 + "PushKit" 199 + "QTKit" 200 + "Quartz" 201 + "QuartzCore" 202 + "QuickLook" 203 + "QuickLookThumbnailing" 204 + "QuickLookUI" 205 + "QuickTime" 206 + "RealityFoundation" 207 + "RealityKit" 208 + "ReplayKit" 209 + "Ruby" 210 + "SafariServices" 211 + "SceneKit" 212 + "ScreenCaptureKit" 213 + "ScreenSaver" 214 + "ScreenTime" 215 + "ScriptingBridge" 216 + "Security" 217 + "SecurityFoundation" 218 + "SecurityInterface" 219 + "SensorKit" 220 + "ServiceManagement" 221 + "ShazamKit" 222 + "SignpostMetrics" 223 + "SkyLight" 224 + "Social" 225 + "SoundAnalysis" 226 + "Speech" 227 + "SpriteKit" 228 + "StoreKit" 229 + "SwiftUI" 230 + "SyncServices" 231 + "System" 232 + "SystemConfiguration" 233 + "SystemExtensions" 234 + "TWAIN" 235 + "TabularData" 236 + "Tcl" 237 + "Tk" 238 + "UIFoundation" 239 + "URLFormatting" 240 + "UniformTypeIdentifiers" 241 + "UserNotifications" 242 + "UserNotificationsUI" 243 + "VideoDecodeAcceleration" 244 + "VideoSubscriberAccount" 245 + "VideoToolbox" 246 + "Virtualization" 247 + "Vision" 248 + "WebKit" 249 + "WidgetKit" 250 + "iTunesLibrary" 251 + "vmnet" 252 + ] mkStub; 253 254 + libs = lib.genAttrs [ 255 + "Xplugin" 256 + "utmp" 257 + "libDER" 258 + "xpc" 259 + "sandbox" 260 + "simd" 261 + "utmp" 262 + "xpc" 263 + ] mkStub; 264 265 + version = "12.3"; 266 + }
-146
pkgs/os-specific/darwin/apple-sdk-12.3/frameworks/default.nix
··· 1 - { 2 - lib, 3 - stdenvNoCC, 4 - buildPackages, 5 - # macOS things 6 - callPackage, 7 - darwin-stubs, 8 - }: 9 - 10 - let 11 - inherit (darwin-stubs) version; 12 - fixup-frameworks = callPackage ./fixups.nix { }; 13 - private-frameworks = callPackage ./private.nix { }; 14 - public-frameworks = callPackage ./public.nix { }; 15 - 16 - mkDepsRewrites = 17 - deps: 18 - let 19 - mergeRewrites = x: y: { 20 - prefix = lib.mergeAttrs (x.prefix or { }) (y.prefix or { }); 21 - const = lib.mergeAttrs (x.const or { }) (y.const or { }); 22 - }; 23 - 24 - rewriteArgs = 25 - { 26 - prefix ? { }, 27 - const ? { }, 28 - }: 29 - lib.concatLists ( 30 - (lib.mapAttrsToList (from: to: [ 31 - "-p" 32 - "${from}:${to}" 33 - ]) prefix) 34 - ++ (lib.mapAttrsToList (from: to: [ 35 - "-c" 36 - "${from}:${to}" 37 - ]) const) 38 - ); 39 - 40 - rewrites = 41 - depList: 42 - lib.fold mergeRewrites { } ( 43 - map (dep: dep.tbdRewrites) (lib.filter (dep: dep ? tbdRewrites) depList) 44 - ); 45 - in 46 - lib.escapeShellArgs (rewriteArgs (rewrites (lib.attrValues deps))); 47 - 48 - mkFramework = 49 - { 50 - name, 51 - deps, 52 - private ? false, 53 - }: 54 - let 55 - standardFrameworkPath = 56 - name: private: 57 - "/System/Library/${lib.optionalString private "Private"}Frameworks/${name}.framework"; 58 - 59 - self = stdenvNoCC.mkDerivation { 60 - pname = "apple-${lib.optionalString private "private-"}framework-${name}"; 61 - inherit (darwin-stubs) version; 62 - 63 - # because we copy files from the system 64 - preferLocalBuild = true; 65 - 66 - dontUnpack = true; 67 - dontBuild = true; 68 - 69 - disallowedRequisites = [ darwin-stubs ]; 70 - 71 - nativeBuildInputs = [ buildPackages.darwin.rewrite-tbd ]; 72 - 73 - installPhase = '' 74 - mkdir -p $out/Library/Frameworks 75 - 76 - cp -r ${darwin-stubs}${standardFrameworkPath name private} $out/Library/Frameworks 77 - 78 - if [[ -d ${darwin-stubs}/usr/lib/swift/${name}.swiftmodule ]]; then 79 - mkdir -p $out/lib/swift 80 - cp -r -t $out/lib/swift \ 81 - ${darwin-stubs}/usr/lib/swift/${name}.swiftmodule \ 82 - ${darwin-stubs}/usr/lib/swift/libswift${name}.tbd 83 - fi 84 - 85 - # Fix and check tbd re-export references 86 - chmod u+w -R $out 87 - find $out -name '*.tbd' -type f | while IFS=$'\n' read tbd; do 88 - echo "Fixing re-exports in $tbd" 89 - rewrite-tbd \ 90 - -p ${standardFrameworkPath name private}/:$out/Library/Frameworks/${name}.framework/ \ 91 - -p /usr/lib/swift/:$out/lib/swift/ \ 92 - ${mkDepsRewrites deps} \ 93 - -r ${builtins.storeDir} \ 94 - "$tbd" 95 - done 96 - ''; 97 - 98 - propagatedBuildInputs = lib.attrValues deps; 99 - 100 - passthru.tbdRewrites.prefix."${standardFrameworkPath name private}/" = "${self}/Library/Frameworks/${name}.framework/"; 101 - 102 - meta = with lib; { 103 - description = "Apple SDK framework ${name}"; 104 - maintainers = [ ]; 105 - platforms = platforms.darwin; 106 - }; 107 - }; 108 - in 109 - self; 110 - 111 - # Helper functions for creating framework derivations. 112 - framework = 113 - name: deps: 114 - mkFramework { 115 - inherit name deps; 116 - private = false; 117 - }; 118 - 119 - # Helper functions for creating private framework derivations. 120 - privateFramework = 121 - name: deps: 122 - mkFramework { 123 - inherit name deps; 124 - private = true; 125 - }; 126 - 127 - # Merge addToFrameworks into public-frameworks and remove elements of removeFromFrameworks. 128 - deps = 129 - let 130 - inherit (fixup-frameworks) addToFrameworks removeFromFrameworks; 131 - fixupDeps = 132 - name: deps: 133 - lib.pipe deps [ 134 - # Add dependencies from addToFrameworks. 135 - (deps: lib.recursiveUpdate deps (addToFrameworks.${name} or { })) 136 - # Keep dependencies not in removeFromFrameworks. 137 - (lib.filterAttrs (depName: _: !(removeFromFrameworks.${name}.${depName} or false))) 138 - ]; 139 - in 140 - lib.mapAttrs fixupDeps public-frameworks; 141 - 142 - # Create derivations and add private frameworks. 143 - bareFrameworks = 144 - (lib.mapAttrs framework deps) // (lib.mapAttrs privateFramework private-frameworks); 145 - in 146 - bareFrameworks // fixup-frameworks.overrideFrameworks bareFrameworks
···
-163
pkgs/os-specific/darwin/apple-sdk-12.3/frameworks/fixups.nix
··· 1 - { 2 - lib, 3 - # macOS things 4 - frameworks, 5 - libnetwork, 6 - libs, 7 - darwin-stubs, 8 - objc4, 9 - }: 10 - 11 - { 12 - # Used to add dependencies which are not picked up by gen-frameworks.py. 13 - # Some of these are simply private frameworks the generator does not see. 14 - # Trial and error, building things and adding dependencies when they fail. 15 - addToFrameworks = 16 - let 17 - inherit (libs) libDER; 18 - libobjc = objc4; 19 - in 20 - with frameworks; 21 - { 22 - # Below this comment are entries migrated from before the generator was 23 - # added. If, for a given framework, you are able to reverify the extra 24 - # deps are really necessary on top of the generator deps, move it above 25 - # this comment (and maybe document your findings). 26 - AVFoundation = { 27 - inherit ApplicationServices AVFCapture AVFCore; 28 - }; 29 - Accelerate = { 30 - inherit CoreWLAN IOBluetooth; 31 - }; 32 - AddressBook = { 33 - inherit AddressBookCore ContactsPersistence libobjc; 34 - }; 35 - AppKit = { 36 - inherit AudioToolbox AudioUnit UIFoundation; 37 - }; 38 - AudioToolbox = { 39 - inherit AudioToolboxCore; 40 - }; 41 - AudioUnit = { 42 - inherit Carbon CoreAudio; 43 - }; 44 - Carbon = { 45 - inherit IOKit QuartzCore libobjc; 46 - }; 47 - CoreAudio = { 48 - inherit IOKit; 49 - }; 50 - CoreData = { 51 - inherit CloudKit; 52 - }; 53 - CoreFoundation = { 54 - inherit libobjc; 55 - }; 56 - CoreGraphics = { 57 - inherit SystemConfiguration; 58 - }; 59 - CoreMIDIServer = { 60 - inherit CoreMIDI; 61 - }; 62 - CoreMedia = { 63 - inherit ApplicationServices AudioToolbox AudioUnit; 64 - }; 65 - CoreServices = { 66 - inherit CoreAudio NetFS ServiceManagement; 67 - }; 68 - CoreWLAN = { 69 - inherit SecurityFoundation; 70 - }; 71 - DiscRecording = { 72 - inherit IOKit libobjc; 73 - }; 74 - Foundation = { 75 - inherit SystemConfiguration libobjc; 76 - }; 77 - GameKit = { 78 - inherit 79 - GameCenterFoundation 80 - GameCenterUI 81 - GameCenterUICore 82 - ReplayKit 83 - ; 84 - }; 85 - ICADevices = { 86 - inherit Carbon libobjc; 87 - }; 88 - IOBluetooth = { 89 - inherit CoreBluetooth; 90 - }; 91 - JavaScriptCore = { 92 - inherit libobjc; 93 - }; 94 - Kernel = { 95 - inherit IOKit; 96 - }; 97 - LinkPresentation = { 98 - inherit URLFormatting; 99 - }; 100 - MediaToolbox = { 101 - inherit AudioUnit; 102 - }; 103 - MetricKit = { 104 - inherit SignpostMetrics; 105 - }; 106 - Network = { 107 - inherit libnetwork; 108 - }; 109 - PCSC = { 110 - inherit CoreData; 111 - }; 112 - PassKit = { 113 - inherit PassKitCore; 114 - }; 115 - QTKit = { 116 - inherit 117 - CoreMedia 118 - CoreMediaIO 119 - MediaToolbox 120 - VideoToolbox 121 - ; 122 - }; 123 - Quartz = { 124 - inherit QTKit; 125 - }; 126 - QuartzCore = { 127 - inherit 128 - ApplicationServices 129 - CoreImage 130 - CoreVideo 131 - Metal 132 - OpenCL 133 - libobjc 134 - ; 135 - }; 136 - Security = { 137 - inherit IOKit libDER; 138 - }; 139 - TWAIN = { 140 - inherit Carbon; 141 - }; 142 - VideoDecodeAcceleration = { 143 - inherit CoreVideo; 144 - }; 145 - WebKit = { 146 - inherit ApplicationServices Carbon libobjc; 147 - }; 148 - }; 149 - 150 - # Used to remove dependencies which are picked up by gen-frameworks.py -- used mainly to break 151 - # cyclic dependencies. 152 - removeFromFrameworks = { }; 153 - 154 - # Overrides for framework derivations. 155 - overrideFrameworks = super: { 156 - # This framework doesn't exist in newer SDKs (somewhere around 10.13), but 157 - # there are references to it in nixpkgs. 158 - QuickTime = throw "QuickTime framework not available"; 159 - 160 - # Seems to be appropriate given https://developer.apple.com/forums/thread/666686 161 - JavaVM = super.JavaNativeFoundation; 162 - }; 163 - }
···
-35
pkgs/os-specific/darwin/apple-sdk-12.3/frameworks/private.nix
··· 1 - { objc4, frameworks }: 2 - 3 - # generated by hand to avoid exposing all private frameworks 4 - # frameworks here are only the necessary ones used by public frameworks. 5 - { 6 - AVFCapture = { }; 7 - AVFCore = { }; 8 - AddressBookCore = { 9 - inherit (frameworks) ContactsPersistence; 10 - }; 11 - AudioToolboxCore = { }; 12 - ContactsPersistence = { }; 13 - UIFoundation = { }; 14 - GameCenterFoundation = { }; 15 - GameCenterUI = { }; 16 - GameCenterUICore = { }; 17 - URLFormatting = { }; 18 - SignpostMetrics = { }; 19 - PassKitCore = { }; 20 - SkyLight = { }; 21 - 22 - # Also expose CoreSymbolication; used by `root` package. 23 - CoreSymbolication = { }; 24 - 25 - # Also expose DebugSymbols; used by `llvmPackages_8.lldb` package. 26 - DebugSymbols = { }; 27 - 28 - # Also expose DisplayServices; used by `sketchybar` package. 29 - DisplayServices = { 30 - libobjc = objc4; 31 - }; 32 - 33 - # Also expose MultitouchSupport; used by `chuck` package. 34 - MultitouchSupport = { }; 35 - }
···
-209
pkgs/os-specific/darwin/apple-sdk-12.3/frameworks/public.nix
··· 1 - # This file is generated by gen-frameworks.nix. 2 - # Do not edit, put overrides in apple_sdk.nix instead. 3 - { libs, frameworks }: with libs; with frameworks; 4 - { 5 - AGL = { inherit Carbon OpenGL; }; 6 - AVFAudio = { inherit AudioToolbox CoreAudioTypes CoreMIDI CoreMedia Foundation; }; 7 - AVFoundation = { inherit AVFAudio CoreAudio CoreFoundation CoreGraphics CoreImage CoreMIDI CoreMedia CoreVideo Foundation IOKit ImageIO MediaToolbox Metal QuartzCore UniformTypeIdentifiers simd; }; 8 - AVKit = { inherit AVFoundation AppKit Cocoa Foundation; }; 9 - Accelerate = { inherit CoreFoundation CoreGraphics CoreVideo Foundation IOKit Metal; }; 10 - Accessibility = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; 11 - Accounts = { inherit Foundation; }; 12 - AdServices = { inherit Foundation; }; 13 - AdSupport = { inherit Foundation; }; 14 - AddressBook = { inherit Carbon Cocoa CoreFoundation Foundation; }; 15 - AppKit = { inherit Accessibility ApplicationServices CoreData CoreFoundation CoreGraphics CoreImage Foundation IOKit Metal OpenGL QuartzCore; }; 16 - AppTrackingTransparency = { inherit Foundation; }; 17 - AppleScriptKit = {}; 18 - AppleScriptObjC = { inherit Foundation; }; 19 - ApplicationServices = { inherit ColorSync CoreFoundation CoreGraphics CoreServices CoreText ImageIO; }; 20 - AudioToolbox = { inherit Carbon CoreAudio CoreAudioTypes CoreFoundation CoreMIDI Foundation; }; 21 - AudioUnit = { inherit AudioToolbox; }; 22 - AudioVideoBridging = { inherit Foundation IOKit; }; 23 - AuthenticationServices = { inherit AppKit Foundation; }; 24 - AutomaticAssessmentConfiguration = { inherit Foundation; }; 25 - Automator = { inherit AppKit Cocoa Foundation OSAKit; }; 26 - BackgroundTasks = { inherit Foundation; }; 27 - BusinessChat = { inherit Cocoa Foundation; }; 28 - CFNetwork = { inherit CoreFoundation; }; 29 - CHIP = { inherit Foundation Security; }; 30 - CalendarStore = {}; 31 - CallKit = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; 32 - Carbon = { inherit ApplicationServices CoreServices Foundation Security; }; 33 - ClassKit = { inherit CoreGraphics Foundation; }; 34 - CloudKit = { inherit CoreFoundation CoreGraphics CoreLocation Foundation IOKit; }; 35 - Cocoa = { inherit AppKit CoreData Foundation; }; 36 - Collaboration = { inherit AppKit CoreServices Foundation; }; 37 - ColorSync = { inherit CoreFoundation; }; 38 - Combine = {}; 39 - Contacts = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; 40 - ContactsUI = { inherit AppKit; }; 41 - CoreAudio = { inherit CoreAudioTypes CoreFoundation; }; 42 - CoreAudioKit = { inherit AppKit AudioUnit Cocoa Foundation; }; 43 - CoreAudioTypes = { inherit CoreFoundation; }; 44 - CoreBluetooth = { inherit Foundation; }; 45 - CoreData = { inherit Combine CoreFoundation CoreGraphics Foundation IOKit; }; 46 - CoreDisplay = {}; 47 - CoreFoundation = {}; 48 - CoreGraphics = { inherit CoreFoundation IOKit; }; 49 - CoreHaptics = { inherit Foundation; }; 50 - CoreImage = { inherit ApplicationServices CoreFoundation CoreGraphics CoreVideo Foundation IOKit IOSurface ImageIO Metal OpenGL; }; 51 - CoreLocation = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; 52 - CoreMIDI = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; 53 - CoreMIDIServer = {}; 54 - CoreML = { inherit CoreFoundation CoreGraphics CoreVideo Foundation IOKit ImageIO Metal; }; 55 - CoreMedia = { inherit CoreAudio CoreAudioTypes CoreFoundation CoreGraphics CoreVideo Foundation IOKit Metal; }; 56 - CoreMediaIO = { inherit CoreAudio CoreFoundation CoreGraphics CoreMedia Foundation IOKit Metal; }; 57 - CoreMotion = { inherit Foundation; }; 58 - CoreServices = { inherit CFNetwork CoreFoundation DiskArbitration Security; }; 59 - CoreSpotlight = { inherit Foundation UniformTypeIdentifiers; }; 60 - CoreTelephony = {}; 61 - CoreText = { inherit CoreFoundation CoreGraphics; }; 62 - CoreVideo = { inherit ApplicationServices CoreFoundation CoreGraphics IOSurface Metal OpenGL; }; 63 - CoreWLAN = { inherit Foundation IOKit; }; 64 - CreateML = { inherit AVFoundation Combine CoreAudio CoreFoundation CoreGraphics CoreImage CoreML CoreMedia CoreServices CoreVideo Foundation IOKit ImageIO Metal MetalPerformanceShaders NaturalLanguage TabularData VideoToolbox Vision simd; }; 65 - CryptoKit = { inherit CoreFoundation CoreGraphics Foundation IOKit LocalAuthentication Security; }; 66 - CryptoTokenKit = { inherit CoreFoundation CoreGraphics Foundation IOKit Security; }; 67 - DVDPlayback = { inherit ApplicationServices CoreFoundation Security; }; 68 - DataDetection = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; 69 - DeveloperToolsSupport = {}; 70 - DeviceActivity = { inherit Foundation ManagedSettings; }; 71 - DeviceCheck = { inherit Foundation; }; 72 - DirectoryService = { inherit CoreFoundation; }; 73 - DiscRecording = { inherit CoreServices Foundation; }; 74 - DiscRecordingUI = { inherit Carbon Cocoa DiscRecording; }; 75 - DiskArbitration = { inherit CoreFoundation IOKit; }; 76 - DriverKit = {}; 77 - EventKit = { inherit CoreGraphics CoreLocation Foundation; }; 78 - ExceptionHandling = { inherit Foundation; }; 79 - ExecutionPolicy = { inherit Foundation; }; 80 - ExposureNotification = { inherit Foundation; }; 81 - ExternalAccessory = { inherit Foundation; }; 82 - FWAUserLib = { inherit IOKit; }; 83 - FileProvider = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; 84 - FileProviderUI = { inherit AppKit FileProvider Foundation; }; 85 - FinderSync = { inherit AppKit Foundation; }; 86 - ForceFeedback = { inherit CoreFoundation IOKit; }; 87 - Foundation = { inherit Combine CoreFoundation CoreGraphics CoreServices IOKit Security; }; 88 - GLKit = { inherit AppKit CoreData CoreFoundation CoreGraphics CoreImage Foundation IOKit Metal ModelIO OpenGL QuartzCore simd; }; 89 - GLUT = { inherit OpenGL; }; 90 - GSS = { inherit CoreFoundation; }; 91 - GameController = { inherit AppKit Foundation IOKit; }; 92 - GameKit = { inherit AppKit Cocoa Contacts CoreGraphics Foundation GameController GameplayKit Metal MetalKit ModelIO SceneKit SpriteKit simd; }; 93 - GameplayKit = { inherit AppKit CoreData CoreFoundation CoreGraphics CoreImage Foundation GLKit IOKit Metal ModelIO QuartzCore SceneKit SpriteKit simd; }; 94 - GroupActivities = { inherit AVFoundation Combine CoreGraphics CryptoKit Foundation Network UniformTypeIdentifiers; }; 95 - Hypervisor = {}; 96 - ICADevices = { inherit CoreFoundation CoreGraphics CoreServices IOBluetooth; }; 97 - IMServicePlugIn = { inherit Foundation; }; 98 - IOBluetooth = { inherit CoreAudio CoreFoundation CoreServices Foundation IOKit; }; 99 - IOBluetoothUI = { inherit Cocoa IOBluetooth; }; 100 - IOKit = { inherit CoreFoundation; }; 101 - IOSurface = { inherit CoreFoundation Foundation IOKit; }; 102 - IOUSBHost = { inherit Foundation IOKit; }; 103 - IdentityLookup = { inherit Foundation; }; 104 - ImageCaptureCore = { inherit Cocoa CoreGraphics Foundation; }; 105 - ImageIO = { inherit CoreFoundation CoreGraphics; }; 106 - InputMethodKit = { inherit Carbon Cocoa Foundation; }; 107 - InstallerPlugins = {}; 108 - InstantMessage = {}; 109 - Intents = { inherit CoreFoundation CoreGraphics CoreLocation Foundation IOKit UserNotifications; }; 110 - IntentsUI = { inherit AppKit; }; 111 - JavaNativeFoundation = { inherit Foundation; }; 112 - JavaRuntimeSupport = { inherit ApplicationServices Cocoa Foundation QuartzCore; }; 113 - JavaScriptCore = { inherit CoreFoundation CoreGraphics Foundation; }; 114 - Kerberos = {}; 115 - Kernel = {}; 116 - KernelManagement = { inherit Foundation; }; 117 - LDAP = {}; 118 - LatentSemanticMapping = { inherit Carbon CoreFoundation; }; 119 - LinkPresentation = { inherit AppKit Foundation; }; 120 - LocalAuthentication = { inherit Foundation; }; 121 - LocalAuthenticationEmbeddedUI = { inherit AppKit Foundation LocalAuthentication; }; 122 - MLCompute = { inherit CoreFoundation CoreGraphics Foundation IOKit Metal; }; 123 - MailKit = { inherit AppKit Foundation; }; 124 - ManagedSettings = { inherit Combine Foundation; }; 125 - MapKit = { inherit AppKit CoreData CoreFoundation CoreGraphics CoreImage CoreLocation Foundation IOKit Metal QuartzCore; }; 126 - MediaAccessibility = { inherit CoreFoundation CoreGraphics CoreText; }; 127 - MediaLibrary = { inherit Foundation; }; 128 - MediaPlayer = { inherit AVFoundation CoreGraphics Foundation; }; 129 - MediaToolbox = { inherit AudioToolbox CoreFoundation CoreMedia; }; 130 - Message = {}; 131 - Metal = { inherit CoreFoundation CoreGraphics Foundation IOKit IOSurface; }; 132 - MetalKit = { inherit AppKit CoreData CoreFoundation CoreGraphics CoreImage Foundation IOKit Metal ModelIO QuartzCore simd; }; 133 - MetalPerformanceShaders = { inherit CoreGraphics Foundation Metal simd; }; 134 - MetalPerformanceShadersGraph = { inherit Foundation MetalPerformanceShaders; }; 135 - MetricKit = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; 136 - ModelIO = { inherit CoreFoundation CoreGraphics Foundation IOKit simd; }; 137 - MultipeerConnectivity = { inherit Cocoa Foundation; }; 138 - MusicKit = { inherit Combine CoreGraphics Foundation; }; 139 - NaturalLanguage = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; 140 - NearbyInteraction = { inherit CoreFoundation CoreGraphics Foundation IOKit simd; }; 141 - NetFS = { inherit CoreFoundation; }; 142 - Network = { inherit CoreFoundation Foundation Security; }; 143 - NetworkExtension = { inherit Foundation Network Security; }; 144 - NotificationCenter = { inherit AppKit Foundation; }; 145 - OSAKit = { inherit Carbon Cocoa; }; 146 - OSLog = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; 147 - OpenAL = {}; 148 - OpenCL = { inherit OpenGL; }; 149 - OpenDirectory = { inherit CoreFoundation Foundation; }; 150 - OpenGL = {}; 151 - PCSC = {}; 152 - PDFKit = { inherit AppKit Cocoa; }; 153 - PHASE = { inherit AVFAudio AVFoundation CoreAudioTypes Foundation ModelIO simd; }; 154 - ParavirtualizedGraphics = { inherit AppKit CoreVideo Foundation IOSurface Metal; }; 155 - PassKit = { inherit AppKit Contacts CoreData CoreFoundation CoreGraphics CoreImage Foundation IOKit Metal QuartzCore; }; 156 - PencilKit = { inherit AppKit Cocoa CoreData CoreFoundation CoreGraphics CoreImage Foundation IOKit Metal QuartzCore; }; 157 - Photos = { inherit AVFoundation CoreAudio CoreFoundation CoreGraphics CoreImage CoreLocation CoreMIDI CoreMedia Foundation IOKit ImageIO Metal QuartzCore UniformTypeIdentifiers simd; }; 158 - PhotosUI = { inherit AppKit Foundation MapKit Photos; }; 159 - PreferencePanes = { inherit Cocoa; }; 160 - PushKit = { inherit Foundation; }; 161 - QTKit = {}; 162 - Quartz = { inherit AppKit ApplicationServices Cocoa Foundation ImageCaptureCore OpenGL PDFKit QuartzCore QuickLookUI; }; 163 - QuartzCore = { inherit CoreFoundation CoreGraphics CoreImage CoreVideo Foundation IOKit Metal OpenGL; }; 164 - QuickLook = { inherit ApplicationServices CoreFoundation; }; 165 - QuickLookThumbnailing = { inherit CoreGraphics Foundation UniformTypeIdentifiers; }; 166 - QuickLookUI = { inherit AppKit CoreData CoreFoundation CoreGraphics CoreImage Foundation IOKit Metal PDFKit QuartzCore QuickLook UniformTypeIdentifiers; }; 167 - RealityFoundation = { inherit AVFAudio AVFoundation AppKit AudioToolbox Combine CoreAudio CoreFoundation CoreGraphics CoreMIDI CoreMedia CoreMotion CoreText CoreVideo Foundation IOKit Metal QuartzCore simd; }; 168 - RealityKit = { inherit AppKit Combine CoreData CoreFoundation CoreGraphics CoreImage Foundation IOKit Metal MultipeerConnectivity QuartzCore RealityFoundation simd; }; 169 - ReplayKit = { inherit AVFoundation AppKit Foundation; }; 170 - Ruby = {}; 171 - SafariServices = { inherit AppKit CoreData CoreFoundation CoreGraphics CoreImage Foundation IOKit Metal QuartzCore; }; 172 - SceneKit = { inherit AppKit CoreData CoreFoundation CoreGraphics CoreImage Foundation GLKit IOKit Metal ModelIO QuartzCore simd; }; 173 - ScreenCaptureKit = { inherit AppKit CoreGraphics CoreMedia Foundation; }; 174 - ScreenSaver = { inherit AppKit Foundation; }; 175 - ScreenTime = { inherit AppKit Foundation; }; 176 - ScriptingBridge = { inherit ApplicationServices CoreServices Foundation; }; 177 - Security = { inherit CoreFoundation; }; 178 - SecurityFoundation = { inherit Foundation Security; }; 179 - SecurityInterface = { inherit AppKit Cocoa Security SecurityFoundation; }; 180 - SensorKit = { inherit CoreFoundation CoreLocation Foundation; }; 181 - ServiceManagement = { inherit CoreFoundation Security; }; 182 - ShazamKit = { inherit AVFAudio CoreAudio CoreFoundation CoreGraphics CoreMIDI CoreMedia Foundation IOKit Metal MusicKit; }; 183 - Social = { inherit AppKit Foundation; }; 184 - SoundAnalysis = { inherit AVFoundation CoreAudio CoreFoundation CoreGraphics CoreImage CoreMIDI CoreML CoreMedia Foundation IOKit Metal QuartzCore UniformTypeIdentifiers simd; }; 185 - Speech = { inherit AVFoundation CoreAudio CoreFoundation CoreGraphics CoreImage CoreMIDI CoreMedia Foundation IOKit Metal QuartzCore UniformTypeIdentifiers simd; }; 186 - SpriteKit = { inherit AppKit Cocoa CoreData CoreFoundation CoreGraphics CoreImage Foundation GLKit IOKit Metal ModelIO QuartzCore simd; }; 187 - StoreKit = { inherit AppKit CoreData CoreFoundation CoreGraphics CoreImage CryptoKit Foundation IOKit Metal QuartzCore Security; }; 188 - SwiftUI = { inherit Accessibility AppKit Combine CoreData CoreFoundation CoreGraphics CoreImage DeveloperToolsSupport Foundation IOKit Metal QuartzCore UniformTypeIdentifiers; }; 189 - SyncServices = {}; 190 - System = {}; 191 - SystemConfiguration = { inherit CoreFoundation Security; }; 192 - SystemExtensions = { inherit Foundation; }; 193 - TWAIN = {}; 194 - TabularData = { inherit Combine Foundation; }; 195 - Tcl = {}; 196 - Tk = {}; 197 - UniformTypeIdentifiers = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; 198 - UserNotifications = { inherit Foundation; }; 199 - UserNotificationsUI = { inherit AppKit; }; 200 - VideoDecodeAcceleration = {}; 201 - VideoSubscriberAccount = { inherit Foundation; }; 202 - VideoToolbox = { inherit CoreFoundation CoreGraphics CoreMedia CoreVideo; }; 203 - Virtualization = { inherit AppKit Cocoa CoreData CoreFoundation CoreGraphics CoreImage Foundation IOKit Metal QuartzCore; }; 204 - Vision = { inherit CoreAudio CoreFoundation CoreGraphics CoreML CoreMedia CoreVideo Foundation IOKit ImageIO Metal simd; }; 205 - WebKit = { inherit AppKit CoreData CoreFoundation CoreGraphics CoreImage Foundation IOKit JavaScriptCore Metal QuartzCore; }; 206 - WidgetKit = { inherit Combine CoreFoundation CoreGraphics Foundation IOKit Intents SwiftUI UniformTypeIdentifiers; }; 207 - iTunesLibrary = { inherit Foundation; }; 208 - vmnet = {}; 209 - }
···
-96
pkgs/os-specific/darwin/apple-sdk-12.3/libSystem.nix
··· 1 - { 2 - stdenvNoCC, 3 - buildPackages, 4 - darwin-stubs, 5 - }: 6 - 7 - stdenvNoCC.mkDerivation { 8 - pname = "libSystem"; 9 - inherit (darwin-stubs) version; 10 - 11 - nativeBuildInputs = [ buildPackages.darwin.rewrite-tbd ]; 12 - 13 - csu = [ 14 - "bundle1.o" 15 - "crt0.o" 16 - "crt1.10.5.o" 17 - "crt1.10.6.o" 18 - "crt1.o" 19 - "dylib1.10.5.o" 20 - "dylib1.o" 21 - "gcrt1.o" 22 - "lazydylib1.o" 23 - ]; 24 - 25 - buildCommand = 26 - '' 27 - mkdir -p $out/{include,lib/swift} 28 - '' 29 - # Copy each directory in ${darwin-stubs}/usr/include into $out/include 30 - + '' 31 - for dir in $(ls -d ${darwin-stubs}/usr/include/*/); do 32 - cp -dr $dir $out/include 33 - done 34 - '' 35 - # Copy each header and modulemap file in ${darwin-stubs}/usr/include into $out/include 36 - + '' 37 - cp -d \ 38 - ${darwin-stubs}/usr/include/*.h \ 39 - ${darwin-stubs}/usr/include/*.modulemap \ 40 - $out/include 41 - '' 42 - # Remove curses.h, ncurses.h, ncurses_dll.h, and unctrl.h which conflict with ncurses. 43 - # Then, remove the module map for ncurses. 44 - # NOTE: The sed expression expects the module map to use consistent indentation across 45 - # releases. If this changes, the sed expression will need to be updated. 46 - # 47 - # For example, right now we assume that there is one leading space before the 48 - # "explicit" keyword and that the closing brace is on its own line (also with one 49 - # leading space). 50 - + '' 51 - rm $out/include/{curses,ncurses,ncurses_dll,unctrl}.h 52 - sed -i -e '/^ explicit module ncurses {/,/^ }$/d' $out/include/module.modulemap 53 - '' 54 - + '' 55 - rm $out/include/tk*.h $out/include/tcl*.h 56 - 57 - cp -dr \ 58 - ${darwin-stubs}/usr/lib/libSystem.* \ 59 - ${darwin-stubs}/usr/lib/system \ 60 - $out/lib 61 - 62 - # Extra libraries 63 - for name in c dbm dl info m mx poll proc pthread rpcsvc util gcc_s.1 resolv; do 64 - cp -d \ 65 - ${darwin-stubs}/usr/lib/lib$name.tbd \ 66 - ${darwin-stubs}/usr/lib/lib$name.*.tbd \ 67 - $out/lib 68 - done 69 - 70 - for name in os Dispatch; do 71 - cp -dr \ 72 - ${darwin-stubs}/usr/lib/swift/$name.swiftmodule \ 73 - ${darwin-stubs}/usr/lib/swift/libswift$name.tbd \ 74 - $out/lib/swift 75 - done 76 - 77 - for f in $csu; do 78 - from=${darwin-stubs}/usr/lib/$f 79 - if [ -e "$from" ]; then 80 - cp -d $from $out/lib 81 - else 82 - echo "Csu file '$from' doesn't exist: skipping" 83 - fi 84 - done 85 - 86 - chmod u+w -R $out/lib 87 - find $out -name '*.tbd' -type f | while read tbd; do 88 - rewrite-tbd \ 89 - -c /usr/lib/libsystem.dylib:$out/lib/libsystem.dylib \ 90 - -p /usr/lib/system/:$out/lib/system/ \ 91 - -p /usr/lib/swift/:$out/lib/swift/ \ 92 - -r ${builtins.storeDir} \ 93 - "$tbd" 94 - done 95 - ''; 96 - }
···
-16
pkgs/os-specific/darwin/apple-sdk-12.3/libnetwork.nix
··· 1 - { stdenvNoCC, darwin-stubs }: 2 - 3 - let 4 - self = stdenvNoCC.mkDerivation { 5 - pname = "libnetwork"; 6 - inherit (darwin-stubs) version; 7 - 8 - buildCommand = '' 9 - mkdir -p $out/lib 10 - cp ${darwin-stubs}/usr/lib/libnetwork* $out/lib 11 - ''; 12 - 13 - passthru.tbdRewrites.const."/usr/lib/libnetwork.dylib" = "${self}/lib/libnetwork.dylib"; 14 - }; 15 - in 16 - self
···
-22
pkgs/os-specific/darwin/apple-sdk-12.3/libobjc.nix
··· 1 - { stdenvNoCC, darwin-stubs }: 2 - 3 - let 4 - self = stdenvNoCC.mkDerivation { 5 - pname = "libobjc"; 6 - inherit (darwin-stubs) version; 7 - 8 - buildCommand = '' 9 - mkdir -p $out/{include,lib/swift} 10 - cp -r ${darwin-stubs}/usr/include/objc $out/include 11 - cp ${darwin-stubs}/usr/lib/libobjc* $out/lib 12 - cp -r ${darwin-stubs}/usr/lib/swift/ObjectiveC.swiftmodule $out/lib/swift 13 - cp ${darwin-stubs}/usr/lib/swift/libswiftObjectiveC.tbd $out/lib/swift 14 - ''; 15 - 16 - passthru.tbdRewrites = { 17 - const."/usr/lib/libobjc.A.dylib" = "${self}/lib/libobjc.A.dylib"; 18 - const."/usr/lib/swift/libswiftObjectiveC.dylib" = "${self}/lib/swift/libswiftObjectiveC.dylib"; 19 - }; 20 - }; 21 - in 22 - self
···
-25
pkgs/os-specific/darwin/apple-sdk-12.3/libpm.nix
··· 1 - { 2 - stdenvNoCC, 3 - buildPackages, 4 - darwin-stubs, 5 - }: 6 - 7 - stdenvNoCC.mkDerivation { 8 - pname = "libpm"; 9 - inherit (darwin-stubs) version; 10 - 11 - dontUnpack = true; 12 - dontBuild = true; 13 - 14 - nativeBuildInputs = [ buildPackages.darwin.checkReexportsHook ]; 15 - 16 - installPhase = '' 17 - mkdir -p $out/lib 18 - cp ${darwin-stubs}/usr/lib/libpm* $out/lib 19 - ''; 20 - 21 - passthru.tbdRewrites = { 22 - const."/usr/lib/libpmenergy.dylib" = "${placeholder "out"}/lib/libpmenergy.dylib"; 23 - const."/usr/lib/libpmsample.dylib" = "${placeholder "out"}/lib/libpmsample.dylib"; 24 - }; 25 - }
···
-30
pkgs/os-specific/darwin/apple-sdk-12.3/libs/Xplugin.nix
··· 1 - { 2 - frameworks, 3 - darwin-stubs, 4 - stdenvNoCC, 5 - }: 6 - 7 - stdenvNoCC.mkDerivation { 8 - pname = "apple-lib-Xplugin"; 9 - inherit (darwin-stubs) version; 10 - 11 - dontUnpack = true; 12 - dontBuild = true; 13 - 14 - propagatedBuildInputs = with frameworks; [ 15 - OpenGL 16 - ApplicationServices 17 - Carbon 18 - IOKit 19 - CoreGraphics 20 - CoreServices 21 - CoreText 22 - ]; 23 - 24 - installPhase = '' 25 - mkdir -p $out/include $out/lib 26 - cp "${darwin-stubs}/include/Xplugin.h" $out/include/Xplugin.h 27 - cp ${darwin-stubs}/usr/lib/libXplugin.1.tbd $out/lib 28 - ln -s libXplugin.1.tbd $out/lib/libXplugin.tbd 29 - ''; 30 - }
···
-10
pkgs/os-specific/darwin/apple-sdk-12.3/libs/default.nix
··· 1 - { callPackage }: 2 - 3 - { 4 - libDER = callPackage ./libDER.nix { }; 5 - sandbox = callPackage ./sandbox.nix { }; 6 - simd = callPackage ./simd.nix { }; 7 - utmp = callPackage ./utmp.nix { }; 8 - xpc = callPackage ./xpc.nix { }; 9 - Xplugin = callPackage ./Xplugin.nix { }; 10 - }
···
-11
pkgs/os-specific/darwin/apple-sdk-12.3/libs/libDER.nix
··· 1 - { darwin-stubs, stdenvNoCC }: 2 - 3 - stdenvNoCC.mkDerivation { 4 - pname = "apple-lib-libDER"; 5 - inherit (darwin-stubs) version; 6 - 7 - buildCommand = '' 8 - mkdir -p $out/include 9 - cp -r ${darwin-stubs}/usr/include/libDER $out/include 10 - ''; 11 - }
···
-13
pkgs/os-specific/darwin/apple-sdk-12.3/libs/sandbox.nix
··· 1 - { darwin-stubs, stdenvNoCC }: 2 - 3 - stdenvNoCC.mkDerivation { 4 - pname = "apple-lib-sandbox"; 5 - inherit (darwin-stubs) version; 6 - 7 - buildCommand = '' 8 - mkdir -p $out/include $out/lib 9 - cp "${darwin-stubs}/usr/include/sandbox.h" $out/include/sandbox.h 10 - cp "${darwin-stubs}/usr/lib/libsandbox.1.tbd" $out/lib 11 - ln -s libsandbox.1.tbd $out/lib/libsandbox.tbd 12 - ''; 13 - }
···
-11
pkgs/os-specific/darwin/apple-sdk-12.3/libs/simd.nix
··· 1 - { darwin-stubs, stdenvNoCC }: 2 - 3 - stdenvNoCC.mkDerivation { 4 - pname = "apple-lib-simd"; 5 - inherit (darwin-stubs) version; 6 - 7 - buildCommand = '' 8 - mkdir -p $out/include 9 - cp -r ${darwin-stubs}/usr/include/simd $out/include 10 - ''; 11 - }
···
-12
pkgs/os-specific/darwin/apple-sdk-12.3/libs/utmp.nix
··· 1 - { darwin-stubs, stdenvNoCC }: 2 - 3 - stdenvNoCC.mkDerivation { 4 - pname = "apple-lib-utmp"; 5 - inherit (darwin-stubs) version; 6 - 7 - buildCommand = '' 8 - mkdir -p $out/include 9 - cp "${darwin-stubs}/include/utmp.h" $out/include 10 - cp "${darwin-stubs}/include/utmpx.h" $out/include 11 - ''; 12 - }
···
-12
pkgs/os-specific/darwin/apple-sdk-12.3/libs/xpc.nix
··· 1 - { darwin-stubs, stdenvNoCC }: 2 - 3 - stdenvNoCC.mkDerivation { 4 - pname = "apple-lib-xpc"; 5 - inherit (darwin-stubs) version; 6 - 7 - buildCommand = '' 8 - mkdir -p $out/include 9 - cp -r "${darwin-stubs}/usr/include/xpc" $out/include/xpc 10 - cp "${darwin-stubs}/usr/include/launch.h" $out/include/launch.h 11 - ''; 12 - }
···
-28
pkgs/os-specific/darwin/apple-sdk-12.3/libunwind.nix
··· 1 - { 2 - stdenvNoCC, 3 - buildPackages, 4 - darwin-stubs, 5 - }: 6 - 7 - stdenvNoCC.mkDerivation { 8 - pname = "libunwind"; 9 - inherit (darwin-stubs) version; 10 - 11 - dontUnpack = true; 12 - dontBuild = true; 13 - 14 - nativeBuildInputs = [ buildPackages.darwin.checkReexportsHook ]; 15 - 16 - installPhase = '' 17 - mkdir -p $out/include/mach-o 18 - 19 - cp \ 20 - ${darwin-stubs}/usr/include/libunwind.h \ 21 - ${darwin-stubs}/usr/include/unwind.h \ 22 - $out/include 23 - 24 - cp \ 25 - ${darwin-stubs}/usr/include/mach-o/compact_unwind_encoding.h \ 26 - $out/include/mach-o 27 - ''; 28 - }
···
+2 -2
pkgs/top-level/darwin-packages.nix
··· 93 }; 94 95 stubs = { 96 - inherit apple_sdk_11_0; 97 } // lib.genAttrs [ 98 ] (mkStub apple_sdk.version); 99 in 100 101 impure-cmds // appleSourcePackages // chooseLibs // stubs // { 102 103 - inherit apple_sdk apple_sdk_10_12 apple_sdk_12_3; 104 105 stdenvNoCF = stdenv.override { 106 extraBuildInputs = [];
··· 93 }; 94 95 stubs = { 96 + inherit apple_sdk_11_0 apple_sdk_12_3; 97 } // lib.genAttrs [ 98 ] (mkStub apple_sdk.version); 99 in 100 101 impure-cmds // appleSourcePackages // chooseLibs // stubs // { 102 103 + inherit apple_sdk apple_sdk_10_12; 104 105 stdenvNoCF = stdenv.override { 106 extraBuildInputs = [];