nodePackages.coc-*: migrate from nodePackages (#458970)

This commit is contained in:
Jo
2025-11-06 20:46:16 +00:00
committed by GitHub
42 changed files with 2714 additions and 1720 deletions
@@ -1,74 +1,62 @@
{
lib,
buildVimPlugin,
coc-basedpyright,
coc-clangd,
coc-css,
coc-diagnostic,
coc-docker,
coc-explorer,
coc-git,
coc-pyright,
coc-sh,
coc-spell-checker,
coc-toml,
pkgs,
}:
final: prev: {
coc-basedpyright = buildVimPlugin {
inherit (coc-basedpyright) pname version meta;
src = "${coc-basedpyright}/lib/node_modules/coc-basedpyright";
};
coc-clangd = buildVimPlugin {
inherit (coc-clangd) pname version meta;
src = "${coc-clangd}/lib/node_modules/coc-clangd";
};
coc-css = buildVimPlugin {
inherit (coc-css) pname version meta;
src = "${coc-css}/lib/node_modules/coc-css";
};
coc-diagnostic = buildVimPlugin {
inherit (coc-diagnostic) pname version meta;
src = "${coc-diagnostic}/lib/node_modules/coc-diagnostic";
};
coc-docker = buildVimPlugin {
inherit (coc-docker) pname version meta;
src = "${coc-docker}/lib/node_modules/coc-docker";
};
coc-explorer = buildVimPlugin {
inherit (coc-explorer) pname version meta;
src = "${coc-explorer}/lib/node_modules/coc-explorer";
};
coc-git = buildVimPlugin {
inherit (coc-git) pname version meta;
src = "${coc-git}/lib/node_modules/coc-git";
};
coc-pyright = buildVimPlugin {
pname = "coc-pyright";
inherit (coc-pyright) version meta;
src = "${coc-pyright}/lib/node_modules/coc-pyright";
};
coc-sh = buildVimPlugin {
pname = "coc-sh";
inherit (coc-sh) version meta;
src = "${coc-sh}/lib/node_modules/coc-sh";
};
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;
src = "${coc-toml}/lib/node_modules/coc-toml";
};
}
final: prev:
let
cocPackages = [
"coc-clangd"
"coc-cmake"
"coc-css"
"coc-diagnostic"
"coc-docker"
"coc-emmet"
"coc-eslint"
"coc-explorer"
"coc-flutter"
"coc-git"
"coc-haxe"
"coc-highlight"
"coc-html"
"coc-java"
"coc-jest"
"coc-json"
"coc-lists"
"coc-markdownlint"
"coc-pairs"
"coc-prettier"
"coc-pyright"
"coc-r-lsp"
"coc-rust-analyzer"
"coc-sh"
"coc-sh"
"coc-smartf"
"coc-snippets"
"coc-solargraph"
"coc-spell-checker"
"coc-sqlfluff"
"coc-stylelint"
"coc-sumneko-lua"
"coc-tabnine"
"coc-texlab"
"coc-toml"
"coc-toml"
"coc-vimlsp"
"coc-vimtex"
"coc-wxml"
"coc-basedpyright"
"coc-yaml"
"coc-yank"
];
in
lib.genAttrs cocPackages (
pkg:
let
cocPkg = pkgs.${pkg};
in
buildVimPlugin {
inherit (cocPkg) pname version meta;
src = "${cocPkg}/lib/node_modules/${cocPkg.pname}";
}
)
@@ -6,39 +6,10 @@
final: prev:
let
nodePackageNames = [
"coc-cmake"
"coc-emmet"
"coc-eslint"
"coc-flutter"
"coc-go"
"coc-haxe"
"coc-highlight"
"coc-html"
"coc-java"
"coc-jest"
"coc-json"
"coc-lists"
"coc-ltex"
"coc-markdownlint"
"coc-pairs"
"coc-prettier"
"coc-r-lsp"
"coc-rust-analyzer"
"coc-smartf"
"coc-snippets"
"coc-solargraph"
"coc-sqlfluff"
"coc-stylelint"
"coc-sumneko-lua"
"coc-tabnine"
"coc-texlab"
"coc-tsserver"
"coc-ultisnips"
"coc-vimlsp"
"coc-vimtex"
"coc-wxml"
"coc-yaml"
"coc-yank"
"coc-nginx"
];
+54
View File
@@ -0,0 +1,54 @@
{
lib,
stdenv,
nodejs,
pnpm_8,
fetchFromGitHub,
npmHooks,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "coc-cmake";
version = "0-unstable-2024-10-21";
src = fetchFromGitHub {
owner = "voldikss";
repo = "coc-extensions";
rev = "69c81e04fd3350bb75b09232d8ccf26d20075111";
hash = "sha256-VZRHpy0OTmoQyOEa0vIJl/VkV52r0HEtTzY1fjr6yQ0=";
};
pnpmDeps = pnpm_8.fetchDeps {
inherit (finalAttrs)
pname
version
src
pnpmWorkspaces
;
fetcherVersion = 2;
hash = "sha256-wQ9dcqY7BVXc7wpsHlYNpc7utL1+MkdTCu77Wh8+QWc=";
};
pnpmWorkspaces = [ "coc-cmake" ];
nativeBuildInputs = [
nodejs
pnpm_8.configHook
];
buildPhase = ''
runHook preBuild
pnpm run build coc-cmake
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/lib/node_modules
mv packages/coc-cmake $out/lib/node_modules/coc-cmake
mv node_modules/.pnpm/ $out/lib/node_modules/.pnpm
runHook postInstall
'';
})
+45
View File
@@ -0,0 +1,45 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
fetchYarnDeps,
yarnConfigHook,
yarnBuildHook,
yarnInstallHook,
nodejs,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "coc-emmet";
version = "1.1.6";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc-emmet";
tag = finalAttrs.version;
hash = "sha256-0f9wSn7W+8Pxce7hbdfNpL33oykuVGNifNnSPPdhKb8=";
};
yarnOfflineCache = fetchYarnDeps {
inherit (finalAttrs) src;
hash = "sha256-8oo/XG9WxgKIbhfBWiGry+SZJdQIFe/T5i9S0hgjmp0=";
};
nativeBuildInputs = [
yarnConfigHook
yarnBuildHook
yarnInstallHook
nodejs
];
NODE_OPTIONS = "--openssl-legacy-provider";
passthru.updateScript = nix-update-script { };
meta = {
description = "Emmet extension for coc.nvim";
homepage = "https://github.com/neoclide/coc-emmet";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
+29
View 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 ];
};
})
+72
View File
@@ -0,0 +1,72 @@
{
lib,
stdenv,
esbuild,
buildGoModule,
yarnBuildHook,
yarnInstallHook,
yarnConfigHook,
nodejs,
fetchYarnDeps,
fetchFromGitHub,
nix-update-script,
}:
let
esbuild' =
let
version = "0.9.0";
in
esbuild.override {
buildGoModule =
args:
buildGoModule (
args
// {
inherit version;
src = fetchFromGitHub {
owner = "evanw";
repo = "esbuild";
rev = "v${version}";
hash = "sha256-+4oNM39cN7zCld4WwLVDHQFyvVhdsqKTLLiF2a9+KP0=";
};
vendorHash = "sha256-2ABWPqhK2Cf4ipQH7XvRrd+ZscJhYPc3SV2cGT0apdg=";
}
);
};
in
stdenv.mkDerivation (finalAttrs: {
pname = "coc-flutter";
version = "0-unstable-2023-03-22";
src = fetchFromGitHub {
owner = "iamcco";
repo = "coc-flutter";
rev = "883c269eaacbeddbd4fb08e32e6a05051933429d";
hash = "sha256-K3NvqZnAEj/qfsvomYl7dPtEo3ad7w1dCfZHjMRwbAA=";
};
yarnOfflineCache = fetchYarnDeps {
inherit (finalAttrs) src;
hash = "sha256-aEjfhjkMlHSdISfG9baRfaUiTUbj8TPZi2edAFiqKlg=";
};
nativeBuildInputs = [
yarnBuildHook
yarnConfigHook
yarnInstallHook
nodejs
esbuild'
];
env.ESBUILD_BINARY_PATH = lib.getExe esbuild';
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
meta = {
description = "Flutter support for (Neo)vim";
homepage = "https://github.com/iamcco/coc-flutter";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
+31
View File
@@ -0,0 +1,31 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
}:
buildNpmPackage (finalAttrs: {
pname = "coc-haxe";
version = "0.21.1";
src = fetchFromGitHub {
owner = "vantreeseba";
repo = "coc-haxe";
tag = "v${finalAttrs.version}";
hash = "sha256-iveWhxkrX8EaBfh8IwKrTLw1AiGBmNva9G0p3rMwOi8=";
};
npmDepsHash = "sha256-1RrhUyICnYDM9qC9dEZLDPQdsFqcu8Nn/enfm+PgM00=";
npmBuildScript = "prepare";
passthru.updateScript = nix-update-script { };
meta = {
description = "Haxe language server extension for coc.nvim";
homepage = "https://github.com/vantreeseba/coc-haxe";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
+45
View File
@@ -0,0 +1,45 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
fetchYarnDeps,
yarnConfigHook,
yarnBuildHook,
yarnInstallHook,
nodejs,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "coc-highlight";
version = "2.0.4";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc-highlight";
tag = finalAttrs.version;
hash = "sha256-VksCqyB8b3Bk2BsnYFr6cJINqUzVY+px3TCiWzqFTzE=";
};
yarnOfflineCache = fetchYarnDeps {
inherit (finalAttrs) src;
hash = "sha256-z9pJXGdUXNU8Bfhp7PUPZk7rCCAhnQpcmXUoHUaFAIU=";
};
nativeBuildInputs = [
yarnConfigHook
yarnBuildHook
yarnInstallHook
nodejs
];
yarnBuildScript = "prepare";
passthru.updateScript = nix-update-script { };
meta = {
description = "Highlight extension for coc.nvim";
homepage = "https://github.com/neoclide/coc-highlight";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
+43
View File
@@ -0,0 +1,43 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
fetchYarnDeps,
yarnConfigHook,
yarnBuildHook,
yarnInstallHook,
nodejs,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "coc-html";
version = "1.8.0";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc-html";
tag = finalAttrs.version;
hash = "sha256-dMjkG/djycRhRPIMCQ1PYvfXVxlWHtcNjouW+bCm59I=";
};
yarnOfflineCache = fetchYarnDeps {
inherit (finalAttrs) src;
hash = "sha256-hb8H7tI4OouLBTwuSx3UVw7I52HTYxOFkAVJGaIKHzI=";
};
nativeBuildInputs = [
yarnConfigHook
yarnBuildHook
yarnInstallHook
nodejs
];
passthru.updateScript = nix-update-script { };
meta = {
description = "Html language server extension for coc.nvim";
homepage = "https://github.com/neoclide/coc-html";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
+29
View File
@@ -0,0 +1,29 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
}:
buildNpmPackage (finalAttrs: {
pname = "coc-java";
version = "1.26.1";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc-java";
tag = finalAttrs.version;
hash = "sha256-OKqZk1pt8qt6O+kHYdhAAha5S8YTJBFQPn7oIrjGZgI=";
};
npmDepsHash = "sha256-FF7EAf6SvO1sGMIE8FCS7MbnpVwVUwVg0SVUsX+i7zg=";
passthru.updateScript = nix-update-script { };
meta = {
description = "Java extension for coc.nvim";
homepage = "https://github.com/neoclide/coc-java";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
@@ -0,0 +1,61 @@
diff --git i/package-lock.json w/package-lock.json
index 9ffdc5f..1aac77b 100644
--- i/package-lock.json
+++ w/package-lock.json
@@ -23,6 +23,8 @@
},
"node_modules/@chemzqm/tsconfig": {
"version": "0.0.3",
+ "resolved": "https://registry.npmjs.org/@chemzqm/tsconfig/-/tsconfig-0.0.3.tgz",
+ "integrity": "sha512-MjF25vbqLYR+S+JJLgBi0vn4gZqv/C87H+yPSlVKEqlIJAJOGJOgFPUFvRS7pdRHqkv2flX/oRxzxhlu2V0X1w==",
"dev": true,
"license": "MIT"
},
@@ -453,16 +455,22 @@
},
"node_modules/@types/node": {
"version": "13.11.1",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-13.11.1.tgz",
+ "integrity": "sha512-eWQGP3qtxwL8FGneRrC5DwrJLGN4/dH1clNTuLfN81HCrxVtxRjygDTUoZJ5ASlDEeo0ppYFQjQIlXhtXpOn6g==",
"dev": true,
"license": "MIT"
},
"node_modules/@types/which": {
"version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/@types/which/-/which-1.3.2.tgz",
+ "integrity": "sha512-8oDqyLC7eD4HM307boe2QWKyuzdzWBj56xI/imSl2cpL+U3tCMaTAkMJ4ee5JBZ/FsOJlvRGeIShiZDAl1qERA==",
"dev": true,
"license": "MIT"
},
"node_modules/coc.nvim": {
"version": "0.0.79-next.11",
+ "resolved": "https://registry.npmjs.org/coc.nvim/-/coc.nvim-0.0.79-next.11.tgz",
+ "integrity": "sha512-1AAP2N4dno8ee2Sn2EHcVhuyhz7GS+VosqBq1W18KGmN/Ht3ry1kNsX7rsTeM/qroadvjtsIC5kM2ke239AiJw==",
"dev": true,
"license": "MIT",
"engines": {
@@ -516,11 +524,15 @@
},
"node_modules/isexe": {
"version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
"dev": true,
"license": "ISC"
},
"node_modules/typescript": {
"version": "4.1.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.1.3.tgz",
+ "integrity": "sha512-B3ZIOf1IKeH2ixgHhj6la6xdwR9QrLC5d1VKeCSY4tvkqhF2eqd9O7txNlS0PO3GrBAFIdr3L1ndNwteUbZLYg==",
"dev": true,
"license": "Apache-2.0",
"bin": {
@@ -533,6 +545,8 @@
},
"node_modules/which": {
"version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
"dev": true,
"license": "ISC",
"dependencies": {
+34
View File
@@ -0,0 +1,34 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
}:
buildNpmPackage {
pname = "coc-jest";
version = "1.1.5-unstable-2025-04-19";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc-jest";
rev = "0ce2cd21c535e0c6c86102bc4da95337cb29948b";
hash = "sha256-jEwQxZWyKh5tgdRD0f/jQ3q9B/fIGD9Pd8AYDsBj4LQ=";
};
patches = [
./package-lock-fix.patch
];
npmDepsHash = "sha256-4X6lmblZnAF+4ZmrWYwfigO90Ah7I+B4tbMpFrguxMU=";
npmBuildScript = "prepare";
passthru.updateScript = ./update.sh;
meta = {
description = "Jest extension for coc.nvim";
homepage = "https://github.com/neoclide/coc-jest";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
}
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p bash nodejs nix-update git
WORKDIR=$(mktemp -d)
PACKAGE_DIR="$(realpath "$(dirname "$0")")"
# Clone source
git clone "https://github.com/neoclide/coc-jest" "$WORKDIR/src"
pushd "$WORKDIR/src"
npx --yes npm-package-lock-add-resolved
# Update package-lock patch
git diff >"$PACKAGE_DIR/package-lock-fix.patch"
popd
# Run nix-update
nix-update --version=branch "$UPDATE_NIX_PNAME"
# Cleanup
rm -rf "$WORKDIR"
+31
View File
@@ -0,0 +1,31 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
}:
buildNpmPackage (finalAttrs: {
pname = "coc-json";
version = "1.9.3";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc-json";
tag = finalAttrs.version;
hash = "sha256-iYGhjU9qaRh7Jlc/LLbZIvfPsJR+2FMy2L3weVn2rFA=";
};
npmDepsHash = "sha256-ois2uyIrF8dRgSGt5NhjYoWw8OqFPRmlG5y952boj1Y=";
npmBuildScript = "prepare";
passthru.updateScript = nix-update-script { };
meta = {
description = "JSON language extension for coc.nvim";
homepage = "https://github.com/neoclide/coc-json";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
+31
View File
@@ -0,0 +1,31 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
}:
buildNpmPackage (finalAttrs: {
pname = "coc-lists";
version = "1.5.4";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc-lists";
tag = finalAttrs.version;
hash = "sha256-jt7JnGRXGgG+tbk0GySZeVAlOeTL/pX6+6WK3Qv6mYg=";
};
npmDepsHash = "sha256-9GndvIt7kQwT/wcS0qmeB0aIRNI/8UoW5b1JfoVAfn0=";
npmBuildScript = "prepare";
passthru.updateScript = nix-update-script { };
meta = {
description = "Common lists for coc.nvim";
homepage = "https://github.com/neoclide/coc-lists";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
@@ -0,0 +1,29 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
}:
buildNpmPackage {
pname = "coc-markdownlint";
version = "0-unstable-2025-11-01";
src = fetchFromGitHub {
owner = "fannheyward";
repo = "coc-markdownlint";
rev = "4e507d516ccb0e0287c95d909db85676d786e9bd";
hash = "sha256-fNUmrwjCiMYZHXkI4RPn4BMRxiWW+BoVEvaSMIsEMeQ=";
};
npmDepsHash = "sha256-JMXeWQZMYkhUqE5DdYBRRhyHDAqr9VkKATRQE6eOGys=";
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
meta = {
description = "Markdownlint extension for coc.nvim";
homepage = "https://github.com/fannheyward/coc-markdownlint";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
}
@@ -0,0 +1,28 @@
diff --git c/package-lock.json i/package-lock.json
index ee9b22f..4d693ab 100644
--- c/package-lock.json
+++ i/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "coc-pairs",
- "version": "1.5.1",
+ "version": "1.5.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "coc-pairs",
- "version": "1.5.1",
+ "version": "1.5.2",
"license": "MIT",
"devDependencies": {
"@chemzqm/tsconfig": "^0.0.3",
@@ -20,6 +20,8 @@
},
"node_modules/@chemzqm/tsconfig": {
"version": "0.0.3",
+ "resolved": "https://registry.npmjs.org/@chemzqm/tsconfig/-/tsconfig-0.0.3.tgz",
+ "integrity": "sha512-MjF25vbqLYR+S+JJLgBi0vn4gZqv/C87H+yPSlVKEqlIJAJOGJOgFPUFvRS7pdRHqkv2flX/oRxzxhlu2V0X1w==",
"dev": true,
"license": "MIT"
},
+32
View File
@@ -0,0 +1,32 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
}:
buildNpmPackage (finalAttrs: {
pname = "coc-pairs";
version = "1.5.2";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc-pairs";
tag = finalAttrs.version;
hash = "sha256-CUNnNS8mRjyVyjFw4dLnFpskdZNn/+UjVwOcuZJkeNw=";
};
patches = [
./package-lock-fix.patch
];
npmDepsHash = "sha256-yIMed7x5EzJMMhsA/O08kLpVYMujyJq1qol/KilxxTs=";
passthru.updateScript = ./update.sh;
meta = {
description = "Basic auto pairs extension for coc.nvim";
homepage = "https://github.com/neoclide/coc-pairs";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
+28
View File
@@ -0,0 +1,28 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p bash nodejs nix-update git curl jq
WORKDIR=$(mktemp -d)
PACKAGE_DIR="$(realpath "$(dirname "$0")")"
# Get latest tag
NEW_VERSION=$(curl "https://api.github.com/repos/neoclide/coc-pairs/tags" | jq -r '.[] | .name' | sort --version-sort | tail -1)
if [[ "$UPDATE_NIX_OLD_VERSION" == "$NEW_VERSION" ]]; then
echo "package is up to date: $UPDATE_NIX_OLD_VERSION"
exit 0
fi
# Clone source
git clone "https://github.com/neoclide/coc-pairs" -b "$NEW_VERSION" "$WORKDIR/src"
pushd "$WORKDIR/src"
npx --yes npm-package-lock-add-resolved
# Update package-lock patch
git diff >"$PACKAGE_DIR/package-lock-fix.patch"
popd
# Run nix-update
nix-update "$UPDATE_NIX_PNAME"
# Cleanup
rm -rf "$WORKDIR"
+31
View File
@@ -0,0 +1,31 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
}:
buildNpmPackage (finalAttrs: {
pname = "coc-prettier";
version = "11.0.1";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc-prettier";
tag = finalAttrs.version;
hash = "sha256-QD31kF7HIsh7C6ykt+x7utLEmN7msprGstoRa3PC7j8=";
};
npmDepsHash = "sha256-vKkW3PbeN3KtJHLvr0HBMiDx9XZgyBZD40gENDnoOSs=";
npmBuildScript = "prepare";
passthru.updateScript = nix-update-script { };
meta = {
description = "Prettier extension for coc.nvim";
homepage = "https://github.com/neoclide/coc-prettier";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
+45
View File
@@ -0,0 +1,45 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
fetchYarnDeps,
yarnConfigHook,
yarnBuildHook,
yarnInstallHook,
nodejs,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "coc-r-lsp";
version = "1.2.1";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc-r-lsp";
tag = finalAttrs.version;
hash = "sha256-pjxnNzWOqlVWNNvEF9Yx1aQa4i3BpJoenuGQmY/k1QA=";
};
yarnOfflineCache = fetchYarnDeps {
inherit (finalAttrs) src;
hash = "sha256-BUg1ZhJn3pF2cQB6b1Fe0jsd9gi2ZyMhCt7SXtjvY54=";
};
nativeBuildInputs = [
yarnConfigHook
yarnBuildHook
yarnInstallHook
nodejs
];
NODE_OPTIONS = "--openssl-legacy-provider";
passthru.updateScript = nix-update-script { };
meta = {
description = "R LSP client for coc.nvim";
homepage = "https://github.com/neoclide/coc-r-lsp";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
@@ -0,0 +1,29 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
}:
buildNpmPackage {
pname = "coc-rust-analyzer";
version = "0-unstable-2025-10-31";
src = fetchFromGitHub {
owner = "fannheyward";
repo = "coc-rust-analyzer";
rev = "6cc74fcaed6b011b98e9f8483fb608dff53147be";
hash = "sha256-2XSx4eR9GgMbWY+IOEKuhCAVesxoZbh/KsLr0It0Cks=";
};
npmDepsHash = "sha256-94kuqDNsCcPuvTVeprEdjNOPw8pdpDp3IOvuoKdSEgU=";
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
meta = {
description = "Rust-analyzer extension for coc.nvim";
homepage = "https://github.com/fannheyward/coc-rust-analyzer";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
}
+71
View File
@@ -0,0 +1,71 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
fetchYarnDeps,
yarnConfigHook,
yarnBuildHook,
yarnInstallHook,
nodejs,
nix-update-script,
esbuild,
buildGoModule,
}:
let
esbuild' =
let
version = "0.12.22";
in
esbuild.override {
buildGoModule =
args:
buildGoModule (
args
// {
inherit version;
src = fetchFromGitHub {
owner = "evanw";
repo = "esbuild";
rev = "v${version}";
hash = "sha256-vZlrHfcXOz4QHTH9otpwtPIWHGxK4TAol5o/Tl0M98E=";
};
vendorHash = "sha256-2ABWPqhK2Cf4ipQH7XvRrd+ZscJhYPc3SV2cGT0apdg=";
}
);
};
in
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "coc-smartf";
version = "1.2.1";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc-smartf";
tag = finalAttrs.version;
hash = "sha256-CL0jWwMj6sFXEx+D1Orc4Fivbl33qE2P3yRJB0qqQFQ=";
};
yarnOfflineCache = fetchYarnDeps {
inherit (finalAttrs) src;
hash = "sha256-s1TStKyDPydBxMLfszhKHGyQeFIC6bDPtssNm9hdZNs=";
};
nativeBuildInputs = [
yarnConfigHook
yarnBuildHook
yarnInstallHook
nodejs
esbuild'
];
env.ESBUILD_BINARY_PATH = lib.getExe esbuild';
passthru.updateScript = nix-update-script { };
meta = {
description = "Make jump to character easier";
homepage = "https://github.com/neoclide/coc-smartf";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
+31
View File
@@ -0,0 +1,31 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
}:
buildNpmPackage (finalAttrs: {
pname = "coc-snippets";
version = "3.4.7";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc-snippets";
tag = finalAttrs.version;
hash = "sha256-xaExEsNy6uuYUTeyXaon4DAoRIF6OpIZis59oetR36c=";
};
npmDepsHash = "sha256-tRyFtfL3Jc+uajELVdJoDteY3lnq0Bx8UQTaz2HtbW0=";
npmBuildScript = "prepare";
passthru.updateScript = nix-update-script { };
meta = {
description = "Snippets solution for coc.nvim";
homepage = "https://github.com/neoclide/coc-snippets";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
@@ -0,0 +1,73 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
fetchYarnDeps,
yarnConfigHook,
yarnBuildHook,
yarnInstallHook,
nodejs,
nix-update-script,
esbuild,
buildGoModule,
}:
let
esbuild' =
let
version = "0.8.29";
in
esbuild.override {
buildGoModule =
args:
buildGoModule (
args
// {
inherit version;
src = fetchFromGitHub {
owner = "evanw";
repo = "esbuild";
rev = "v${version}";
hash = "sha256-WpnWdx0Oi1KBWiS/CEd88hYU/3ka1x1AA71ipYJgT5A=";
};
vendorHash = "sha256-2ABWPqhK2Cf4ipQH7XvRrd+ZscJhYPc3SV2cGT0apdg=";
}
);
};
in
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "coc-solargraph";
version = "1.2.4";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc-solargraph";
tag = finalAttrs.version;
hash = "sha256-AUulj0tcgkXrQS9k1zhB0LKWJxvIlVtxSQK+nYGm73s=";
};
yarnOfflineCache = fetchYarnDeps {
inherit (finalAttrs) src;
hash = "sha256-FPxvwqx7TfJBM+O8TY64swJVYlWIbCvVbzVJYthHjO0=";
};
yarnBuildScript = "prepare";
nativeBuildInputs = [
yarnConfigHook
yarnBuildHook
yarnInstallHook
nodejs
esbuild'
];
env.ESBUILD_BINARY_PATH = lib.getExe esbuild';
passthru.updateScript = nix-update-script { };
meta = {
description = "Solargraph extension for coc.nvim";
homepage = "https://github.com/neoclide/coc-solargraph";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
+71
View File
@@ -0,0 +1,71 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
fetchYarnDeps,
yarnConfigHook,
yarnBuildHook,
yarnInstallHook,
nodejs,
nix-update-script,
esbuild,
buildGoModule,
}:
let
esbuild' =
let
version = "0.16.17";
in
esbuild.override {
buildGoModule =
args:
buildGoModule (
args
// {
inherit version;
src = fetchFromGitHub {
owner = "evanw";
repo = "esbuild";
rev = "v${version}";
hash = "sha256-8L8h0FaexNsb3Mj6/ohA37nYLFogo5wXkAhGztGUUsQ=";
};
vendorHash = "sha256-+BfxCyg0KkDQpHt/wycy/8CTG6YBA/VJvJFhhzUnSiQ=";
}
);
};
in
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "coc-sqlfluff";
version = "0.11.4";
src = fetchFromGitHub {
owner = "yaegassy";
repo = "coc-sqlfluff";
tag = "v${finalAttrs.version}";
hash = "sha256-hTe0rtjIKdlPSvwcHI2m0sRkVfmW8eQ/63WLmPsiovI=";
};
yarnOfflineCache = fetchYarnDeps {
inherit (finalAttrs) src;
hash = "sha256-Pz7OCAiPIMVCAYe9OGWKMLfGSwK8ulA/JW55eB8xJqw=";
};
nativeBuildInputs = [
yarnConfigHook
yarnBuildHook
yarnInstallHook
nodejs
esbuild'
];
env.ESBUILD_BINARY_PATH = lib.getExe esbuild';
passthru.updateScript = nix-update-script { };
meta = {
description = "SQLFluff extension for coc.nvim";
homepage = "https://github.com/yaegassy/coc-sqlfluff";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
+51
View File
@@ -0,0 +1,51 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
fetchYarnDeps,
yarnConfigHook,
yarnBuildHook,
yarnInstallHook,
nodejs,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "coc-stylelint";
version = "1.2.0";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc-stylelint";
tag = finalAttrs.version;
hash = "sha256-EurfiE1xeJhyH4Idb/hf/eItwmv75lan1csz0KJMBXs=";
};
# Fix yarn.lock file
postPatch = ''
substituteInPlace yarn.lock \
--replace-fail "http://registry.npmjs.org" "https://registry.yarnpkg.com"
'';
yarnOfflineCache = fetchYarnDeps {
inherit (finalAttrs) src postPatch;
hash = "sha256-rcHjbiMDrgCHweRMDlfcMvAJT4VULks44fbpctPpZps=";
};
nativeBuildInputs = [
yarnConfigHook
yarnBuildHook
yarnInstallHook
nodejs
];
NODE_OPTIONS = "--openssl-legacy-provider";
passthru.updateScript = nix-update-script { };
meta = {
description = "Stylelint extension for coc.nvim";
homepage = "https://github.com/neoclide/coc-stylelint";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,60 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
esbuild,
buildGoModule,
}:
let
esbuild' =
let
version = "0.20.2";
in
esbuild.override {
buildGoModule =
args:
buildGoModule (
args
// {
inherit version;
src = fetchFromGitHub {
owner = "evanw";
repo = "esbuild";
rev = "v${version}";
hash = "sha256-h/Vqwax4B4nehRP9TaYbdixAZdb1hx373dNxNHvDrtY=";
};
vendorHash = "sha256-+BfxCyg0KkDQpHt/wycy/8CTG6YBA/VJvJFhhzUnSiQ=";
}
);
};
in
buildNpmPackage (finalAttrs: {
pname = "coc-sumneko-lua";
version = "0.0.42";
src = fetchFromGitHub {
owner = "xiyaowong";
repo = "coc-sumneko-lua";
tag = "v${finalAttrs.version}";
hash = "sha256-B5XvhhBbVeBQI6nWVskaopx2pJYFBiFCfbPwwwloFig=";
};
patches = [
./package-lock-fix.patch
];
npmDepsHash = "sha256-NEUDQm4hzhGJyEdiBBrSWa8fMw3DcnnPJJo0m+HgZ5U=";
nativeBuildInputs = [ esbuild' ];
env.ESBUILD_BINARY_PATH = lib.getExe esbuild';
passthru.updateScript = ./update.sh;
meta = {
description = "Lua extension using sumneko lua-language-server for coc.nvim";
homepage = "https://github.com/xiyaowong/coc-sumneko-lua";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
+31
View File
@@ -0,0 +1,31 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p bash nodejs nix-update git curl
WORKDIR=$(mktemp -d)
PACKAGE_DIR="$(realpath "$(dirname "$0")")"
# Get latest tag
NEW_VERSION=$(curl "https://api.github.com/repos/xiyaowong/coc-sumneko-lua/tags" | jq -r '.[] | .name' | sort --version-sort | tail -1)
# Trim leading "v" for version comparisons
NEW_VERSION=${NEW_VERSION:1}
# exit early if no change
if [[ "$UPDATE_NIX_OLD_VERSION" == "$NEW_VERSION" ]]; then
echo "package is up-to-date: $UPDATE_NIX_OLD_VERSION"
exit 0
fi
# Clone source
git clone "https://github.com/xiyaowong/coc-sumneko-lua" -b "v$NEW_VERSION" "$WORKDIR/src"
pushd "$WORKDIR/src"
npx --yes npm-package-lock-add-resolved
# Update package-lock patch
git diff >"$PACKAGE_DIR/package-lock-fix.patch"
popd
# Run nix-update
nix-update "$UPDATE_NIX_PNAME"
# Cleanup
rm -rf "$WORKDIR"
+73
View File
@@ -0,0 +1,73 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
fetchYarnDeps,
yarnConfigHook,
yarnBuildHook,
yarnInstallHook,
nodejs,
nix-update-script,
esbuild,
buildGoModule,
}:
let
esbuild' =
let
version = "0.8.33";
in
esbuild.override {
buildGoModule =
args:
buildGoModule (
args
// {
inherit version;
src = fetchFromGitHub {
owner = "evanw";
repo = "esbuild";
rev = "v${version}";
hash = "sha256-u/3YHQZskgbkaXV7RF8G9kMMx1A25hHhHv+VQdZZ4EU=";
};
vendorHash = "sha256-2ABWPqhK2Cf4ipQH7XvRrd+ZscJhYPc3SV2cGT0apdg=";
}
);
};
in
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "coc-tabnine";
version = "1.3.7";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc-tabnine";
tag = finalAttrs.version;
hash = "sha256-7l4gCpArP1pp/SfYiyzjLc8VH7HVhwx2slorQcuA6k4=";
};
yarnOfflineCache = fetchYarnDeps {
inherit (finalAttrs) src;
hash = "sha256-Pg/AQv9/VTUXTu6q71vQ+0AMNswHEoCOAWnWIeuy/lQ=";
};
yarnBuildScript = "prepare";
nativeBuildInputs = [
yarnConfigHook
yarnBuildHook
yarnInstallHook
nodejs
esbuild'
];
env.ESBUILD_BINARY_PATH = lib.getExe esbuild';
passthru.updateScript = nix-update-script { };
meta = {
description = "Tabnine extension for coc.nvim";
homepage = "https://github.com/neoclide/coc-tabnine";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
+71
View File
@@ -0,0 +1,71 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
fetchYarnDeps,
yarnConfigHook,
yarnBuildHook,
yarnInstallHook,
nodejs,
nix-update-script,
esbuild,
buildGoModule,
}:
let
esbuild' =
let
version = "0.25.0";
in
esbuild.override {
buildGoModule =
args:
buildGoModule (
args
// {
inherit version;
src = fetchFromGitHub {
owner = "evanw";
repo = "esbuild";
rev = "v${version}";
hash = "sha256-L9jm94Epb22hYsU3hoq1lZXb5aFVD4FC4x2qNt0DljA=";
};
vendorHash = "sha256-+BfxCyg0KkDQpHt/wycy/8CTG6YBA/VJvJFhhzUnSiQ=";
}
);
};
in
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "coc-texlab";
version = "0-unstable-2025-07-22";
src = fetchFromGitHub {
owner = "fannheyward";
repo = "coc-texlab";
rev = "a4ad3f259d94086f4971b22b97833e8a72226782";
hash = "sha256-6W+L/LdF6g0Xwhv+9VtjjfzRjlbN7OaqHbSXtO3cfZ0=";
};
yarnOfflineCache = fetchYarnDeps {
inherit (finalAttrs) src;
hash = "sha256-g2IwfO1IMktTtflR2m7c99wOYLJYmD2I7hBbCNy+XFA=";
};
nativeBuildInputs = [
yarnConfigHook
yarnBuildHook
yarnInstallHook
nodejs
esbuild'
];
env.ESBUILD_BINARY_PATH = lib.getExe esbuild';
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
meta = {
description = "TexLab extension for coc.nvim";
homepage = "https://github.com/fannheyward/coc-texlab";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
+45
View File
@@ -0,0 +1,45 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
fetchYarnDeps,
yarnConfigHook,
yarnBuildHook,
yarnInstallHook,
nodejs,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "coc-vimlsp";
version = "0-unstable-2023-06-26";
src = fetchFromGitHub {
owner = "iamcco";
repo = "coc-vimlsp";
rev = "9e88f053201b8b224a6849ce8f891f526e75a28b";
hash = "sha256-U5nJRn0UZsGfyDR4gZN2E+TSWk0A7RXJqMRQMK3QV00=";
};
yarnOfflineCache = fetchYarnDeps {
inherit (finalAttrs) src;
hash = "sha256-K5hC3YrzSxULt0SiX7r+b8uNWdnvqGe+/GBvZiFzW0c=";
};
nativeBuildInputs = [
yarnConfigHook
yarnBuildHook
yarnInstallHook
nodejs
];
NODE_OPTIONS = "--openssl-legacy-provider";
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
meta = {
description = "vim-language-server extension for coc.nvim";
homepage = "https://github.com/iamcco/coc-vimlsp";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
+41
View File
@@ -0,0 +1,41 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
fetchYarnDeps,
yarnConfigHook,
yarnInstallHook,
nodejs,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "coc-vimtex";
version = "1.1.5";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc-vimtex";
tag = finalAttrs.version;
hash = "sha256-Z0vhgpdzh3GY9o6qnYWkeaUtjtoJ6PdqtDpRQHQXCjI=";
};
yarnOfflineCache = fetchYarnDeps {
inherit (finalAttrs) src;
hash = "sha256-XEDPfnEkUTVCpxBp/DAdrRDvxYrTo/e+PTQGmtSy58c=";
};
nativeBuildInputs = [
yarnConfigHook
yarnInstallHook
nodejs
];
passthru.updateScript = nix-update-script { };
meta = {
description = "VimTeX extension for coc.nvim";
homepage = "https://github.com/neoclide/coc-vimtex";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
+51
View File
@@ -0,0 +1,51 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
fetchYarnDeps,
yarnConfigHook,
yarnBuildHook,
yarnInstallHook,
nodejs,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "coc-wxml";
version = "1.0.9";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc-wxml";
tag = finalAttrs.version;
hash = "sha256-6tI+rIgoKGafBSxbPumCquAahJVR3rUzJB4VWQR+qw0=";
};
# Fix yarn.lock file
postPatch = ''
substituteInPlace yarn.lock \
--replace-fail "http://registry.npmjs.org" "https://registry.yarnpkg.com"
'';
yarnOfflineCache = fetchYarnDeps {
inherit (finalAttrs) src postPatch;
hash = "sha256-s2doN+DeVJPIWe/vOuAH7cYl/S/v8S4yeTG6KIWKphA=";
};
nativeBuildInputs = [
yarnConfigHook
yarnBuildHook
yarnInstallHook
nodejs
];
NODE_OPTIONS = "--openssl-legacy-provider";
passthru.updateScript = nix-update-script { };
meta = {
description = "Wxml extension for coc.nvim";
homepage = "https://github.com/neoclide/coc-wxml";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
@@ -0,0 +1,89 @@
diff --git i/package-lock.json w/package-lock.json
index 294a466..424d557 100644
--- i/package-lock.json
+++ w/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "coc-yaml",
- "version": "1.9.0",
+ "version": "1.9.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "coc-yaml",
- "version": "1.9.0",
+ "version": "1.9.1",
"license": "MIT",
"dependencies": {
"prettier": "2.0.5"
@@ -27,6 +27,8 @@
},
"node_modules/@chemzqm/tsconfig": {
"version": "0.0.3",
+ "resolved": "https://registry.npmjs.org/@chemzqm/tsconfig/-/tsconfig-0.0.3.tgz",
+ "integrity": "sha512-MjF25vbqLYR+S+JJLgBi0vn4gZqv/C87H+yPSlVKEqlIJAJOGJOgFPUFvRS7pdRHqkv2flX/oRxzxhlu2V0X1w==",
"dev": true,
"license": "MIT"
},
@@ -464,6 +466,8 @@
},
"node_modules/ansi-styles": {
"version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.1.0.tgz",
+ "integrity": "sha512-VbqNsoz55SYGczauuup0MFUyXNQviSpFTj1RQtFzmQLk18qbVSpTFFGMT293rmDaQuKCT6InmbuEyUne4mTuxQ==",
"dev": true,
"license": "MIT",
"engines": {
@@ -533,6 +537,8 @@
},
"node_modules/fs-extra": {
"version": "10.0.0",
+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.0.tgz",
+ "integrity": "sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -546,11 +552,15 @@
},
"node_modules/graceful-fs": {
"version": "4.2.9",
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.9.tgz",
+ "integrity": "sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==",
"dev": true,
"license": "ISC"
},
"node_modules/jsonfile": {
"version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",
+ "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -562,6 +572,8 @@
},
"node_modules/prettier": {
"version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.0.5.tgz",
+ "integrity": "sha512-7PtVymN48hGcO4fGjybyBSIWDsLU4H4XlvOHfq91pz9kkGlonzwTfYkaIEwiRg/dAJF9YlbsduBAgtYLi+8cFg==",
"license": "MIT",
"bin": {
"prettier": "bin-prettier.js"
@@ -572,6 +584,8 @@
},
"node_modules/request-light": {
"version": "0.5.7",
+ "resolved": "https://registry.npmjs.org/request-light/-/request-light-0.5.7.tgz",
+ "integrity": "sha512-i/wKzvcx7Er8tZnvqSxWuNO5ZGggu2UgZAqj/RyZ0si7lBTXL7kZiI/dWxzxnQjaY7s5HEy1qK21Do4Ncr6cVw==",
"dev": true,
"license": "MIT"
},
@@ -591,6 +605,8 @@
},
"node_modules/universalify": {
"version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz",
+ "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==",
"dev": true,
"license": "MIT",
"engines": {
+34
View File
@@ -0,0 +1,34 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
}:
buildNpmPackage (finalAttrs: {
pname = "coc-yaml";
version = "1.9.1";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc-yaml";
tag = finalAttrs.version;
hash = "sha256-JzIajdgVOVJupxmHrw9GuGDZS863YaUa5FomT2tqBpc=";
};
patches = [
./package-lock-fix.patch
];
npmDepsHash = "sha256-2XFXeF2ork6cPrYU2avpXSoAvLa7If6AtYtBGoxL/2g=";
npmBuildScript = "prepare";
passthru.updateScript = ./update.sh;
meta = {
description = "Yaml language server extension for coc.nvim";
homepage = "https://github.com/neoclide/coc-yaml";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
+28
View File
@@ -0,0 +1,28 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p bash nodejs nix-update git curl jq
WORKDIR=$(mktemp -d)
PACKAGE_DIR="$(realpath "$(dirname "$0")")"
# Get latest tag
NEW_VERSION=$(curl "https://api.github.com/repos/neoclide/coc-yaml/tags" | jq -r '.[] | .name' | sort --version-sort | tail -1)
# exit early if no change
if [[ "$UPDATE_NIX_OLD_VERSION" == "$NEW_VERSION" ]]; then
echo "package is up-to-date: $UPDATE_NIX_OLD_VERSION"
exit 0
fi
# Clone source
git clone "https://github.com/neoclide/coc-yaml" -b "$NEW_VERSION" "$WORKDIR/src"
pushd "$WORKDIR/src"
npx --yes npm-package-lock-add-resolved
# Update package-lock patch
git diff >"$PACKAGE_DIR/package-lock-fix.patch"
popd
# Run nix-update
nix-update --version="$NEW_VERSION" "$UPDATE_NIX_PNAME"
# Cleanup
rm -rf "$WORKDIR"
+58
View File
@@ -0,0 +1,58 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
esbuild,
buildGoModule,
}:
let
esbuild' =
let
version = "0.25.0";
in
esbuild.override {
buildGoModule =
args:
buildGoModule (
args
// {
inherit version;
src = fetchFromGitHub {
owner = "evanw";
repo = "esbuild";
rev = "v${version}";
hash = "sha256-L9jm94Epb22hYsU3hoq1lZXb5aFVD4FC4x2qNt0DljA=";
};
vendorHash = "sha256-+BfxCyg0KkDQpHt/wycy/8CTG6YBA/VJvJFhhzUnSiQ=";
}
);
};
in
buildNpmPackage (finalAttrs: {
pname = "coc-yank";
version = "1.2.5";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc-yank";
tag = finalAttrs.version;
hash = "sha256-AREGlb8YDRwma9QtLeoted5S0ordS8Hcd2umYQfKq9g=";
};
npmDepsHash = "sha256-ISHILT/FBy2Y0UWaQkjMm5ZsYacNt3M54IJ8ckYjq3A=";
nativeBuildInputs = [ esbuild' ];
env.ESBUILD_BINARY_PATH = lib.getExe esbuild';
passthru.updateScript = nix-update-script { };
meta = {
description = "Yank highlight and persist yank history support for vim";
homepage = "https://github.com/neoclide/coc-yank";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
+30 -1
View File
@@ -72,22 +72,51 @@ mapAliases {
inherit (pkgs) cdktf-cli; # added 2025-10-02
inherit (pkgs) clean-css-cli; # added 2023-08-18
inherit (pkgs) coc-clangd; # added 2024-06-29
inherit (pkgs) coc-cmake; # Added 2025-11-05
inherit (pkgs) coc-css; # added 2024-06-29
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-flutter; # Added 2025-11-05
inherit (pkgs) coc-git; # added 2025-10-01
inherit (pkgs) coc-haxe; # Added 2025-11-05
inherit (pkgs) coc-highlight; # Added 2025-11-05
inherit (pkgs) coc-html; # Added 2025-11-05
coc-imselect = throw "coc-imselect was removed because it was broken"; # added 2023-08-21
inherit (pkgs) coc-pyright; # added 2024-07-14
inherit (pkgs) coc-java; # Added 2025-11-05
inherit (pkgs) coc-jest; # Added 2025-11-05
inherit (pkgs) coc-json; # Added 2025-11-05
inherit (pkgs) coc-lists; # Added 2025-11-05
inherit (pkgs) coc-markdownlint; # Added 2025-11-05
coc-metals = throw "coc-metals was removed because it was deprecated upstream. vimPlugins.nvim-metals is its official replacement."; # Added 2024-10-16
inherit (pkgs) coc-pairs; # added 2025-11-05
inherit (pkgs) coc-prettier; # added 2025-11-05
inherit (pkgs) coc-pyright; # added 2024-07-14
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
inherit (pkgs) coc-r-lsp; # added 2025-11-05
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-rust-analyzer; # added 2025-11-05
inherit (pkgs) coc-sh; # added 2025-10-02
inherit (pkgs) coc-smartf; # Added 2025-11-05
inherit (pkgs) coc-snippets; # Added 2025-11-05
inherit (pkgs) coc-solargraph; # Added 2025-11-05
inherit (pkgs) coc-spell-checker; # added 2025-10-01
inherit (pkgs) coc-sqlfluff; # Added 2025-11-05
inherit (pkgs) coc-stylelint; # Added 2025-11-05
inherit (pkgs) coc-sumneko-lua; # Added 2025-11-05
inherit (pkgs) coc-tabnine; # Added 2025-11-05
inherit (pkgs) coc-texlab; # Added 2025-11-05
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
coc-vetur = throw "coc-vetur was removed because vetur was deprecated by Vue in favor of volar. Use coc-volar instead, which supports Vue 3"; # added 2025-10-01
inherit (pkgs) coc-vimlsp; # Added 2025-11-05
inherit (pkgs) coc-vimtex; # Added 2025-11-05
inherit (pkgs) coc-wxml; # Added 2025-11-05
inherit (pkgs) coc-yaml; # Added 2025-11-05
inherit (pkgs) coc-yank; # Added 2025-11-05
coinmon = throw "coinmon was removed since it was abandoned upstream"; # added 2024-03-19
coffee-script = pkgs.coffeescript; # added 2023-08-18
inherit (pkgs) concurrently; # added 2024-08-05
@@ -21,39 +21,10 @@
, "browser-sync"
, "cdk8s-cli"
, "clipboard-cli"
, "coc-cmake"
, "coc-emmet"
, "coc-eslint"
, "coc-flutter"
, "coc-go"
, "coc-haxe"
, "coc-highlight"
, "coc-html"
, "coc-java"
, "coc-jest"
, "coc-json"
, "coc-lists"
, "coc-ltex"
, "coc-markdownlint"
, "coc-pairs"
, "coc-prettier"
, "coc-r-lsp"
, "coc-rust-analyzer"
, "coc-smartf"
, "coc-snippets"
, "coc-solargraph"
, "coc-stylelint"
, "coc-sumneko-lua"
, "coc-sqlfluff"
, "coc-tabnine"
, "coc-texlab"
, "coc-tsserver"
, "coc-ultisnips"
, "coc-vimlsp"
, "coc-vimtex"
, "coc-wxml"
, "coc-yaml"
, "coc-yank"
, "code-theme-converter"
, "conventional-changelog-cli"
, "cpy-cli"
File diff suppressed because it is too large Load Diff