coc-lists: migrate from nodePackages

This commit is contained in:
dish 2025-11-05 16:40:39 -05:00
parent 63ff9dd0c3
commit d43cfa79ee
6 changed files with 38 additions and 20 deletions

View file

@ -17,6 +17,7 @@
coc-java,
coc-jest,
coc-json,
coc-lists,
coc-pyright,
coc-sh,
coc-spell-checker,
@ -108,6 +109,11 @@ final: prev: {
src = "${coc-json}/lib/node_modules/coc-json";
};
coc-lists = buildVimPlugin {
inherit (coc-lists) pname version meta;
src = "${coc-lists}/lib/node_modules/coc-lists";
};
coc-pyright = buildVimPlugin {
pname = "coc-pyright";
inherit (coc-pyright) version meta;

View file

@ -7,7 +7,6 @@ final: prev:
let
nodePackageNames = [
"coc-go"
"coc-lists"
"coc-ltex"
"coc-markdownlint"
"coc-pairs"

View file

@ -0,0 +1,31 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
}:
buildNpmPackage (finalAttrs: {
pname = "coc-lists";
version = "1.5.4";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc-lists";
tag = finalAttrs.version;
hash = "sha256-jt7JnGRXGgG+tbk0GySZeVAlOeTL/pX6+6WK3Qv6mYg=";
};
npmDepsHash = "sha256-9GndvIt7kQwT/wcS0qmeB0aIRNI/8UoW5b1JfoVAfn0=";
npmBuildScript = "prepare";
passthru.updateScript = nix-update-script { };
meta = {
description = "Common lists for coc.nvim";
homepage = "https://github.com/neoclide/coc-lists";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})

View file

@ -88,6 +88,7 @@ mapAliases {
inherit (pkgs) coc-java; # Added 2025-11-05
inherit (pkgs) coc-jest; # Added 2025-11-05
inherit (pkgs) coc-json; # Added 2025-11-05
inherit (pkgs) coc-lists; # Added 2025-11-05
inherit (pkgs) coc-pyright; # added 2024-07-14
coc-metals = throw "coc-metals was removed because it was deprecated upstream. vimPlugins.nvim-metals is its official replacement."; # Added 2024-10-16
coc-python = throw "coc-python was removed because it was abandoned upstream on 2020-12-24. Upstream now recommends using coc-pyright or coc-jedi instead."; # added 2024-10-15

View file

@ -22,7 +22,6 @@
, "cdk8s-cli"
, "clipboard-cli"
, "coc-go"
, "coc-lists"
, "coc-ltex"
, "coc-markdownlint"
, "coc-pairs"

View file

@ -37668,24 +37668,6 @@ in
bypassCache = true;
reconstructLock = true;
};
coc-lists = nodeEnv.buildNodePackage {
name = "coc-lists";
packageName = "coc-lists";
version = "1.5.4";
src = fetchurl {
url = "https://registry.npmjs.org/coc-lists/-/coc-lists-1.5.4.tgz";
sha512 = "RROel79iUEzY3ICwqLIfWkftdA95mlluSa933CxfxvZxQiPcnlSd9XWGc770RZOEv6R5TCihht2LRt0Lj1PrGQ==";
};
buildInputs = globalBuildInputs;
meta = {
description = "Basic list sources for coc.nvim";
homepage = "https://github.com/neoclide/coc-lists#readme";
license = "MIT";
};
production = true;
bypassCache = true;
reconstructLock = true;
};
coc-ltex = nodeEnv.buildNodePackage {
name = "coc-ltex";
packageName = "coc-ltex";