prosody: optional luaEnv customization

This allows an override to add dependencies in the way that
`withExtraLibs` enabled in the past.
This commit is contained in:
arcnmx 2022-02-11 14:40:12 -08:00
parent 16d0b4a69f
commit 377f4b2f0b
2 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@
, withDBI ? true
# use withExtraLibs to add additional dependencies of community modules
, withExtraLibs ? [ ]
, withExtraLuaPackages ? _: [ ]
, withOnlyInstalledCommunityModules ? [ ]
, withCommunityModules ? [ ] }:
@ -17,6 +18,7 @@ let
]
++ lib.optional withLibevent p.luaevent
++ lib.optional withDBI p.luadbi
++ withExtraLuaPackages p
);
in
stdenv.mkDerivation rec {

View File

@ -21047,6 +21047,7 @@ with pkgs;
# _compat can probably be removed on next minor version after 0.10.0
lua = lua5_2_compat;
withExtraLibs = [];
withExtraLuaPackages = _: [];
};
prosody-filer = callPackage ../servers/xmpp/prosody-filer { };