From 2c93fd9691a566711e71b94c1bb127a2070ad208 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 5 Apr 2018 13:13:23 +0200 Subject: poke prosody --- customized/prosody.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'customized') diff --git a/customized/prosody.nix b/customized/prosody.nix index d8afe5b9..87f88f4b 100644 --- a/customized/prosody.nix +++ b/customized/prosody.nix @@ -1,7 +1,7 @@ { stdenv, fetchurl, libidn, openssl, makeWrapper, fetchhg , lua5, luasocket, luasec, luaexpat, luafilesystem, luabitop, luaevent ? null, luazlib ? null , withLibevent ? true, withZlib ? true -, communityModules ? [], extraLibs ? [], extraModules ? [] +, withCommunityModules ? [], extraLibs ? [], extraModules ? [] }: assert withLibevent -> luaevent != null; @@ -21,7 +21,7 @@ let copyExtraModule = path: "n=0; for i in ${path}/*; do n=1; done; if [[ $n -gt 0 ]]; then cp -rv ${path}/* $out/lib/prosody/modules/; fi"; luaPath = concatStringsSep ";" (map getLuaPath libs); luaCPath = concatStringsSep ";" (map getLuaCPath libs); - copyModules = concatStringsSep ";" (map copyModule communityModules); + copyModules = concatStringsSep ";" (map copyModule withCommunityModules); copyExtraModules = concatStringsSep ";" (map copyExtraModule extraModules); in @@ -62,6 +62,8 @@ stdenv.mkDerivation rec { --set LUA_CPATH '${luaCPath};' ''; + passthru.communityModules = withCommunityModules; + meta = { description = "Open-source XMPP application server written in Lua"; license = licenses.mit; -- cgit v1.2.3