diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-05 13:13:23 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-05 13:13:23 +0200 |
commit | 2c93fd9691a566711e71b94c1bb127a2070ad208 (patch) | |
tree | 4d934988069c4709fe086e564c4c3a4d1e29e991 /customized | |
parent | 02d7e42ab4f40d194065d06e5745cc5dfeb7e0b4 (diff) | |
download | nixos-2c93fd9691a566711e71b94c1bb127a2070ad208.tar nixos-2c93fd9691a566711e71b94c1bb127a2070ad208.tar.gz nixos-2c93fd9691a566711e71b94c1bb127a2070ad208.tar.bz2 nixos-2c93fd9691a566711e71b94c1bb127a2070ad208.tar.xz nixos-2c93fd9691a566711e71b94c1bb127a2070ad208.zip |
poke prosody
Diffstat (limited to 'customized')
-rw-r--r-- | customized/prosody.nix | 6 |
1 files changed, 4 insertions, 2 deletions
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 @@ | |||
1 | { stdenv, fetchurl, libidn, openssl, makeWrapper, fetchhg | 1 | { stdenv, fetchurl, libidn, openssl, makeWrapper, fetchhg |
2 | , lua5, luasocket, luasec, luaexpat, luafilesystem, luabitop, luaevent ? null, luazlib ? null | 2 | , lua5, luasocket, luasec, luaexpat, luafilesystem, luabitop, luaevent ? null, luazlib ? null |
3 | , withLibevent ? true, withZlib ? true | 3 | , withLibevent ? true, withZlib ? true |
4 | , communityModules ? [], extraLibs ? [], extraModules ? [] | 4 | , withCommunityModules ? [], extraLibs ? [], extraModules ? [] |
5 | }: | 5 | }: |
6 | 6 | ||
7 | assert withLibevent -> luaevent != null; | 7 | assert withLibevent -> luaevent != null; |
@@ -21,7 +21,7 @@ let | |||
21 | 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"; | 21 | 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"; |
22 | luaPath = concatStringsSep ";" (map getLuaPath libs); | 22 | luaPath = concatStringsSep ";" (map getLuaPath libs); |
23 | luaCPath = concatStringsSep ";" (map getLuaCPath libs); | 23 | luaCPath = concatStringsSep ";" (map getLuaCPath libs); |
24 | copyModules = concatStringsSep ";" (map copyModule communityModules); | 24 | copyModules = concatStringsSep ";" (map copyModule withCommunityModules); |
25 | copyExtraModules = concatStringsSep ";" (map copyExtraModule extraModules); | 25 | copyExtraModules = concatStringsSep ";" (map copyExtraModule extraModules); |
26 | in | 26 | in |
27 | 27 | ||
@@ -62,6 +62,8 @@ stdenv.mkDerivation rec { | |||
62 | --set LUA_CPATH '${luaCPath};' | 62 | --set LUA_CPATH '${luaCPath};' |
63 | ''; | 63 | ''; |
64 | 64 | ||
65 | passthru.communityModules = withCommunityModules; | ||
66 | |||
65 | meta = { | 67 | meta = { |
66 | description = "Open-source XMPP application server written in Lua"; | 68 | description = "Open-source XMPP application server written in Lua"; |
67 | license = licenses.mit; | 69 | license = licenses.mit; |