mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
luaPackages.requiredLuaModules: remove with lib statement
This commit is contained in:
parent
11cddcd4ad
commit
8526be06d2
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user