Unverified Commit ac533eee authored by dish's avatar dish
Browse files

coc-spell-checker: migrate from nodePackages

parent e5ed4756
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
  coc-diagnostic,
  coc-docker,
  coc-pyright,
  coc-spell-checker,
  coc-toml,
}:
final: prev: {
@@ -40,6 +41,12 @@ final: prev: {
    src = "${coc-pyright}/lib/node_modules/coc-pyright";
  };

  coc-spell-checker = buildVimPlugin {
    pname = "coc-spell-checker";
    inherit (coc-spell-checker) version meta;
    src = "${coc-spell-checker}/lib/node_modules/coc-spell-checker";
  };

  coc-toml = buildVimPlugin {
    pname = "coc-toml";
    inherit (coc-toml) version meta;
+0 −1
Original line number Diff line number Diff line
@@ -30,7 +30,6 @@ let
    "coc-smartf"
    "coc-snippets"
    "coc-solargraph"
    "coc-spell-checker"
    "coc-sqlfluff"
    "coc-stylelint"
    "coc-sumneko-lua"
+46 −0
Original line number Diff line number Diff line
{
  lib,
  stdenvNoCC,
  fetchFromGitHub,
  fetchYarnDeps,
  yarnConfigHook,
  yarnBuildHook,
  yarnInstallHook,
  nodejs,
  nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
  pname = "coc-spell-checker";
  version = "1.3.2-unstable-2022-12-18";

  src = fetchFromGitHub {
    owner = "iamcco";
    repo = "coc-spell-checker";
    # Upstream has no tagged releases
    rev = "51c484169de17b5317e54f5cf06bcd3fb04477e7";
    hash = "sha256-WimL7rE+hYW8JoWDnsL3r1zAoEDZBDy6NY2i6Wblm8c=";
  };

  yarnOfflineCache = fetchYarnDeps {
    yarnLock = "${finalAttrs.src}/yarn.lock";
    hash = "sha256-nMDcc8dP0L7vpIj6Q1HOJyFCkDZ+19/IdbONxBj1jq8=";
  };

  nativeBuildInputs = [
    yarnConfigHook
    yarnBuildHook
    yarnInstallHook
    nodejs
  ];

  NODE_OPTIONS = "--openssl-legacy-provider";

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Basic spell checker that works well with camelCase code for (Neo)vim";
    homepage = "https://github.com/iamcco/coc-spell-checker";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ pyrox0 ];
  };
})
+1 −0
Original line number Diff line number Diff line
@@ -79,6 +79,7 @@ mapAliases {
  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
  coc-rls = throw "coc-rls was removed because rls was deprecated in 2022. You should use coc-rust-analyzer instead, as rust-analyzer is maintained."; # added 2025-10-01
  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
  coc-tslint-plugin = throw "coc-tslint-plugin was removed because it was deprecated upstream; coc-eslint offers comparable features for eslint, which replaced tslint"; # Added 2024-10-18
+0 −1
Original line number Diff line number Diff line
@@ -47,7 +47,6 @@
, "coc-smartf"
, "coc-snippets"
, "coc-solargraph"
, "coc-spell-checker"
, "coc-stylelint"
, "coc-sumneko-lua"
, "coc-sqlfluff"
Loading