Skip to content

Commit aa80347

Browse files
redxtechSaghen
authored andcommitted
feat: update flake to reflect merge with mono-repo
1 parent a091c59 commit aa80347

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
target/
22
.archive.lua
33
dual/
4+
result
5+
.direnv
6+
.devenv

flake.nix

+19-20
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
description = "Super amazing neovim completion plugin";
2+
description = "Set of simple, performant neovim plugins";
33

44
inputs = {
55
nixpkgs.url = "github:cachix/devenv-nixpkgs/rolling";
@@ -29,17 +29,19 @@
2929
perSystem = { config, self', inputs', pkgs, system, lib, ... }: {
3030
# define the packages provided by this flake
3131
packages = let
32-
toolchain = fenix.packages.${system}.minimal.toolchain;
32+
inherit (fenix.packages.${system}.minimal) toolchain;
33+
3334
rustPlatform = pkgs.makeRustPlatform {
3435
cargo = toolchain;
3536
rustc = toolchain;
3637
};
37-
fuzzy = rustPlatform.buildRustPackage {
38-
pname = "blink-cmp-lib";
39-
version = "2024-07-26";
4038

41-
src = ./.;
39+
src = ./.;
40+
version = "2024-08-02";
4241

42+
blink-fuzzy-lib = rustPlatform.buildRustPackage {
43+
pname = "blink-fuzzy-lib";
44+
inherit src version;
4345
cargoLock = {
4446
lockFile = ./Cargo.lock;
4547
outputHashes = {
@@ -51,31 +53,28 @@
5153
};
5254
};
5355
in {
54-
blink-cmp = pkgs.vimUtils.buildVimPlugin {
55-
pname = "blink-cmp";
56-
version = "2024-07-26";
57-
58-
src = ./.;
59-
60-
preInstall = ''
61-
mkdir -p target/release
62-
ln -s ${fuzzy}/lib/libblink_cmp_fuzzy.so target/release/libblink_cmp_fuzzy.so
63-
'';
56+
blink-nvim = pkgs.vimUtils.buildVimPlugin {
57+
pname = "blink-nvim";
58+
inherit src version;
59+
preInstall = ''
60+
mkdir -p target/release
61+
ln -s ${blink-fuzzy-lib}/lib/libblink_cmp_fuzzy.so target/release/libblink_cmp_fuzzy.so
62+
'';
6463

6564
meta = {
66-
description = "Super amazing neovim completion plugin";
67-
homepage = "https://github.com/saghen/blink.cmp";
65+
description = "Set of simple, performant neovim plugins";
66+
homepage = "https://github.com/saghen/blink.nvim";
6867
license = lib.licenses.mit;
6968
maintainers = with lib.maintainers; [ redxtech ];
7069
};
7170
};
7271

73-
default = self'.packages.blink-cmp;
72+
default = self'.packages.blink-nvim;
7473
};
7574

7675
# define the default dev environment
7776
devenv.shells.default = {
78-
name = "fuzzy";
77+
name = "blink";
7978

8079
languages.rust = {
8180
enable = true;

0 commit comments

Comments
 (0)