aboutsummaryrefslogtreecommitdiff
path: root/pkgs/servers/xmpp
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2018-03-22 14:12:57 +0100
committerGitHub <noreply@github.com>2018-03-22 14:12:57 +0100
commit76ea0e1b2e0f5b4fd7ab6c43ae5704918bf3413c (patch)
tree9794c7f9833dac879a538e22daf0b67d0943785d /pkgs/servers/xmpp
parent7b539c06297f1ca84e475fb1018fe50114f2447e (diff)
parentfaaf32a0ee3ed3693e87def1fabd6b8a89e29a41 (diff)
Merge pull request #32960 from florianjacob/prosody-0.10
Prosody 0.10.0
Diffstat (limited to 'pkgs/servers/xmpp')
-rw-r--r--pkgs/servers/xmpp/prosody/default.nix23
1 files changed, 12 insertions, 11 deletions
diff --git a/pkgs/servers/xmpp/prosody/default.nix b/pkgs/servers/xmpp/prosody/default.nix
index b0e3492c0da1..2d0e1a529dac 100644
--- a/pkgs/servers/xmpp/prosody/default.nix
+++ b/pkgs/servers/xmpp/prosody/default.nix
@@ -1,14 +1,13 @@
{ stdenv, fetchurl, libidn, openssl, makeWrapper, fetchhg
, lua5, luasocket, luasec, luaexpat, luafilesystem, luabitop
, withLibevent ? true, luaevent ? null
-, withZlib ? true, luazlib ? null
, withDBI ? true, luadbi ? null
# use withExtraLibs to add additional dependencies of community modules
, withExtraLibs ? [ ]
+, withOnlyInstalledCommunityModules ? [ ]
, withCommunityModules ? [ ] }:
assert withLibevent -> luaevent != null;
-assert withZlib -> luazlib != null;
assert withDBI -> luadbi != null;
with stdenv.lib;
@@ -16,7 +15,6 @@ with stdenv.lib;
let
libs = [ luasocket luasec luaexpat luafilesystem luabitop ]
++ optional withLibevent luaevent
- ++ optional withZlib luazlib
++ optional withDBI luadbi
++ withExtraLibs;
getPath = lib : type : "${lib}/lib/lua/${lua5.luaversion}/?.${type};${lib}/share/lua/${lua5.luaversion}/?.${type}";
@@ -27,21 +25,22 @@ let
in
stdenv.mkDerivation rec {
- version = "0.9.12";
+ version = "0.10.0";
name = "prosody-${version}";
src = fetchurl {
url = "http://prosody.im/downloads/source/${name}.tar.gz";
- sha256 = "139yxqpinajl32ryrybvilh54ddb1q6s0ajjhlcs4a0rnwia6n8s";
+ sha256 = "1644jy5dk46vahmh6nna36s79k8k668sbi3qamjb4q3c4m3y853l";
};
communityModules = fetchhg {
url = "https://hg.prosody.im/prosody-modules";
- rev = "9a3e51f348fe";
- sha256 = "09g4vi52rv0r3jzcm0bsgp4ngqq6iapfbxfh0l7qj36qnajp4vm6";
+ rev = "150a7bd59043";
+ sha256 = "0nfx3lngcy88nd81gb7v4kh3nz1bzsm67bxgpd2lprk54diqcrz1";
};
- buildInputs = [ lua5 makeWrapper libidn openssl ];
+ buildInputs = [ lua5 makeWrapper libidn openssl ]
+ ++ optional withDBI luadbi;
configureFlags = [
"--ostype=linux"
@@ -52,7 +51,7 @@ stdenv.mkDerivation rec {
postInstall = ''
${concatMapStringsSep "\n" (module: ''
cp -r $communityModules/mod_${module} $out/lib/prosody/modules/
- '') withCommunityModules}
+ '') (withCommunityModules ++ withOnlyInstalledCommunityModules)}
wrapProgram $out/bin/prosody \
--set LUA_PATH '${luaPath};' \
--set LUA_CPATH '${luaCPath};'
@@ -62,11 +61,13 @@ stdenv.mkDerivation rec {
--set LUA_CPATH '${luaCPath};'
'';
+ passthru.communityModules = withCommunityModules;
+
meta = {
description = "Open-source XMPP application server written in Lua";
license = licenses.mit;
- homepage = http://www.prosody.im;
+ homepage = https://prosody.im;
platforms = platforms.linux;
- maintainers = [ ];
+ maintainers = with maintainers; [ fpletz globin ];
};
}