mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 22:51:22 +00:00
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:
parent
16d0b4a69f
commit
377f4b2f0b
@ -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 {
|
||||
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user