···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}:
1213let
···1# Compatibility stubs for packages that used the old SDK frameworks.
02{
3 lib,
4 callPackage,
005 pkgs,
006}:
78let
···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}:
1213let
···1# Compatibility stubs for packages that used the old SDK frameworks.
02{
3 lib,
4 callPackage,
005 pkgs,
006}:
78let
+74-3
pkgs/top-level/darwin-aliases.nix
···44 mapAliases = lib.mapAttrs (
45 n: alias: removeDistribute (removeRecurseForDerivations (checkInPkgs n alias))
46 );
0000000000000000000000000000000000000000000000000000000000047in
4849-mapAliases ({
050 ### A ###
5152 apple_sdk_10_12 = throw "darwin.apple_sdk_10_12 was removed as Nixpkgs no longer supports macOS 10.12; see the 25.05 release notes"; # Added 2024-10-27
···63 cctools-llvm = pkgs.cctools; # added 2024-07-01
64 cctools-port = pkgs.cctools; # added 2024-07-17
6566- cf-private = throw "'cf-private' has been renamed to 'apple_sdk.frameworks.CoreFoundation'.";
67-68 ### D ###
6970 discrete-scroll = pkgs.discrete-scroll; # added 2024-11-27
···78 ### L ###
7980 libauto = throw "'darwin.libauto' has been removed, as it was broken and unmaintained"; # added 2024-05-10
00081 libtapi = pkgs.libtapi; # 2024-08-16
0008283 ### M ###
84···9899 ### S ###
1000000000101 stubs = throw "'darwin.stubs.*' have been removed as they were unused"; # added 2025-04-20
102 swift-corelibs-foundation = throw "'darwin.swift-corelibs-foundation' has been removed, as it was broken and is no longer used"; # added 2025-04-20
103})
···44 mapAliases = lib.mapAttrs (
45 n: alias: removeDistribute (removeRecurseForDerivations (checkInPkgs n alias))
46 );
47+48+ # Old Darwin pattern stubs; remove these by 25.11.
49+50+ mkStub = pkgs.callPackage ../os-specific/darwin/apple-sdk/mk-stub.nix { };
51+52+ warnStub =
53+ prefix:
54+ lib.warn "${prefix} these stubs do nothing and will be removed in Nixpkgs 25.11; see <https://nixos.org/manual/nixpkgs/stable/#sec-darwin> for documentation and migration instructions";
55+56+ apple_sdk_11_0 = warnStub "darwin.apple_sdk_11_0.*:" (
57+ pkgs.callPackage ../os-specific/darwin/apple-sdk-11.0 { }
58+ );
59+60+ apple_sdk_12_3 =
61+ warnStub
62+ "darwin.apple_sdk_12_3.*: add `apple-sdk_12` to build inputs instead to use the macOS 12 SDK."
63+ (pkgs.callPackage ../os-specific/darwin/apple-sdk-12.3 { });
64+65+ apple_sdk = apple_sdk_11_0;
66+67+ stubs =
68+ {
69+ inherit apple_sdk apple_sdk_11_0 apple_sdk_12_3;
70+ }
71+ // lib.genAttrs [
72+ "CF"
73+ "CarbonHeaders"
74+ "CommonCrypto"
75+ "CoreSymbolication"
76+ "IOKit"
77+ "Libc"
78+ "Libinfo"
79+ "Libm"
80+ "Libnotify"
81+ "Librpcsvc"
82+ "Libsystem"
83+ "LibsystemCross"
84+ "Security"
85+ "architecture"
86+ "cf-private"
87+ "configd"
88+ "configdHeaders"
89+ "darwin-stubs"
90+ "dtrace"
91+ "eap8021x"
92+ "hfs"
93+ "hfsHeaders"
94+ "launchd"
95+ "libclosure"
96+ "libdispatch"
97+ "libmalloc"
98+ "libobjc"
99+ "libplatform"
100+ "libpthread"
101+ "mDNSResponder"
102+ "objc4"
103+ "ppp"
104+ "xnu"
105+ ] (name: warnStub "darwin.${name}:" (mkStub "11.0" name));
106in
107108+stubs
109+// mapAliases ({
110 ### A ###
111112 apple_sdk_10_12 = throw "darwin.apple_sdk_10_12 was removed as Nixpkgs no longer supports macOS 10.12; see the 25.05 release notes"; # Added 2024-10-27
···123 cctools-llvm = pkgs.cctools; # added 2024-07-01
124 cctools-port = pkgs.cctools; # added 2024-07-17
12500126 ### D ###
127128 discrete-scroll = pkgs.discrete-scroll; # added 2024-11-27
···136 ### L ###
137138 libauto = throw "'darwin.libauto' has been removed, as it was broken and unmaintained"; # added 2024-05-10
139+ libresolvHeaders = lib.warn "darwin.libresolvHeaders: use `lib.getInclude darwin.libresolv`; this will be removed in 25.11" (
140+ lib.getDev self.libresolv
141+ ); # added 2025-04-20
142 libtapi = pkgs.libtapi; # 2024-08-16
143+ libutilHeaders = lib.warn "darwin.libutilHeaders: use `lib.getInclude darwin.libutil`; this will be removed in 25.11" (
144+ lib.getDev self.libutil
145+ ); # added 2025-04-20
146147 ### M ###
148···162163 ### S ###
164165+ stdenvNoCF =
166+ lib.warn "darwin.stdenvNoCF: use `stdenv` or `stdenvNoCC`; this will be removed in 25.11"
167+ (
168+ pkgs.stdenv.override {
169+ extraBuildInputs = [ ];
170+ }
171+ ); # added 2025-04-20
172 stubs = throw "'darwin.stubs.*' have been removed as they were unused"; # added 2025-04-20
173 swift-corelibs-foundation = throw "'darwin.swift-corelibs-foundation' has been removed, as it was broken and is no longer used"; # added 2025-04-20
174})