From a15e88b58b50e1d72a66f377a115e92d74b20d89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20Pomyka=C5=82a?= <168227269+dpomykala@users.noreply.github.com> Date: Sat, 10 May 2025 13:02:00 +0200 Subject: [PATCH] vimPlugins.avante-nvim: v0.0.23 -> 0.0.23-unstable-2025-05-09 Currently, the package is built based on version tags. This is not ideal, as the version tags in the avante.nvim repo refer to the Rust libs used by the plugin, not to the plugin itself. This results in an outdated version of the plugin. This is changed now, so the latest revision from the main branch is tracked instead of version tags. --- .../vim/plugins/non-generated/avante-nvim/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/editors/vim/plugins/non-generated/avante-nvim/default.nix b/pkgs/applications/editors/vim/plugins/non-generated/avante-nvim/default.nix index d0eccec6bd57..671af8b357ac 100644 --- a/pkgs/applications/editors/vim/plugins/non-generated/avante-nvim/default.nix +++ b/pkgs/applications/editors/vim/plugins/non-generated/avante-nvim/default.nix @@ -12,12 +12,12 @@ pkgs, }: let - version = "0.0.23"; + version = "0.0.23-unstable-2025-05-09"; src = fetchFromGitHub { owner = "yetone"; repo = "avante.nvim"; - tag = "v${version}"; - hash = "sha256-Ud4NkJH7hze5796KjVe5Nj9DzxwQkDQErCJDDiBzAIY="; + rev = "8f96d4319df662c8069ce82307d03bb1da2d0554"; + hash = "sha256-7cPhnuSpZ1WKJtQiTFhI7y//vR1qPDc7EZeeyewfxxU="; }; avante-nvim-lib = rustPlatform.buildRustPackage { pname = "avante-nvim-lib"; @@ -73,6 +73,7 @@ vimUtils.buildVimPlugin { passthru = { updateScript = nix-update-script { + extraArgs = [ "--version=branch" ]; attrPath = "vimPlugins.avante-nvim.avante-nvim-lib"; }; @@ -84,6 +85,10 @@ vimUtils.buildVimPlugin { # Requires setup with corresponding provider "avante.providers.azure" "avante.providers.copilot" + "avante.providers.gemini" + "avante.providers.ollama" + "avante.providers.vertex" + "avante.providers.vertex_claude" ]; meta = {