luaPackages.requiredLuaModules: remove with lib statement

This commit is contained in:
Philip Taron 2024-08-16 14:00:10 -07:00
parent 11cddcd4ad
commit 8526be06d2
No known key found for this signature in database

View File

@ -1,9 +1,9 @@
{ pkgs, lib, lua }:
let
inherit (lib.generators) toLua;
requiredLuaModules = drvs: with lib; let
modules = filter hasLuaModule drvs;
in unique ([lua] ++ modules ++ concatLists (catAttrs "requiredLuaModules" modules));
requiredLuaModules = drvs: let
modules = lib.filter hasLuaModule drvs;
in lib.unique ([lua] ++ modules ++ lib.concatLists (lib.catAttrs "requiredLuaModules" modules));
# Check whether a derivation provides a lua module.
hasLuaModule = drv: drv ? luaModule;