Compare commits

..

3 commits

Author SHA1 Message Date
Ching Pei Yang
5525da589c
Merge 460232765d into 8febf44422 2025-01-01 11:01:17 +00:00
Ching Pei Yang
460232765d
build: use custom-built blink.cmp 2025-01-01 12:01:10 +01:00
Ching Pei Yang
8622fd6871
flake: expose blink-cmp package 2025-01-01 12:01:10 +01:00
3 changed files with 33 additions and 31 deletions

View file

@ -6,7 +6,7 @@
...
}: let
docs = import ../docs {inherit pkgs inputs lib;};
pluginVersion = input: input.shortRev or input.shortDirtyRev or "dirty";
pluginVersion = src: src.shortRev or src.shortDirtyRev or "dirty";
in {
packages = {
inherit (docs.manual) htmlOpenTool;
@ -68,7 +68,7 @@
};
};
# Plugins that need a compile step
# Plugins that need compiling
blink-cmp = pkgs.callPackage ./packages/blink-cmp.nix {
src = inputs.plugin-blink-cmp;
version = pluginVersion inputs.plugin-blink-cmp;

View file

@ -1,12 +1,10 @@
{
rustPlatform,
hostPlatform,
vimUtils,
src,
version,
vimUtils,
}: {
blink-cmp = let
inherit version src;
}: let
blink-fuzzy-lib = rustPlatform.buildRustPackage {
pname = "blink-fuzzy-lib";
inherit version src;
@ -34,5 +32,4 @@
mkdir -p target/release
ln -s ${blink-fuzzy-lib}/lib/libblink_cmp_fuzzy.${libExt} target/release/libblink_cmp_fuzzy.${libExt}
'';
};
}

View file

@ -45,6 +45,11 @@
pname = "flutter-tools";
patches = [../patches/flutter-tools.patch];
};
blink-cmp = pkgs.callPackage ../../../flake/packages/blink-cmp.nix {
src = inputs.plugin-blink-cmp;
# TODO: extract into helper func
version = inputs.plugin-blink-cmp.shortRev or inputs.plugin-blink-cmp.shortDirtyRev or "dirty";
};
};
buildConfigPlugins = plugins: