vimPlugins.blink-cmp: remove old patch and use upstream bypass method (#386511)
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
stdenv,
|
||||
vimUtils,
|
||||
nix-update-script,
|
||||
git,
|
||||
replaceVars,
|
||||
}:
|
||||
let
|
||||
version = "0.13.1";
|
||||
@@ -41,10 +41,16 @@ vimUtils.buildVimPlugin {
|
||||
''
|
||||
mkdir -p target/release
|
||||
ln -s ${blink-fuzzy-lib}/lib/libblink_cmp_fuzzy${ext} target/release/libblink_cmp_fuzzy${ext}
|
||||
echo -n "nix" > target/release/version
|
||||
'';
|
||||
|
||||
# TODO: Remove this patch when updating to next version
|
||||
patches = [
|
||||
(replaceVars ./force-version.patch { inherit (src) tag; })
|
||||
(fetchpatch {
|
||||
name = "blink-add-bypass-for-nix.patch";
|
||||
url = "https://github.com/Saghen/blink.cmp/commit/6c83ef1ae34abd7ef9a32bfcd9595ac77b61037c.diff?full_index=1";
|
||||
hash = "sha256-304F1gDDKVI1nXRvvQ0T1xBN+kHr3jdmwMMp8CNl+GU=";
|
||||
})
|
||||
];
|
||||
|
||||
passthru = {
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- 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