vimPlugins.blink-cmp: fix runtime version detection error (#368677)
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
vimUtils,
|
||||
nix-update-script,
|
||||
git,
|
||||
replaceVars,
|
||||
}:
|
||||
let
|
||||
version = "0.8.2";
|
||||
@@ -39,6 +40,10 @@ vimUtils.buildVimPlugin {
|
||||
ln -s ${blink-fuzzy-lib}/lib/libblink_cmp_fuzzy.${libExt} target/release/libblink_cmp_fuzzy.${libExt}
|
||||
'';
|
||||
|
||||
patches = [
|
||||
(replaceVars ./force-version.patch { inherit (src) tag; })
|
||||
];
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script {
|
||||
attrPath = "vimPlugins.blink-cmp.blink-fuzzy-lib";
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/lua/blink/cmp/fuzzy/download/init.lua
|
||||
+++ b/lua/blink/cmp/fuzzy/download/init.lua
|
||||
@@ -21,7 +21,7 @@ function download.ensure_downloaded(callback)
|
||||
}
|
||||
end)
|
||||
:map(function(version)
|
||||
- local target_git_tag = download_config.force_version or version.git.tag
|
||||
+ local target_git_tag = download_config.force_version or '@tag@'
|
||||
|
||||
-- not built locally, not on a git tag, error
|
||||
assert(
|
||||
Reference in New Issue
Block a user