mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
modules/performance: handle python3 dependencies when combining plugins
This commit is contained in:
parent
fdb3950c59
commit
f900dcd6aa
2 changed files with 37 additions and 0 deletions
|
@ -95,6 +95,13 @@ in
|
|||
})
|
||||
) allPlugins;
|
||||
|
||||
# Python3 dependencies from all plugins
|
||||
python3Dependencies =
|
||||
let
|
||||
deps = map (p: p.python3Dependencies or (_: [ ])) allPluginsOverrided;
|
||||
in
|
||||
ps: builtins.concatMap (f: f ps) deps;
|
||||
|
||||
# Combine all plugins into a single pack
|
||||
pluginPack = pkgs.vimUtils.toVimPlugin (
|
||||
pkgs.buildEnv {
|
||||
|
@ -106,6 +113,9 @@ in
|
|||
find $out -type d -empty -delete
|
||||
runHook preFixup
|
||||
'';
|
||||
passthru = {
|
||||
inherit python3Dependencies;
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue