coc-snippets: migrate from nodePackages

This commit is contained in:
dish
2025-11-05 16:46:38 -05:00
parent fe207f1a09
commit 63bccd4eab
6 changed files with 38 additions and 20 deletions

View File

@@ -26,6 +26,7 @@
coc-rust-analyzer,
coc-sh,
coc-smartf,
coc-snippets,
coc-spell-checker,
coc-toml,
}:
@@ -162,6 +163,11 @@ final: prev: {
src = "${coc-smartf}/lib/node_modules/coc-smartf";
};
coc-snippets = buildVimPlugin {
inherit (coc-snippets) pname version meta;
src = "${coc-snippets}/lib/node_modules/coc-snippets";
};
coc-spell-checker = buildVimPlugin {
pname = "coc-spell-checker";
inherit (coc-spell-checker) version meta;

View File

@@ -8,7 +8,6 @@ let
nodePackageNames = [
"coc-go"
"coc-ltex"
"coc-snippets"
"coc-solargraph"
"coc-sqlfluff"
"coc-stylelint"

View File

@@ -0,0 +1,31 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
}:
buildNpmPackage (finalAttrs: {
pname = "coc-snippets";
version = "3.4.7";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc-snippets";
tag = finalAttrs.version;
hash = "sha256-xaExEsNy6uuYUTeyXaon4DAoRIF6OpIZis59oetR36c=";
};
npmDepsHash = "sha256-tRyFtfL3Jc+uajELVdJoDteY3lnq0Bx8UQTaz2HtbW0=";
npmBuildScript = "prepare";
passthru.updateScript = nix-update-script { };
meta = {
description = "Snippets solution for coc.nvim";
homepage = "https://github.com/neoclide/coc-snippets";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})

View File

@@ -100,6 +100,7 @@ mapAliases {
inherit (pkgs) coc-rust-analyzer; # added 2025-11-05
inherit (pkgs) coc-sh; # added 2025-10-02
inherit (pkgs) coc-smartf; # Added 2025-11-05
inherit (pkgs) coc-snippets; # Added 2025-11-05
inherit (pkgs) coc-spell-checker; # added 2025-10-01
inherit (pkgs) coc-toml;
coc-tslint = throw "coc-tslint was removed because it was deprecated upstream; coc-eslint offers comparable features for eslint, which replaced tslint"; # Added 2024-10-18

View File

@@ -23,7 +23,6 @@
, "clipboard-cli"
, "coc-go"
, "coc-ltex"
, "coc-snippets"
, "coc-solargraph"
, "coc-stylelint"
, "coc-sumneko-lua"

View File

@@ -37659,24 +37659,6 @@ in
bypassCache = true;
reconstructLock = true;
};
coc-snippets = nodeEnv.buildNodePackage {
name = "coc-snippets";
packageName = "coc-snippets";
version = "3.4.0";
src = fetchurl {
url = "https://registry.npmjs.org/coc-snippets/-/coc-snippets-3.4.0.tgz";
sha512 = "p7nxP/ii+iRADnvFEuHz4iDhuspg3W08hj4J0IFz/OYrzJwEON3c+5i0DJEXyr8qrt0c2Vd+3rekRE8J2AhwGQ==";
};
buildInputs = globalBuildInputs;
meta = {
description = "Snippets extension for coc.nvim";
homepage = "https://github.com/neoclide/coc-snippets#readme";
license = "MIT";
};
production = true;
bypassCache = true;
reconstructLock = true;
};
coc-solargraph = nodeEnv.buildNodePackage {
name = "coc-solargraph";
packageName = "coc-solargraph";