Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 65 lines 1.2 kB view raw
1{ 2 lib, 3 buildVimPlugin, 4 nodePackages, 5}: 6final: prev: 7let 8 nodePackageNames = [ 9 "coc-cmake" 10 "coc-docker" 11 "coc-emmet" 12 "coc-eslint" 13 "coc-explorer" 14 "coc-flutter" 15 "coc-git" 16 "coc-go" 17 "coc-haxe" 18 "coc-highlight" 19 "coc-html" 20 "coc-java" 21 "coc-jest" 22 "coc-json" 23 "coc-lists" 24 "coc-ltex" 25 "coc-markdownlint" 26 "coc-pairs" 27 "coc-prettier" 28 "coc-r-lsp" 29 "coc-rls" 30 "coc-rust-analyzer" 31 "coc-sh" 32 "coc-smartf" 33 "coc-snippets" 34 "coc-solargraph" 35 "coc-spell-checker" 36 "coc-sqlfluff" 37 "coc-stylelint" 38 "coc-sumneko-lua" 39 "coc-tabnine" 40 "coc-texlab" 41 "coc-tsserver" 42 "coc-ultisnips" 43 "coc-vetur" 44 "coc-vimlsp" 45 "coc-vimtex" 46 "coc-wxml" 47 "coc-yaml" 48 "coc-yank" 49 "coc-nginx" 50 ]; 51 52 packageNameOverrides = { 53 "coc-nginx" = "@yaegassy/coc-nginx"; 54 }; 55 56 getPackageName = name: packageNameOverrides.${name} or name; 57in 58lib.genAttrs nodePackageNames ( 59 name: 60 buildVimPlugin { 61 pname = name; 62 inherit (nodePackages.${getPackageName name}) version meta; 63 src = "${nodePackages.${getPackageName name}}/lib/node_modules/${getPackageName name}"; 64 } 65)