Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1pkgs: lib: self: super:
2
3### Deprecated aliases - for backward compatibility
4###
5### !!! NOTE !!!
6### Use `./remove-attr.py [attrname]` in this directory to remove your alias
7### from the `nodePackages` set without regenerating the entire file.
8
9with self;
10
11let
12 # Removing recurseForDerivation prevents derivations of aliased attribute
13 # set to appear while listing all the packages available.
14 removeRecurseForDerivations = alias: with lib;
15 if alias.recurseForDerivations or false
16 then removeAttrs alias ["recurseForDerivations"]
17 else alias;
18
19 # Disabling distribution prevents top-level aliases for non-recursed package
20 # sets from building on Hydra.
21 removeDistribute = alias: with lib;
22 if isDerivation alias then
23 dontDistribute alias
24 else alias;
25
26 # Make sure that we are not shadowing something from node-packages.nix.
27 checkInPkgs = n: alias:
28 if builtins.hasAttr n super
29 then throw "Alias ${n} is still in node-packages.nix"
30 else alias;
31
32 mapAliases = aliases:
33 lib.mapAttrs (n: alias:
34 removeDistribute
35 (removeRecurseForDerivations
36 (checkInPkgs n alias)))
37 aliases;
38in
39
40mapAliases {
41 "@antora/cli" = pkgs.antora; # Added 2023-05-06
42 "@githubnext/github-copilot-cli" = pkgs.github-copilot-cli; # Added 2023-05-02
43 "@google/clasp" = pkgs.google-clasp; # Added 2023-05-07
44 "@nestjs/cli" = pkgs.nest-cli; # Added 2023-05-06
45 eslint_d = pkgs.eslint_d; # Added 2023-05-26
46 manta = pkgs.node-manta; # Added 2023-05-06
47 thelounge = pkgs.thelounge; # Added 2023-05-22
48 triton = pkgs.triton; # Added 2023-05-06
49}