forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdarwin-aliases.nix
More file actions
157 lines (120 loc) · 5.31 KB
/
darwin-aliases.nix
File metadata and controls
157 lines (120 loc) · 5.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
lib: self: super: pkgs:
### Deprecated aliases - for backward compatibility
### Please maintain this list in ASCIIbetical ordering.
### Hint: the "sections" are delimited by ### <letter> ###
# These aliases should not be used within nixpkgs, but exist to improve
# backward compatibility in projects outside of nixpkgs. See the
# documentation for the `allowAliases` option for more background.
# A script to convert old aliases to throws and remove old
# throws can be found in './maintainers/scripts/remove-old-aliases.py'.
# Add 'preserve, reason: reason why' after the date if the alias should not be removed.
# Try to keep them to a minimum.
# valid examples of what to preserve:
# distro aliases such as:
# debian-package-name -> nixos-package-name
# pkgs is provided to allow packages to be moved out of the darwin attrset.
let
# Removing recurseForDerivation prevents derivations of aliased attribute set
# to appear while listing all the packages available.
removeRecurseForDerivations =
alias:
if alias.recurseForDerivations or false then
lib.removeAttrs alias [ "recurseForDerivations" ]
else
alias;
# Disabling distribution prevents top-level aliases for non-recursed package
# sets from building on Hydra.
removeDistribute = alias: if lib.isDerivation alias then lib.dontDistribute alias else alias;
# Make sure that we are not shadowing something from darwin-packages.nix.
checkInPkgs =
n: alias:
if builtins.hasAttr n super then throw "Alias ${n} is still in darwin-packages.nix" else alias;
mapAliases = lib.mapAttrs (
n: alias: removeDistribute (removeRecurseForDerivations (checkInPkgs n alias))
);
# Old Darwin pattern stubs; converted to throws in 25.11.
mkThrow =
name:
throw "darwin.${name} has been removed as it was a legacy compatibility stub; see <https://nixos.org/manual/nixpkgs/stable/#sec-darwin-legacy-frameworks> for migration instructions";
apple_sdk_11_0 = mkThrow "apple_sdk_11_0";
apple_sdk_12_3 = mkThrow "apple_sdk_12_3";
apple_sdk = apple_sdk_11_0;
stubs = {
inherit apple_sdk apple_sdk_11_0 apple_sdk_12_3;
}
// lib.genAttrs [
"CF"
"CarbonHeaders"
"CommonCrypto"
"CoreSymbolication"
"IOKit"
"Libc"
"Libinfo"
"Libm"
"Libnotify"
"Librpcsvc"
"Libsystem"
"LibsystemCross"
"Security"
"architecture"
"cf-private"
"configd"
"configdHeaders"
"darwin-stubs"
"dtrace"
"eap8021x"
"hfs"
"hfsHeaders"
"launchd"
"libclosure"
"libdispatch"
"libmalloc"
"libobjc"
"libplatform"
"libpthread"
"mDNSResponder"
"objc4"
"ppp"
"xnu"
] mkThrow;
in
stubs
// mapAliases {
### A ###
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
### B ###
builder = throw "'darwin.builder' has been changed and renamed to 'darwin.linux-builder'. The default ssh port is now 31022. Please update your configuration or override the port back to 22. See https://nixos.org/manual/nixpkgs/unstable/#sec-darwin-builder"; # added 2023-07-06
bsdmake = pkgs.bmake; # added 2024-10-03
### C ###
cctools = pkgs.cctools; # added 2024-07-17
cctools-apple = pkgs.cctools; # added 2024-07-01
cctools-llvm = pkgs.cctools; # added 2024-07-01
cctools-port = pkgs.cctools; # added 2024-07-17
### D ###
discrete-scroll = pkgs.discrete-scroll; # added 2024-11-27
ditto = throw "'darwin.ditto' has been removed, because it was impure and unused"; # added 2025-10-18
### I ###
insert_dylib = throw "'darwin.insert_dylib' has been renamed to 'insert-dylib'"; # added 2024-04-04
ios-deploy = throw "'darwin.ios-deploy' has been renamed to 'ios-deploy'"; # added 2024-11-28
iproute2mac = lib.warnOnInstantiate "darwin.iproute2mac has been renamed to iproute2mac" pkgs.iproute2mac; # added 2024-12-08
### L ###
libauto = throw "'darwin.libauto' has been removed, as it was broken and unmaintained"; # added 2024-05-10
libresolvHeaders = throw "darwin.libresolvHeaders has been removed; use `lib.getInclude darwin.libresolv`"; # converted to throw 2025-07-29
libtapi = pkgs.libtapi; # 2024-08-16
libutilHeaders = throw "darwin.libutilHeaders has been removed; use `lib.getInclude darwin.libutil`"; # converted to throw 2025-07-29
### M ###
moltenvk = pkgs.moltenvk; # 2024-10-06
### O ###
opencflite = pkgs.opencflite; # added 2024-05-02
openwith = pkgs.openwith; # added 2025-11-28
### P ###
postLinkSignHook = throw "'darwin.postLinkSignHook' has been removed because it is obsolete"; # added 2025-02-23
print-reexports = throw "'darwin.print-reexports' has been removed as it was unused"; # added 2025-04-20
### R ###
rewrite-tbd = throw "'darwin.rewrite-tbd' has been removed, as it was unused and replaced by `llvm-readtapi(1)`"; # added 2025-04-20
### S ###
stdenvNoCF = throw "darwin.stdenvNoCF has been removed; use `stdenv` or `stdenvNoCC`"; # converted to throw 2025-07-29
stubs = throw "'darwin.stubs.*' have been removed as they were unused"; # added 2025-04-20
sudo = throw "'darwin.sudo' has been removed, because it was impure and unused"; # added 2025-10-18
swift-corelibs-foundation = throw "'darwin.swift-corelibs-foundation' has been removed, as it was broken and is no longer used"; # added 2025-04-20
}