Skip to content

Commit

Permalink
blink: move package into legacyPackage
Browse files Browse the repository at this point in the history
  • Loading branch information
horriblename committed Feb 6, 2025
1 parent 9dccd4b commit 8a069a6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 5 additions & 1 deletion flake/legacyPackages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};
})
];
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
5 changes: 1 addition & 4 deletions modules/wrapper/build/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8a069a6

Please sign in to comment.