coc-eslint: migrate from nodePackages
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
coc-diagnostic,
|
||||
coc-docker,
|
||||
coc-emmet,
|
||||
coc-eslint,
|
||||
coc-explorer,
|
||||
coc-git,
|
||||
coc-pyright,
|
||||
@@ -50,6 +51,11 @@ final: prev: {
|
||||
src = "${coc-emmet}/lib/node_modules/coc-emmet";
|
||||
};
|
||||
|
||||
coc-eslint = buildVimPlugin {
|
||||
inherit (coc-eslint) pname version meta;
|
||||
src = "${coc-eslint}/lib/node_modules/coc-eslint";
|
||||
};
|
||||
|
||||
coc-explorer = buildVimPlugin {
|
||||
inherit (coc-explorer) pname version meta;
|
||||
src = "${coc-explorer}/lib/node_modules/coc-explorer";
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
final: prev:
|
||||
let
|
||||
nodePackageNames = [
|
||||
"coc-eslint"
|
||||
"coc-flutter"
|
||||
"coc-go"
|
||||
"coc-haxe"
|
||||
|
||||
29
pkgs/by-name/co/coc-eslint/package.nix
Normal file
29
pkgs/by-name/co/coc-eslint/package.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
lib,
|
||||
buildNpmPackage,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
buildNpmPackage (finalAttrs: {
|
||||
pname = "coc-eslint";
|
||||
version = "3.0.15";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "neoclide";
|
||||
repo = "coc-eslint";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-41mUQpiFzBWMRoK7aQu0Gu4FBsYZdHbHPzrSMZR6RLQ=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-g5gLAtBmwsHBCDHPfcVPETH7+djh0piJ6nJYSsy9GJQ=";
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Eslint extension for coc.nvim";
|
||||
homepage = "https://github.com/neoclide/coc-eslint";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ pyrox0 ];
|
||||
};
|
||||
})
|
||||
@@ -77,6 +77,7 @@ mapAliases {
|
||||
inherit (pkgs) coc-diagnostic; # added 2024-06-29
|
||||
inherit (pkgs) coc-docker; # added 2025-10-01
|
||||
inherit (pkgs) coc-emmet; # Added 2025-11-05
|
||||
inherit (pkgs) coc-eslint; # Added 2025-11-05;
|
||||
inherit (pkgs) coc-explorer; # added 2025-10-01
|
||||
inherit (pkgs) coc-git; # added 2025-10-01
|
||||
coc-imselect = throw "coc-imselect was removed because it was broken"; # added 2023-08-21
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
, "browser-sync"
|
||||
, "cdk8s-cli"
|
||||
, "clipboard-cli"
|
||||
, "coc-eslint"
|
||||
, "coc-flutter"
|
||||
, "coc-go"
|
||||
, "coc-haxe"
|
||||
|
||||
18
pkgs/development/node-packages/node-packages.nix
generated
18
pkgs/development/node-packages/node-packages.nix
generated
@@ -37643,24 +37643,6 @@ in
|
||||
bypassCache = true;
|
||||
reconstructLock = true;
|
||||
};
|
||||
coc-eslint = nodeEnv.buildNodePackage {
|
||||
name = "coc-eslint";
|
||||
packageName = "coc-eslint";
|
||||
version = "1.7.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/coc-eslint/-/coc-eslint-1.7.0.tgz";
|
||||
sha512 = "NCL4qXmj9CClh9E87BagmHx4wLmKL7OzK0eLBZMovXphG5woHKPLwMfDOfoNEthloE4G3bG3TzoMsQIwhKvayA==";
|
||||
};
|
||||
buildInputs = globalBuildInputs;
|
||||
meta = {
|
||||
description = "Eslint extension for coc.nvim";
|
||||
homepage = "https://github.com/neoclide/coc-eslint#readme";
|
||||
license = "MIT";
|
||||
};
|
||||
production = true;
|
||||
bypassCache = true;
|
||||
reconstructLock = true;
|
||||
};
|
||||
coc-flutter = nodeEnv.buildNodePackage {
|
||||
name = "coc-flutter";
|
||||
packageName = "coc-flutter";
|
||||
|
||||
Reference in New Issue
Block a user