vimplugins.coc-nginx: move overrides into nodePackagePlugins
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user