mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-04-02 19:11:53 +00:00
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
38 lines
910 B
Nix
38 lines
910 B
Nix
{
|
|
stdenv,
|
|
rustPlatform,
|
|
hostPlatform,
|
|
vimUtils,
|
|
git,
|
|
src,
|
|
version,
|
|
}: let
|
|
blink-fuzzy-lib = rustPlatform.buildRustPackage {
|
|
pname = "blink-fuzzy-lib";
|
|
inherit version src;
|
|
|
|
# TODO: remove this if plugin stops using nightly rust
|
|
env.RUSTC_BOOTSTRAP = true;
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-F1wh/TjYoiIbDY3J/prVF367MKk3vwM7LqOpRobOs7I=";
|
|
|
|
nativeBuildInputs = [git];
|
|
};
|
|
in
|
|
vimUtils.buildVimPlugin {
|
|
pname = "blink-cmp";
|
|
inherit version src;
|
|
|
|
# blink references a repro.lua which is placed outside the lua/ directory
|
|
doCheck = false;
|
|
preInstall = let
|
|
ext = stdenv.hostPlatform.extensions.sharedLibrary;
|
|
in ''
|
|
mkdir -p target/release
|
|
ln -s ${blink-fuzzy-lib}/lib/libblink_cmp_fuzzy${ext} target/release/libblink_cmp_fuzzy${ext}
|
|
'';
|
|
|
|
# Module for reproducing issues
|
|
nvimSkipModule = ["repro"];
|
|
}
|