coc-haxe: migrate from nodePackages

This commit is contained in:
dish
2025-11-05 16:32:07 -05:00
parent 57a98fb283
commit 9ec68a08a4
6 changed files with 38 additions and 20 deletions

View File

@@ -11,6 +11,7 @@
coc-explorer,
coc-flutter,
coc-git,
coc-haxe,
coc-pyright,
coc-sh,
coc-spell-checker,
@@ -72,6 +73,11 @@ final: prev: {
src = "${coc-git}/lib/node_modules/coc-git";
};
coc-haxe = buildVimPlugin {
inherit (coc-haxe) pname version meta;
src = "${coc-haxe}/lib/node_modules/coc-haxe";
};
coc-pyright = buildVimPlugin {
pname = "coc-pyright";
inherit (coc-pyright) version meta;

View File

@@ -7,7 +7,6 @@ final: prev:
let
nodePackageNames = [
"coc-go"
"coc-haxe"
"coc-highlight"
"coc-html"
"coc-java"

View File

@@ -0,0 +1,31 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
}:
buildNpmPackage (finalAttrs: {
pname = "coc-haxe";
version = "0.21.1";
src = fetchFromGitHub {
owner = "vantreeseba";
repo = "coc-haxe";
tag = "v${finalAttrs.version}";
hash = "sha256-iveWhxkrX8EaBfh8IwKrTLw1AiGBmNva9G0p3rMwOi8=";
};
npmDepsHash = "sha256-1RrhUyICnYDM9qC9dEZLDPQdsFqcu8Nn/enfm+PgM00=";
npmBuildScript = "prepare";
passthru.updateScript = nix-update-script { };
meta = {
description = "Haxe language server extension for coc.nvim";
homepage = "https://github.com/vantreeseba/coc-haxe";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})

View File

@@ -81,6 +81,7 @@ mapAliases {
inherit (pkgs) coc-explorer; # added 2025-10-01
inherit (pkgs) coc-flutter; # Added 2025-11-05
inherit (pkgs) coc-git; # added 2025-10-01
inherit (pkgs) coc-haxe; # Added 2025-11-05
coc-imselect = throw "coc-imselect was removed because it was broken"; # added 2023-08-21
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

View File

@@ -22,7 +22,6 @@
, "cdk8s-cli"
, "clipboard-cli"
, "coc-go"
, "coc-haxe"
, "coc-highlight"
, "coc-html"
, "coc-java"

View File

@@ -37668,24 +37668,6 @@ in
bypassCache = true;
reconstructLock = true;
};
coc-haxe = nodeEnv.buildNodePackage {
name = "coc-haxe";
packageName = "coc-haxe";
version = "0.21.1";
src = fetchurl {
url = "https://registry.npmjs.org/coc-haxe/-/coc-haxe-0.21.1.tgz";
sha512 = "oz4kKSH/rw3pk/T3Ecro2qDpG4nt64BuyKyJkiETEIf2HMgbmYzFdz6e8TklobclQTbOic903+3azwze95BVsQ==";
};
buildInputs = globalBuildInputs;
meta = {
description = "Haxe language server extension for coc.nvim";
homepage = "https://github.com/vantreeseba/coc-haxe#readme";
license = "MIT";
};
production = true;
bypassCache = true;
reconstructLock = true;
};
coc-highlight = nodeEnv.buildNodePackage {
name = "coc-highlight";
packageName = "coc-highlight";