From 377f4b2f0b8329697d9e2f14ff4d7fc1fd534b04 Mon Sep 17 00:00:00 2001 From: arcnmx Date: Fri, 11 Feb 2022 14:40:12 -0800 Subject: [PATCH] prosody: optional luaEnv customization This allows an override to add dependencies in the way that `withExtraLibs` enabled in the past. --- pkgs/servers/xmpp/prosody/default.nix | 2 ++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 3 insertions(+) diff --git a/pkgs/servers/xmpp/prosody/default.nix b/pkgs/servers/xmpp/prosody/default.nix index 5d97d125105a..5d0ed06b5ae0 100644 --- a/pkgs/servers/xmpp/prosody/default.nix +++ b/pkgs/servers/xmpp/prosody/default.nix @@ -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 { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 651837453318..119849efca16 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };