vimPlugins.avante-nvim: Init at 2024-09-15 (#339921)
This commit is contained in:
commit
209272d498
@ -351,6 +351,12 @@
|
||||
githubId = 22131756;
|
||||
name = "Aaqa Ishtyaq";
|
||||
};
|
||||
aarnphm = {
|
||||
email = "contact@aarnphm.xyz";
|
||||
github = "aarnphm";
|
||||
githubId = 29749331;
|
||||
name = "Aaron Pham";
|
||||
};
|
||||
aaronarinder = {
|
||||
email = "aaronarinder@gmail.com";
|
||||
github = "aaronArinder";
|
||||
@ -21504,6 +21510,12 @@
|
||||
githubId = 4044033;
|
||||
name = "Thomas Sowell";
|
||||
};
|
||||
ttrei = {
|
||||
email = "reinis.taukulis@gmail.com";
|
||||
github = "ttrei";
|
||||
githubId = 27609929;
|
||||
name = "Reinis Taukulis";
|
||||
};
|
||||
ttuegel = {
|
||||
email = "ttuegel@mailbox.org";
|
||||
github = "ttuegel";
|
||||
|
1638
pkgs/applications/editors/vim/plugins/avante-nvim/Cargo.lock
generated
Normal file
1638
pkgs/applications/editors/vim/plugins/avante-nvim/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,75 @@
|
||||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
openssl,
|
||||
stdenv,
|
||||
vimUtils,
|
||||
darwin,
|
||||
}:
|
||||
|
||||
let
|
||||
version = "2024-09-15";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "yetone";
|
||||
repo = "avante.nvim";
|
||||
rev = "f9520c4fdfed08e9cc609d6cd319b358e4ea33a5";
|
||||
hash = "sha256-8zTDGPnhNI2rQA0uJc8gQRj4JCyg+IkO/D3oHYy4f9U=";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Neovim plugin designed to emulate the behaviour of the Cursor AI IDE";
|
||||
homepage = "https://github.com/yetone/avante.nvim";
|
||||
license = licenses.asl20;
|
||||
maintainers = with lib.maintainers; [
|
||||
ttrei
|
||||
aarnphm
|
||||
];
|
||||
};
|
||||
|
||||
avante-nvim-lib = rustPlatform.buildRustPackage {
|
||||
pname = "avante-nvim-lib";
|
||||
inherit version src meta;
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"mlua-0.10.0-beta.1" = "sha256-ZEZFATVldwj0pmlmi0s5VT0eABA15qKhgjmganrhGBY=";
|
||||
};
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs =
|
||||
[
|
||||
openssl
|
||||
]
|
||||
++ lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.Security
|
||||
];
|
||||
|
||||
buildFeatures = [ "luajit" ];
|
||||
};
|
||||
in
|
||||
|
||||
vimUtils.buildVimPlugin {
|
||||
pname = "avante.nvim";
|
||||
inherit version src meta;
|
||||
|
||||
postInstall =
|
||||
let
|
||||
ext = stdenv.hostPlatform.extensions.sharedLibrary;
|
||||
in
|
||||
''
|
||||
mkdir -p $out/build
|
||||
ln -s ${avante-nvim-lib}/lib/libavante_templates${ext} $out/build/avante_templates${ext}
|
||||
ln -s ${avante-nvim-lib}/lib/libavante_tokenizers${ext} $out/build/avante_tokenizers${ext}
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
# TODO: enable after https://github.com/NixOS/nixpkgs/pull/342240 merged
|
||||
# nvimRequireCheck = "avante";
|
||||
}
|
@ -154,6 +154,14 @@
|
||||
dependencies = with super; [ plenary-nvim ];
|
||||
};
|
||||
|
||||
avante-nvim = (callPackage ./avante-nvim { }).overrideAttrs {
|
||||
dependencies = with self; [
|
||||
dressing-nvim
|
||||
nui-nvim
|
||||
plenary-nvim
|
||||
];
|
||||
};
|
||||
|
||||
barbecue-nvim = super.barbecue-nvim.overrideAttrs {
|
||||
dependencies = with self; [ nvim-lspconfig nvim-navic nvim-web-devicons ];
|
||||
meta = {
|
||||
|
Loading…
Reference in New Issue
Block a user