avante-nvim, Remove not necessary dependencies in plugin build

This commit is contained in:
Martin Treml 2025-06-06 17:35:57 +02:00
commit 1c744f778d

View file

@ -1,16 +1,14 @@
{ {
nix-update-script,
openssl, openssl,
pkg-config, pkg-config,
rustPlatform, rustPlatform,
stdenv, stdenv,
vimPlugins,
vimUtils, vimUtils,
makeWrapper, makeWrapper,
pkgs, pkgs,
version, version,
src, src,
pins, ...
}: let }: let
inherit version src; inherit version src;
avante-nvim-lib = rustPlatform.buildRustPackage { avante-nvim-lib = rustPlatform.buildRustPackage {
@ -45,20 +43,7 @@ in
pname = "avante-nvim"; pname = "avante-nvim";
inherit version src; inherit version src;
dependencies = doCheck = false;
[vimPlugins.nvim-treesitter]
++ (builtins.map (name: let
pin = pins.${name};
in
pkgs.fetchFromGitHub {
inherit (pin.repository) owner repo;
rev = pin.revision;
sha256 = pin.hash;
}) [
"dressing-nvim"
"plenary-nvim"
"nui-nvim"
]);
postInstall = let postInstall = let
ext = stdenv.hostPlatform.extensions.sharedLibrary; ext = stdenv.hostPlatform.extensions.sharedLibrary;