vimplugins.coc-nginx: move overrides into nodePackagePlugins

This commit is contained in:
Austin Horstman
2025-03-25 08:34:02 -05:00
parent 0c4d4290a6
commit 9cc633bc97
2 changed files with 9 additions and 9 deletions
@@ -46,13 +46,20 @@ let
"coc-wxml"
"coc-yaml"
"coc-yank"
"coc-nginx"
];
packageNameOverrides = {
"coc-nginx" = "@yaegassy/coc-nginx";
};
getPackageName = name: packageNameOverrides.${name} or name;
in
lib.genAttrs nodePackageNames (
name:
buildVimPlugin {
pname = name;
inherit (nodePackages.${name}) version meta;
src = "${nodePackages.${name}}/lib/node_modules/${name}";
inherit (nodePackages.${getPackageName name}) version meta;
src = "${nodePackages.${getPackageName name}}/lib/node_modules/${getPackageName name}";
}
)
@@ -37,7 +37,6 @@
meson,
neovim-unwrapped,
nim1,
nodePackages,
nodejs,
notmuch,
openscad,
@@ -633,12 +632,6 @@ in
src = "${coc-pyright}/lib/node_modules/coc-pyright";
};
coc-nginx = buildVimPlugin {
pname = "coc-nginx";
inherit (nodePackages."@yaegassy/coc-nginx") version meta;
src = "${nodePackages."@yaegassy/coc-nginx"}/lib/node_modules/@yaegassy/coc-nginx";
};
coc-toml = buildVimPlugin {
pname = "coc-toml";
inherit (coc-toml) version meta;