coc-sumneko-lua: drop package (#486954)
This commit is contained in:
@@ -47,6 +47,7 @@ mapAliases (
|
||||
caw = caw-vim;
|
||||
chad = chadtree;
|
||||
coc-rls = throw "coc-rls has been removed, as rls has been archived since 2022. You should use coc-rust-analyzer instead, as rust-analyzer is maintained."; # added 2025-10-01
|
||||
coc-sumneko-lua = throw "coc-sumneko-lua was removed, as it is unmaintained and broken. You should switch to lua_ls"; # added 2026-02-04
|
||||
coc-vetur = throw "coc-vetur was removed, as vetur is unmaintained by Vue. You should switch to Volar, which supports Vue 3"; # added 2025-10-01
|
||||
coffee-script = vim-coffee-script;
|
||||
coffeeScript = vim-coffee-script; # backwards compat, added 2014-10-18
|
||||
|
||||
@@ -39,7 +39,6 @@ let
|
||||
"coc-spell-checker"
|
||||
"coc-sqlfluff"
|
||||
"coc-stylelint"
|
||||
"coc-sumneko-lua"
|
||||
"coc-tabnine"
|
||||
"coc-texlab"
|
||||
"coc-toml"
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,60 +0,0 @@
|
||||
{
|
||||
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 ];
|
||||
};
|
||||
})
|
||||
@@ -1,31 +0,0 @@
|
||||
#!/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/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"
|
||||
@@ -481,6 +481,7 @@ mapAliases {
|
||||
cloudlogoffline = throw "cloudlogoffline has been removed"; # Added 2025-05-18
|
||||
clucene_core = warnAlias "'clucene_core' has been renamed to 'clucene-core'" clucene-core; # Added 2026-01-12
|
||||
clucene_core_2 = warnAlias "'clucene_core_2' has been renamed to 'clucene-core_2'" clucene-core_2; # Added 2026-01-12
|
||||
coc-sumneko-lua = throw "'coc-sumneko-lua' has been removed due to unmaintained and broken package. 'lua_ls' can be used as a replacement"; # Added 2026-02-04
|
||||
cockroachdb-bin = throw "'cockroachdb-bin' has been renamed to/replaced by 'cockroachdb'"; # Converted to throw 2025-10-27
|
||||
code-browser-gtk2 = throw "'code-browser-gtk2' has been removed, as it was broken since 22.11"; # Added 2025-08-22
|
||||
code-browser-gtk = throw "'code-browser-gtk' has been removed, as it was broken since 22.11"; # Added 2025-08-22
|
||||
|
||||
Reference in New Issue
Block a user