forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '75d54b468a2a51b38c56aa8d09e33ac38cd732bc' into staging-…
…next The "reformat everything on master/staging/staging-next together" approach from NixOS#322537 didn't quite work out: master now can't be automatically merged into staging-next anymore (same for staging-next into staging). To resolve this, we're performing two merges: - This first one to merge the commit on master just before the treewide reformat into staging-next - The following one to merge the treewide reformat commit into staging-next, but effectively ignoring all changes from the treewide reformat commit
- Loading branch information
Showing
15 changed files
with
204 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
pkgs/applications/editors/vim/plugins/avante-nvim/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
lib, | ||
fetchFromGitHub, | ||
nix-update-script, | ||
openssl, | ||
pkg-config, | ||
rustPlatform, | ||
stdenv, | ||
vimPlugins, | ||
vimUtils, | ||
}: | ||
let | ||
version = "0.0.12"; | ||
src = fetchFromGitHub { | ||
owner = "yetone"; | ||
repo = "avante.nvim"; | ||
tag = "v${version}"; | ||
hash = "sha256-yFHX9WCdTBtFZ2Yhy542Rg9nyIu6IWyRjKkS+ojZsdM="; | ||
}; | ||
avante-nvim-lib = rustPlatform.buildRustPackage { | ||
pname = "avante-nvim-lib"; | ||
inherit version src; | ||
|
||
cargoHash = "sha256-n0+UT9wYnmPDOX2LKWztURqYLy2oa8sUeQLycR3/Zr0="; | ||
|
||
nativeBuildInputs = [ | ||
pkg-config | ||
]; | ||
|
||
buildInputs = [ | ||
openssl | ||
]; | ||
|
||
buildFeatures = [ "luajit" ]; | ||
|
||
checkFlags = [ | ||
# Disabled because they access the network. | ||
"--skip=test_hf" | ||
"--skip=test_public_url" | ||
"--skip=test_roundtrip" | ||
]; | ||
}; | ||
in | ||
vimUtils.buildVimPlugin { | ||
pname = "avante-nvim"; | ||
inherit version src; | ||
|
||
dependencies = with vimPlugins; [ | ||
dressing-nvim | ||
nui-nvim | ||
nvim-treesitter | ||
plenary-nvim | ||
]; | ||
|
||
postInstall = | ||
let | ||
ext = stdenv.hostPlatform.extensions.sharedLibrary; | ||
in | ||
'' | ||
mkdir -p $out/build | ||
ln -s ${avante-nvim-lib}/lib/libavante_repo_map${ext} $out/build/avante_repo_map${ext} | ||
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} | ||
''; | ||
|
||
passthru = { | ||
updateScript = nix-update-script { | ||
attrPath = "vimPlugins.avante-nvim.avante-nvim-lib"; | ||
}; | ||
|
||
# needed for the update script | ||
inherit avante-nvim-lib; | ||
}; | ||
|
||
doInstallCheck = true; | ||
nvimRequireCheck = "avante"; | ||
|
||
meta = { | ||
description = "Neovim plugin designed to emulate the behaviour of the Cursor AI IDE"; | ||
homepage = "https://github.com/yetone/avante.nvim"; | ||
license = lib.licenses.asl20; | ||
maintainers = with lib.maintainers; [ | ||
ttrei | ||
aarnphm | ||
]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
buildDunePackage, | ||
mirage-crypto, | ||
mirage-crypto-rng, | ||
dune-configurator, | ||
eio, | ||
eio_main, | ||
ohex, | ||
}: | ||
|
||
buildDunePackage rec { | ||
pname = "mirage-crypto-rng-eio"; | ||
|
||
inherit (mirage-crypto) version src; | ||
|
||
doCheck = true; | ||
checkInputs = [ | ||
eio_main | ||
ohex | ||
]; | ||
|
||
buildInputs = [ dune-configurator ]; | ||
propagatedBuildInputs = [ | ||
mirage-crypto | ||
mirage-crypto-rng | ||
eio | ||
]; | ||
|
||
meta = mirage-crypto-rng.meta; | ||
} |
Oops, something went wrong.