Unverified Commit 46c608ea authored by Austin Horstman's avatar Austin Horstman
Browse files

vimPlugins: deprecations warn

parent 8eefb3ab
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -29,7 +29,10 @@ let
    ) aliases;

  deprecations = lib.mapAttrs (
    old: info: throw "${old} was renamed to ${info.new} on ${info.date}. Please update to ${info.new}."
    old: info:
    lib.warnOnInstantiate "'vimPlugins.${old}' was renamed to 'vimPlugins.${info.new}' on ${info.date}. Please update to 'vimPlugins.${info.new}'." (
      builtins.getAttr info.new prev
    )
  ) (lib.importJSON ./deprecated.json);

in