From e31e0aee18fe4d60aa682249867c9cc0d5183d67 Mon Sep 17 00:00:00 2001 From: wrvsrx Date: Wed, 30 Apr 2025 12:14:05 +0800 Subject: [PATCH] coc-basedpyright: init at 0-unstable-2025-04-30 --- .../editors/vim/plugins/cocPlugins.nix | 6 +++++ pkgs/by-name/co/coc-basedpyright/package.nix | 27 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/by-name/co/coc-basedpyright/package.nix diff --git a/pkgs/applications/editors/vim/plugins/cocPlugins.nix b/pkgs/applications/editors/vim/plugins/cocPlugins.nix index 508f0452724b..5d7496000268 100644 --- a/pkgs/applications/editors/vim/plugins/cocPlugins.nix +++ b/pkgs/applications/editors/vim/plugins/cocPlugins.nix @@ -1,5 +1,6 @@ { buildVimPlugin, + coc-basedpyright, coc-clangd, coc-css, coc-diagnostic, @@ -7,6 +8,11 @@ coc-toml, }: 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"; diff --git a/pkgs/by-name/co/coc-basedpyright/package.nix b/pkgs/by-name/co/coc-basedpyright/package.nix new file mode 100644 index 000000000000..a5e4d87253c6 --- /dev/null +++ b/pkgs/by-name/co/coc-basedpyright/package.nix @@ -0,0 +1,27 @@ +{ + lib, + buildNpmPackage, + fetchFromGitHub, +}: + +buildNpmPackage { + pname = "coc-basedpyright"; + # No tagged releases, this version is inferred from + version = "1.19.0-unstable-2025-04-30"; + + src = fetchFromGitHub { + owner = "fannheyward"; + repo = "coc-basedpyright"; + rev = "7d944083c7d4843b1dfa9e05014873b0b5bbb85b"; + hash = "sha256-5Vuw54bSk3WMy8bMsIvtkfDmlx3oocxmD1ykfpErbkc="; + }; + + npmDepsHash = "sha256-hn+Y1f7o/Oz37XXJUPF2CJbrPzZYOY0njrJv+T3ve6w="; + + meta = { + description = "Basedpyright extension for coc.nvim"; + homepage = "https://github.com/fannheyward/coc-basedpyright"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ wrvsrx ]; + }; +}