blink: v0.13.1 -> v0.14.1
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Validate flake & check formatting / Validate Flake (push) Waiting to run
Validate flake & check formatting / Formatting via Alejandra (push) Waiting to run
Check for typos in the source tree / check-typos (push) Waiting to run

This commit is contained in:
raf 2025-03-24 11:57:38 +03:00
parent ac59df1bc9
commit df1b3f7968
No known key found for this signature in database
GPG key ID: 29D95B64378DB4BF
2 changed files with 9 additions and 23 deletions

View file

@ -1,11 +1,11 @@
{
stdenv,
rustPlatform,
hostPlatform,
vimUtils,
git,
src,
version,
fetchpatch,
}: let
blink-fuzzy-lib = rustPlatform.buildRustPackage {
pname = "blink-fuzzy-lib";
@ -19,11 +19,6 @@
nativeBuildInputs = [git];
};
libExt =
if hostPlatform.isDarwin
then "dylib"
else "so";
in
vimUtils.buildVimPlugin {
pname = "blink-cmp";
@ -31,22 +26,13 @@ in
# blink references a repro.lua which is placed outside the lua/ directory
doCheck = false;
preInstall = ''
preInstall = let
ext = stdenv.hostPlatform.extensions.sharedLibrary;
in ''
mkdir -p target/release
ln -s ${blink-fuzzy-lib}/lib/libblink_cmp_fuzzy.${libExt} target/release/libblink_cmp_fuzzy.${libExt}
echo -n "nix" > target/release/version
ln -s ${blink-fuzzy-lib}/lib/libblink_cmp_fuzzy${ext} target/release/libblink_cmp_fuzzy${ext}
'';
# Borrowed from nixpkgs
# TODO: Remove this patch when updating to next version
patches = [
(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=";
})
];
# Module for reproducing issues
nvimSkipModule = ["repro"];
}

View file

@ -46,10 +46,10 @@
"pre_releases": false,
"version_upper_bound": null,
"release_prefix": null,
"version": "v0.13.1",
"revision": "29861baf37bbb16f5dbf524a6edac5daaad6f4fc",
"url": "https://api.github.com/repos/saghen/blink.cmp/tarball/v0.13.1",
"hash": "1y5p7i6g884r65mhfsazx28g0qs37hc57jm37i7kch9kcf8m7sbq"
"version": "v0.14.1",
"revision": "7a91dc584f41f5aa2373a917faf8100b2e54d6c9",
"url": "https://api.github.com/repos/saghen/blink.cmp/tarball/v0.14.1",
"hash": "0zm6s3v9liimx28vs1g5yi7bcfrl691q81bvzmdpavcwrzcdb0c8"
},
"blink-cmp-spell": {
"type": "Git",