luaPackages.requiredLuaModules: remove with lib statement
This commit is contained in:
parent
11cddcd4ad
commit
8526be06d2
@ -1,9 +1,9 @@
|
|||||||
{ pkgs, lib, lua }:
|
{ pkgs, lib, lua }:
|
||||||
let
|
let
|
||||||
inherit (lib.generators) toLua;
|
inherit (lib.generators) toLua;
|
||||||
requiredLuaModules = drvs: with lib; let
|
requiredLuaModules = drvs: let
|
||||||
modules = filter hasLuaModule drvs;
|
modules = lib.filter hasLuaModule drvs;
|
||||||
in unique ([lua] ++ modules ++ concatLists (catAttrs "requiredLuaModules" modules));
|
in lib.unique ([lua] ++ modules ++ lib.concatLists (lib.catAttrs "requiredLuaModules" modules));
|
||||||
# Check whether a derivation provides a lua module.
|
# Check whether a derivation provides a lua module.
|
||||||
hasLuaModule = drv: drv ? luaModule;
|
hasLuaModule = drv: drv ? luaModule;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user