mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-01-09 23:39:48 +01:00
Compare commits
1 commit
460232765d
...
e7cdd3c8a4
Author | SHA1 | Date | |
---|---|---|---|
|
e7cdd3c8a4 |
3 changed files with 31 additions and 33 deletions
|
@ -6,7 +6,7 @@
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
docs = import ../docs {inherit pkgs inputs lib;};
|
docs = import ../docs {inherit pkgs inputs lib;};
|
||||||
pluginVersion = src: src.shortRev or src.shortDirtyRev or "dirty";
|
pluginVersion = input: input.shortRev or input.shortDirtyRev or "dirty";
|
||||||
in {
|
in {
|
||||||
packages = {
|
packages = {
|
||||||
inherit (docs.manual) htmlOpenTool;
|
inherit (docs.manual) htmlOpenTool;
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Plugins that need compiling
|
# Plugins that need a compile step
|
||||||
blink-cmp = pkgs.callPackage ./packages/blink-cmp.nix {
|
blink-cmp = pkgs.callPackage ./packages/blink-cmp.nix {
|
||||||
src = inputs.plugin-blink-cmp;
|
src = inputs.plugin-blink-cmp;
|
||||||
version = pluginVersion inputs.plugin-blink-cmp;
|
version = pluginVersion inputs.plugin-blink-cmp;
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
{
|
{
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
hostPlatform,
|
hostPlatform,
|
||||||
vimUtils,
|
|
||||||
src,
|
src,
|
||||||
version,
|
version,
|
||||||
}: let
|
vimUtils,
|
||||||
|
}: {
|
||||||
|
blink-cmp = let
|
||||||
|
inherit version src;
|
||||||
blink-fuzzy-lib = rustPlatform.buildRustPackage {
|
blink-fuzzy-lib = rustPlatform.buildRustPackage {
|
||||||
pname = "blink-fuzzy-lib";
|
pname = "blink-fuzzy-lib";
|
||||||
inherit version src;
|
inherit version src;
|
||||||
|
@ -32,4 +34,5 @@ in
|
||||||
mkdir -p target/release
|
mkdir -p target/release
|
||||||
ln -s ${blink-fuzzy-lib}/lib/libblink_cmp_fuzzy.${libExt} target/release/libblink_cmp_fuzzy.${libExt}
|
ln -s ${blink-fuzzy-lib}/lib/libblink_cmp_fuzzy.${libExt} target/release/libblink_cmp_fuzzy.${libExt}
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,11 +45,6 @@
|
||||||
pname = "flutter-tools";
|
pname = "flutter-tools";
|
||||||
patches = [../patches/flutter-tools.patch];
|
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:
|
buildConfigPlugins = plugins:
|
||||||
|
|
Loading…
Reference in a new issue