blink: move package into legacyPackage

This commit is contained in:
Ching Pei Yang 2025-01-21 13:35:01 +08:00 committed by Ching Pei Yang
parent 9dccd4b4a8
commit 8a069a6835
No known key found for this signature in database
GPG key ID: B3841364253DC4C8
3 changed files with 10 additions and 5 deletions

View file

@ -9,10 +9,14 @@
overlays = [
inputs.self.overlays.default
(_: _: {
(final: _: {
# Build nil from source to get most recent
# features as they are added.
nil = inputs'.nil.packages.default;
blink-cmp = final.callPackage ./legacyPackages/blink-cmp.nix {
src = inputs.plugin-blink-cmp;
version = inputs.plugin-blink-cmp.shortRev or inputs.plugin-blink-cmp.shortDirtyRev or "dirty";
};
})
];
};

View file

@ -10,6 +10,10 @@
pname = "blink-fuzzy-lib";
inherit version src;
env = {
# TODO: remove this if plugin stops using nightly rust
RUSTC_BOOTSTRAP = true;
};
nativeBuildInputs = [git];
cargoLock = {
lockFile = "${src}/Cargo.lock";

View file

@ -61,10 +61,7 @@
"flutter-tools.dev_tools"
];
};
blink-cmp = pkgs.callPackage ./packages/blink-cmp.nix {
src = inputs.plugin-blink-cmp;
version = inputs.plugin-blink-cmp.shortRev or inputs.plugin-blink-cmp.shortDirtyRev or "dirty";
};
inherit (pkgs) blink-cmp;
};
buildConfigPlugins = plugins: