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; converted to throws in 25.11. 49 50 mkThrow = 51 name: 52 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"; 53 54 apple_sdk_11_0 = mkThrow "apple_sdk_11_0"; 55 56 apple_sdk_12_3 = mkThrow "apple_sdk_12_3"; 57 58 apple_sdk = apple_sdk_11_0; 59 60 stubs = { 61 inherit apple_sdk apple_sdk_11_0 apple_sdk_12_3; 62 } 63 // lib.genAttrs [ 64 "CF" 65 "CarbonHeaders" 66 "CommonCrypto" 67 "CoreSymbolication" 68 "IOKit" 69 "Libc" 70 "Libinfo" 71 "Libm" 72 "Libnotify" 73 "Librpcsvc" 74 "Libsystem" 75 "LibsystemCross" 76 "Security" 77 "architecture" 78 "cf-private" 79 "configd" 80 "configdHeaders" 81 "darwin-stubs" 82 "dtrace" 83 "eap8021x" 84 "hfs" 85 "hfsHeaders" 86 "launchd" 87 "libclosure" 88 "libdispatch" 89 "libmalloc" 90 "libobjc" 91 "libplatform" 92 "libpthread" 93 "mDNSResponder" 94 "objc4" 95 "ppp" 96 "xnu" 97 ] mkThrow; 98in 99 100stubs 101// mapAliases ({ 102 ### A ### 103 104 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 105 106 ### B ### 107 108 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 109 bsdmake = pkgs.bmake; # added 2024-10-03 110 111 ### C ### 112 113 cctools = pkgs.cctools; # added 2024-07-17 114 cctools-apple = pkgs.cctools; # added 2024-07-01 115 cctools-llvm = pkgs.cctools; # added 2024-07-01 116 cctools-port = pkgs.cctools; # added 2024-07-17 117 118 ### D ### 119 120 discrete-scroll = pkgs.discrete-scroll; # added 2024-11-27 121 122 ### I ### 123 124 insert_dylib = throw "'darwin.insert_dylib' has been renamed to 'insert-dylib'"; # added 2024-04-04 125 ios-deploy = throw "'darwin.ios-deploy' has been renamed to 'ios-deploy'"; # added 2024-11-28 126 iproute2mac = lib.warnOnInstantiate "darwin.iproute2mac has been renamed to iproute2mac" pkgs.iproute2mac; # added 2024-12-08 127 128 ### L ### 129 130 libauto = throw "'darwin.libauto' has been removed, as it was broken and unmaintained"; # added 2024-05-10 131 libresolvHeaders = throw "darwin.libresolvHeaders has been removed; use `lib.getInclude darwin.libresolv`"; # converted to throw 2025-07-29 132 libtapi = pkgs.libtapi; # 2024-08-16 133 libutilHeaders = throw "darwin.libutilHeaders has been removed; use `lib.getInclude darwin.libutil`"; # converted to throw 2025-07-29 134 135 ### M ### 136 137 moltenvk = pkgs.moltenvk; # 2024-10-06 138 139 ### O ### 140 141 opencflite = pkgs.opencflite; # added 2024-05-02 142 143 ### P ### 144 postLinkSignHook = throw "'darwin.postLinkSignHook' has been removed because it is obsolete"; # added 2025-02-23 145 print-reexports = throw "'darwin.print-reexports' has been removed as it was unused"; # added 2025-04-20 146 147 ### R ### 148 149 rewrite-tbd = throw "'darwin.rewrite-tbd' has been removed, as it was unused and replaced by `llvm-readtapi(1)`"; # added 2025-04-20 150 151 ### S ### 152 153 stdenvNoCF = throw "darwin.stdenvNoCF has been removed; use `stdenv` or `stdenvNoCC`"; # converted to throw 2025-07-29 154 stubs = throw "'darwin.stubs.*' have been removed as they were unused"; # added 2025-04-20 155 swift-corelibs-foundation = throw "'darwin.swift-corelibs-foundation' has been removed, as it was broken and is no longer used"; # added 2025-04-20 156})