Merge pull request #323500 from pyrox0/nodepackages/coc-diagnostic-init

coc-diagnostic: migrate from nodePackages
This commit is contained in:
OTABI Tomoya 2024-07-29 20:30:53 +09:00 committed by GitHub
commit 1728f4c227
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 51 additions and 20 deletions

View File

@ -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"

View 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 ];
};
}

View File

@ -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

View File

@ -31,7 +31,6 @@
, "coc-clangd"
, "coc-cmake"
, "coc-css"
, "coc-diagnostic"
, "coc-docker"
, "coc-emmet"
, "coc-eslint"

View File

@ -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";