2009-11-17 16:54:04 +00:00
|
|
|
{stdenv, fetchurl, expat, erlang, zlib, openssl, pam, lib}:
|
2008-01-23 18:11:03 +00:00
|
|
|
|
2009-05-19 18:08:10 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2013-11-02 00:46:30 +00:00
|
|
|
version = "2.1.13";
|
|
|
|
name = "ejabberd-${version}";
|
2009-11-17 16:54:04 +00:00
|
|
|
src = fetchurl {
|
2013-11-02 00:46:30 +00:00
|
|
|
url = "http://www.process-one.net/downloads/ejabberd/${version}/${name}.tgz";
|
|
|
|
sha256 = "0vf8mfrx7vr3c5h3nfp3qcgwf2kmzq20rjv1h9sk3nimwir1q3d8";
|
2008-01-23 18:11:03 +00:00
|
|
|
};
|
2009-04-13 10:36:07 +01:00
|
|
|
buildInputs = [ expat erlang zlib openssl pam ];
|
2008-09-22 15:07:25 +01:00
|
|
|
patchPhase = ''
|
2015-02-21 16:08:55 +00:00
|
|
|
sed -i \
|
|
|
|
-e "s|erl \\\|${erlang}/bin/erl \\\|" \
|
|
|
|
-e 's|EXEC_CMD=\"sh -c\"|EXEC_CMD=\"${stdenv.shell} -c\"|' \
|
|
|
|
src/ejabberdctl.template
|
2008-09-22 15:07:25 +01:00
|
|
|
'';
|
|
|
|
preConfigure = ''
|
|
|
|
cd src
|
2013-11-02 00:46:30 +00:00
|
|
|
'';
|
2009-04-13 10:36:07 +01:00
|
|
|
configureFlags = ["--enable-pam"];
|
2013-11-02 00:46:30 +00:00
|
|
|
|
2008-09-22 15:07:25 +01:00
|
|
|
meta = {
|
|
|
|
description = "Open-source XMPP application server written in Erlang";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2008-09-22 15:07:25 +01:00
|
|
|
homepage = http://www.ejabberd.im;
|
2009-11-17 16:54:04 +00:00
|
|
|
maintainers = [ lib.maintainers.sander ];
|
2008-09-22 15:07:25 +01:00
|
|
|
};
|
2008-01-23 18:11:03 +00:00
|
|
|
}
|