Merge pull request #941 from Munsio/avante-nvim-remove-dependencies
Some checks failed
Set up binary cache / cachix (default) (push) Has been cancelled
Set up binary cache / cachix (maximal) (push) Has been cancelled
Set up binary cache / cachix (nix) (push) Has been cancelled
Treewide Checks / Validate flake (push) Has been cancelled
Treewide Checks / Check formatting (push) Has been cancelled
Treewide Checks / Check source tree for typos (push) Has been cancelled
Treewide Checks / Validate documentation builds (push) Has been cancelled
Treewide Checks / Validate hyperlinks in documentation sources (push) Has been cancelled
Treewide Checks / Validate Editorconfig conformance (push) Has been cancelled

avante-nvim: remove unnecessary dependencies in plugin build
This commit is contained in:
raf 2025-06-06 20:54:45 +03:00 committed by GitHub
commit 33e9666e4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;