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 {
|
2010-07-05 13:39:00 +01:00
|
|
|
version = "2.1.4";
|
|
|
|
name = "ejabberd-2.1.4";
|
2009-11-17 16:54:04 +00:00
|
|
|
src = fetchurl {
|
2010-07-05 13:39:00 +01:00
|
|
|
url = http://www.process-one.net/downloads/ejabberd/2.1.4/ejabberd-2.1.4.tar.gz;
|
|
|
|
sha256 = "205ee09e38c57527cfa1a4be6ca664cec2e8c6b40eeffaac008735fcdc5e7527";
|
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 = ''
|
|
|
|
sed -i -e "s|erl \\\|${erlang}/bin/erl \\\|" src/ejabberdctl.template
|
|
|
|
'';
|
|
|
|
preConfigure = ''
|
|
|
|
cd src
|
|
|
|
'';
|
2009-04-13 10:36:07 +01:00
|
|
|
configureFlags = ["--enable-pam"];
|
2008-09-22 15:07:25 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Open-source XMPP application server written in Erlang";
|
|
|
|
license = "GPLv2";
|
|
|
|
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
|
|
|
}
|