1 # Deprecated aliases - for backward compatibility
6 # Removing recurseForDerivation prevents derivations of aliased attribute
7 # set to appear while listing all the packages available.
8 removeRecurseForDerivations = alias:
9 if alias.recurseForDerivations or false then
10 lib.removeAttrs alias ["recurseForDerivations"]
13 # Disabling distribution prevents top-level aliases for non-recursed package
14 # sets from building on Hydra.
15 removeDistribute = alias:
16 if lib.isDerivation alias then
17 lib.dontDistribute alias
20 # Make sure that we are not shadowing something from
22 checkInPkgs = n: alias: if builtins.hasAttr n overridden
23 then throw "Alias ${n} is still in kakounePlugins"
27 lib.mapAttrs (n: alias: removeDistribute
28 (removeRecurseForDerivations
29 (checkInPkgs n alias)))
32 deprecations = lib.mapAttrs (old: info:
33 throw "${old} was renamed to ${info.new} on ${info.date}. Please update to ${info.new}."
34 ) (lib.importJSON ./deprecated.json);
38 kak-auto-pairs = overridden.auto-pairs-kak; # backwards compat, added 2021-01-04
39 kak-buffers = overridden.kakoune-buffers; # backwards compat, added 2021-01-04
40 kak-byline = overridden.byline-kak; # backwards compat, added 2023-10-22
41 kak-fzf = overridden.fzf-kak; # backwards compat, added 2021-01-04
42 kak-powerline = overridden.powerline-kak; # backwards compat, added 2021-01-04
43 kak-prelude = overridden.prelude-kak; # backwards compat, added 2021-01-04
44 kak-vertical-selection = overridden.kakoune-vertical-selection; # backwards compat, added 2021-01-04