modules/top-level: change usages of import to callPackage

This commit is contained in:
Stanislav Asunkin 2025-05-12 17:21:02 +03:00
parent 4c23fb2738
commit 49a7bb573a
5 changed files with 23 additions and 13 deletions

View file

@ -172,7 +172,9 @@ in
config =
let
# Optionally byte compile lua library
inherit (import ./plugins/byte-compile-lua-lib.nix { inherit lib pkgs; }) byteCompileLuaPackages;
inherit (pkgs.callPackage ./plugins/byte-compile-lua-lib.nix { inherit lib; })
byteCompileLuaPackages
;
extraLuaPackages =
if config.performance.byteCompileLua.enable && config.performance.byteCompileLua.luaLib then
ps: byteCompileLuaPackages (config.extraLuaPackages ps)