forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / top-level / darwin-aliases.nix
blob6fafa5f487c4592b4018a63baafac10f0e27ea7f
1 lib: self: super: pkgs:
3 ### Deprecated aliases - for backward compatibility
5 ### Please maintain this list in ASCIIbetical ordering.
6 ### Hint: the "sections" are delimited by ### <letter> ###
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.
12 # A script to convert old aliases to throws and remove old
13 # throws can be found in './maintainers/scripts/remove-old-aliases.py'.
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
21 # pkgs is provided to allow packages to be moved out of the darwin attrset.
23 with self;
25 let
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;
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;
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;
44   mapAliases = lib.mapAttrs (
45     n: alias: removeDistribute (removeRecurseForDerivations (checkInPkgs n alias))
46   );
49 mapAliases ({
50   ### B ###
52   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
53   bsdmake = pkgs.bmake; # added 2024-10-03
55   ### C ###
57   cctools = pkgs.cctools; # added 2024-07-17
58   cctools-apple = pkgs.cctools; # added 2024-07-01
59   cctools-llvm = pkgs.cctools; # added 2024-07-01
60   cctools-port = pkgs.cctools; # added 2024-07-17
62   ### I ###
64   insert_dylib = throw "'darwin.insert_dylib' has been renamed to 'insert-dylib'"; # added 2024-04-04
66   ### L ###
68   libauto = throw "'darwin.libauto' has been removed, as it was broken and unmaintained"; # added 2024-05-10
69   libtapi = pkgs.libtapi; # 2024-08-16
71   ### M ###
73   moltenvk = pkgs.moltenvk; # 2024-10-06
75   ### O ###
77   opencflite = pkgs.opencflite; # added 2024-05-02