Skip to content

Commit 0e3f7cb

Browse files
authored
vimPlugins.blink-cmp: remove old patch and use upstream bypass method (#386511)
2 parents c7ebf0e + d39e23d commit 0e3f7cb

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

pkgs/applications/editors/vim/plugins/non-generated/blink-cmp/default.nix

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
lib,
33
rustPlatform,
44
fetchFromGitHub,
5+
fetchpatch,
56
stdenv,
67
vimUtils,
78
nix-update-script,
89
git,
9-
replaceVars,
1010
}:
1111
let
1212
version = "0.13.1";
@@ -41,10 +41,16 @@ vimUtils.buildVimPlugin {
4141
''
4242
mkdir -p target/release
4343
ln -s ${blink-fuzzy-lib}/lib/libblink_cmp_fuzzy${ext} target/release/libblink_cmp_fuzzy${ext}
44+
echo -n "nix" > target/release/version
4445
'';
4546

47+
# TODO: Remove this patch when updating to next version
4648
patches = [
47-
(replaceVars ./force-version.patch { inherit (src) tag; })
49+
(fetchpatch {
50+
name = "blink-add-bypass-for-nix.patch";
51+
url = "https://github.com/Saghen/blink.cmp/commit/6c83ef1ae34abd7ef9a32bfcd9595ac77b61037c.diff?full_index=1";
52+
hash = "sha256-304F1gDDKVI1nXRvvQ0T1xBN+kHr3jdmwMMp8CNl+GU=";
53+
})
4854
];
4955

5056
passthru = {

pkgs/applications/editors/vim/plugins/non-generated/blink-cmp/force-version.patch

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)