Merge pull request #323500 from pyrox0/nodepackages/coc-diagnostic-init
coc-diagnostic: migrate from nodePackages
This commit is contained in:
commit
1728f4c227
@ -17,6 +17,7 @@
|
||||
, # Misc dependencies
|
||||
arrow-cpp
|
||||
, Cocoa
|
||||
, coc-diagnostic
|
||||
, code-minimap
|
||||
, dasht
|
||||
, deno
|
||||
@ -336,6 +337,11 @@
|
||||
dependencies = with self; [ nvim-cmp zsh ];
|
||||
};
|
||||
|
||||
coc-diagnostic = buildVimPlugin {
|
||||
inherit (coc-diagnostic) pname version meta;
|
||||
src = "${coc-diagnostic}/lib/node_modules/coc-diagnostic";
|
||||
};
|
||||
|
||||
coc-nginx = buildVimPlugin {
|
||||
pname = "coc-nginx";
|
||||
inherit (nodePackages."@yaegassy/coc-nginx") version meta;
|
||||
@ -2118,7 +2124,6 @@
|
||||
"coc-clangd"
|
||||
"coc-cmake"
|
||||
"coc-css"
|
||||
"coc-diagnostic"
|
||||
"coc-docker"
|
||||
"coc-emmet"
|
||||
"coc-eslint"
|
||||
|
44
pkgs/by-name/co/coc-diagnostic/package.nix
Normal file
44
pkgs/by-name/co/coc-diagnostic/package.nix
Normal file
@ -0,0 +1,44 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
fetchYarnDeps,
|
||||
yarnConfigHook,
|
||||
yarnBuildHook,
|
||||
nodejs,
|
||||
npmHooks,
|
||||
nix-update-script,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "coc-diagnostic";
|
||||
version = "0.24.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "iamcco";
|
||||
repo = "coc-diagnostic";
|
||||
# Upstream has no tagged versions
|
||||
rev = "f4b8774bccf1c031da51f8ee52b05bc6b2337bf9";
|
||||
hash = "sha256-+RPNFZ3OmdI9v0mY1VNJPMHs740IXvVJy4WYMgqqQSM=";
|
||||
};
|
||||
|
||||
yarnOfflineCache = fetchYarnDeps {
|
||||
yarnLock = "${src}/yarn.lock";
|
||||
hash = "sha256-/WBOZKIIE2ERKuGwG+unXyam2JavPOuUeSIwZQ9RiHY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
yarnConfigHook
|
||||
yarnBuildHook
|
||||
nodejs
|
||||
npmHooks.npmInstallHook
|
||||
];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "diagnostic-languageserver extension for coc.nvim";
|
||||
homepage = "https://github.com/iamcco/coc-diagnostic";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ pyrox0 ];
|
||||
};
|
||||
}
|
@ -68,6 +68,7 @@ mapAliases {
|
||||
castnow = pkgs.castnow; # added 2023-07-30
|
||||
inherit (pkgs) clean-css-cli; # added 2023-08-18
|
||||
inherit (pkgs) clubhouse-cli; # added 2023-08-18
|
||||
inherit (pkgs) coc-diagnostic; # added 2024-06-29
|
||||
coc-imselect = throw "coc-imselect was removed because it was broken"; # added 2023-08-21
|
||||
coinmon = throw "coinmon was removed since it was abandoned upstream"; # added 2024-03-19
|
||||
coffee-script = pkgs.coffeescript; # added 2023-08-18
|
||||
|
@ -31,7 +31,6 @@
|
||||
, "coc-clangd"
|
||||
, "coc-cmake"
|
||||
, "coc-css"
|
||||
, "coc-diagnostic"
|
||||
, "coc-docker"
|
||||
, "coc-emmet"
|
||||
, "coc-eslint"
|
||||
|
18
pkgs/development/node-packages/node-packages.nix
generated
18
pkgs/development/node-packages/node-packages.nix
generated
@ -62822,24 +62822,6 @@ in
|
||||
bypassCache = true;
|
||||
reconstructLock = true;
|
||||
};
|
||||
coc-diagnostic = nodeEnv.buildNodePackage {
|
||||
name = "coc-diagnostic";
|
||||
packageName = "coc-diagnostic";
|
||||
version = "0.24.1";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/coc-diagnostic/-/coc-diagnostic-0.24.1.tgz";
|
||||
sha512 = "pAiP55qF3Uh4Mb7QzJAhtMyys3OOVg9iowupr27XBnoFZJxmxOZYG5nydOtHKBqhXIJ+mMfy/okHNLheD/4w/w==";
|
||||
};
|
||||
buildInputs = globalBuildInputs;
|
||||
meta = {
|
||||
description = "diagnostic-languageserver extension for coc.nvim";
|
||||
homepage = "https://github.com/iamcco/coc-diagnostic#readme";
|
||||
license = "MIT";
|
||||
};
|
||||
production = true;
|
||||
bypassCache = true;
|
||||
reconstructLock = true;
|
||||
};
|
||||
coc-docker = nodeEnv.buildNodePackage {
|
||||
name = "coc-docker";
|
||||
packageName = "coc-docker";
|
||||
|
Loading…
Reference in New Issue
Block a user