fixup! flake: expose blink-cmp package

This commit is contained in:
Ching Pei Yang 2025-01-08 14:07:03 +01:00
parent de04aca9bc
commit 52c697a2b4
No known key found for this signature in database
GPG key ID: B3841364253DC4C8

View file

@ -2,6 +2,7 @@
rustPlatform,
hostPlatform,
vimUtils,
git,
src,
version,
}: let
@ -13,6 +14,7 @@
# TODO: remove this if plugin stops using nightly rust
RUSTC_BOOTSTRAP = true;
};
nativeBuildInputs = [git];
cargoLock = {
lockFile = "${src}/Cargo.lock";
allowBuiltinFetchGit = true;
@ -26,6 +28,9 @@ in
vimUtils.buildVimPlugin {
pname = "blink-cmp";
inherit version src;
# blink references a repro.lua which is placed outside the lua/ directory
doCheck = false;
preInstall = ''
mkdir -p target/release
ln -s ${blink-fuzzy-lib}/lib/libblink_cmp_fuzzy.${libExt} target/release/libblink_cmp_fuzzy.${libExt}