coc-clangd: migrate from nodePackages

This commit is contained in:
Pyrox 2024-06-29 18:28:03 -04:00
parent 4197076f2b
commit 4a938f0428
No known key found for this signature in database
GPG Key ID: 8CDF3F7CAA53A0F5
5 changed files with 34 additions and 20 deletions

View File

@ -17,6 +17,7 @@
, # Misc dependencies
arrow-cpp
, Cocoa
, coc-clangd
, coc-diagnostic
, code-minimap
, dasht
@ -337,6 +338,11 @@
dependencies = with self; [ nvim-cmp zsh ];
};
coc-clangd = buildVimPlugin {
inherit (coc-clangd) pname version meta;
src = "${coc-clangd}/lib/node_modules/coc-clangd";
};
coc-diagnostic = buildVimPlugin {
inherit (coc-diagnostic) pname version meta;
src = "${coc-diagnostic}/lib/node_modules/coc-diagnostic";
@ -2121,7 +2127,6 @@
// (
let
nodePackageNames = [
"coc-clangd"
"coc-cmake"
"coc-css"
"coc-docker"

View File

@ -0,0 +1,27 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
}:
buildNpmPackage {
pname = "coc-clangd";
version = "0.31.0";
src = fetchFromGitHub {
owner = "clangd";
repo = "coc-clangd";
# Upstream has no tagged versions
rev = "3a85a36f1ac08454deab1ed8d2553e0cae00cc1c";
hash = "sha256-uxK0nciLq4ZKFCoMJrO4dR0tuOBHYpgdZUc/KJ+JA/I=";
};
npmDepsHash = "sha256-93MEug2eEL/Hum+RFmXx0JYO6jUygF8QRmL5nTTFyrs=";
meta = {
description = "clangd extension for coc.nvim";
homepage = "https://github.com/clangd/coc-clangd";
license = lib.licenses.asl20;
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-clangd; # added 2024-06-29
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

View File

@ -28,7 +28,6 @@
, "cdk8s-cli"
, "cdktf-cli"
, "clipboard-cli"
, "coc-clangd"
, "coc-cmake"
, "coc-css"
, "coc-docker"

View File

@ -62769,24 +62769,6 @@ in
bypassCache = true;
reconstructLock = true;
};
coc-clangd = nodeEnv.buildNodePackage {
name = "coc-clangd";
packageName = "coc-clangd";
version = "0.31.0";
src = fetchurl {
url = "https://registry.npmjs.org/coc-clangd/-/coc-clangd-0.31.0.tgz";
sha512 = "4t6rVLxFrHp5L8/fSGMG1A4UEnAa41JwwczOBTnETOVQI9vYVL+PkXHCnYtx0e+yJZyCizpj/9IsbSPSDVmzag==";
};
buildInputs = globalBuildInputs;
meta = {
description = "clangd extension for coc.nvim";
homepage = "https://github.com/clangd/coc-clangd#readme";
license = "Apache-2.0 WITH LLVM-exception";
};
production = true;
bypassCache = true;
reconstructLock = true;
};
coc-cmake = nodeEnv.buildNodePackage {
name = "coc-cmake";
packageName = "coc-cmake";