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