mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-28 11:30:06 +02:00
modules/performance: ensure dependencies of lua packages also compiled
Previously only extraLuaPackages themselves were byte-compiled, not theirs dependencies. This commit fixes that by compiling lua packages recursively. It uses byte-compile-lua-lib.nix shared file. Also this commit uses the shared stub lua libraries for extraLuaPackages byte-compiling test.
This commit is contained in:
parent
9474ce916a
commit
75f2c1b1f1
4 changed files with 23 additions and 20 deletions
|
@ -35,7 +35,7 @@ in
|
|||
byteCompilePlugins = import ./byte-compile-plugins.nix { inherit lib pkgs; };
|
||||
|
||||
shouldCompileLuaLib = byteCompileCfg.enable && byteCompileCfg.luaLib;
|
||||
byteCompileLuaLib = import ./byte-compile-lua-lib.nix { inherit lib pkgs; };
|
||||
inherit (import ./byte-compile-lua-lib.nix { inherit lib pkgs; }) byteCompilePluginDeps;
|
||||
|
||||
shouldCombinePlugins = config.performance.combinePlugins.enable;
|
||||
combinePlugins = import ./combine-plugins.nix {
|
||||
|
@ -50,7 +50,7 @@ in
|
|||
lib.pipe config.extraPlugins (
|
||||
[ normalizePlugins ]
|
||||
++ lib.optionals shouldCompilePlugins [ byteCompilePlugins ]
|
||||
++ lib.optionals shouldCompileLuaLib [ byteCompileLuaLib ]
|
||||
++ lib.optionals shouldCompileLuaLib [ byteCompilePluginDeps ]
|
||||
++ lib.optionals shouldCombinePlugins [ combinePlugins ]
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue