mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-01-09 05:39:49 +01:00
Compare commits
3 commits
7b21e10b88
...
5525da589c
Author | SHA1 | Date | |
---|---|---|---|
|
5525da589c | ||
|
460232765d | ||
|
8622fd6871 |
3 changed files with 33 additions and 31 deletions
|
@ -6,7 +6,7 @@
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
docs = import ../docs {inherit pkgs inputs lib;};
|
docs = import ../docs {inherit pkgs inputs lib;};
|
||||||
pluginVersion = input: input.shortRev or input.shortDirtyRev or "dirty";
|
pluginVersion = src: src.shortRev or src.shortDirtyRev or "dirty";
|
||||||
in {
|
in {
|
||||||
packages = {
|
packages = {
|
||||||
inherit (docs.manual) htmlOpenTool;
|
inherit (docs.manual) htmlOpenTool;
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Plugins that need a compile step
|
# Plugins that need compiling
|
||||||
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,38 +1,35 @@
|
||||||
{
|
{
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
hostPlatform,
|
hostPlatform,
|
||||||
|
vimUtils,
|
||||||
src,
|
src,
|
||||||
version,
|
version,
|
||||||
vimUtils,
|
}: let
|
||||||
}: {
|
blink-fuzzy-lib = rustPlatform.buildRustPackage {
|
||||||
blink-cmp = let
|
pname = "blink-fuzzy-lib";
|
||||||
inherit version src;
|
inherit version src;
|
||||||
blink-fuzzy-lib = rustPlatform.buildRustPackage {
|
|
||||||
pname = "blink-fuzzy-lib";
|
|
||||||
inherit version src;
|
|
||||||
|
|
||||||
env = {
|
env = {
|
||||||
# TODO: remove this if plugin stops using nightly rust
|
# TODO: remove this if plugin stops using nightly rust
|
||||||
RUSTC_BOOTSTRAP = true;
|
RUSTC_BOOTSTRAP = true;
|
||||||
};
|
};
|
||||||
cargoLock = {
|
cargoLock = {
|
||||||
lockFile = "${src}/Cargo.lock";
|
lockFile = "${src}/Cargo.lock";
|
||||||
outputHashes = {
|
outputHashes = {
|
||||||
"frizbee-0.1.0" = "sha256-pt6sMsRyjXrbrTK7t/YvWeen/n3nU8UUaiNYTY1LczE=";
|
"frizbee-0.1.0" = "sha256-pt6sMsRyjXrbrTK7t/YvWeen/n3nU8UUaiNYTY1LczE=";
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
libExt =
|
};
|
||||||
if hostPlatform.isDarwin
|
libExt =
|
||||||
then "dylib"
|
if hostPlatform.isDarwin
|
||||||
else "so";
|
then "dylib"
|
||||||
in
|
else "so";
|
||||||
vimUtils.buildVimPlugin {
|
in
|
||||||
pname = "blink-cmp";
|
vimUtils.buildVimPlugin {
|
||||||
inherit version src;
|
pname = "blink-cmp";
|
||||||
preInstall = ''
|
inherit version src;
|
||||||
mkdir -p target/release
|
preInstall = ''
|
||||||
ln -s ${blink-fuzzy-lib}/lib/libblink_cmp_fuzzy.${libExt} target/release/libblink_cmp_fuzzy.${libExt}
|
mkdir -p target/release
|
||||||
'';
|
ln -s ${blink-fuzzy-lib}/lib/libblink_cmp_fuzzy.${libExt} target/release/libblink_cmp_fuzzy.${libExt}
|
||||||
};
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,6 +45,11 @@
|
||||||
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