mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-09 16:18:34 +01:00
23 lines
355 B
Nix
23 lines
355 B
Nix
{
|
|
lib,
|
|
buildVimPlugin,
|
|
nodePackages,
|
|
}:
|
|
final: prev:
|
|
let
|
|
nodePackageNames = [
|
|
"coc-go"
|
|
"coc-ltex"
|
|
"coc-tsserver"
|
|
"coc-ultisnips"
|
|
];
|
|
in
|
|
lib.genAttrs nodePackageNames (
|
|
name:
|
|
buildVimPlugin {
|
|
pname = name;
|
|
inherit (nodePackages.${name}) version meta;
|
|
src = "${nodePackages.${name}}/lib/node_modules/${name}";
|
|
}
|
|
)
|