blink: move package into module

This commit is contained in:
Ching Pei Yang 2025-01-08 13:28:28 +01:00
parent 0f02ec54cf
commit bb9e508da2
No known key found for this signature in database
GPG key ID: B3841364253DC4C8
3 changed files with 1 additions and 9 deletions

View file

@ -6,7 +6,6 @@
...
}: let
docs = import ../docs {inherit pkgs inputs lib;};
pluginVersion = src: src.shortRev or src.shortDirtyRev or "dirty";
in {
packages = {
inherit (docs.manual) htmlOpenTool;
@ -67,12 +66,6 @@
Volumes = {"/home/neovim/demo" = {};};
};
};
# 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

@ -50,9 +50,8 @@
pname = "flutter-tools";
patches = [./patches/flutter-tools.patch];
};
blink-cmp = pkgs.callPackage ../../../flake/packages/blink-cmp.nix {
blink-cmp = pkgs.callPackage ./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";
};
};