2009-05-19 19:08:10 +02:00
|
|
|
{stdenv, fetchurl, fetchsvn, expat, erlang, zlib, openssl, pam}:
|
2008-01-23 19:11:03 +01:00
|
|
|
|
2009-05-19 19:08:10 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ejabberd-2.0.5";
|
|
|
|
#src = fetchurl {
|
|
|
|
# url = http://www.process-one.net/downloads/ejabberd/2.0.5/ejabberd-2.0.5.tar.gz;
|
|
|
|
# sha256 = "130rjl93l54c7p4glsfn3j7xwpwdyinhj6pp1di3mdx2mzi91vrp";
|
|
|
|
#};
|
|
|
|
src = fetchsvn {
|
|
|
|
url = http://svn.process-one.net/ejabberd/trunk;
|
2009-10-13 22:43:14 +02:00
|
|
|
rev = "2666";
|
|
|
|
sha256 = "c927ddc08c9cd748db93f48bcae96f9bd1c36e1ce107c9b4774e5423574ab7cb";
|
2008-01-23 19:11:03 +01:00
|
|
|
};
|
2009-04-13 11:36:07 +02:00
|
|
|
buildInputs = [ expat erlang zlib openssl pam ];
|
2008-09-22 16:07:25 +02:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e "s|erl \\\|${erlang}/bin/erl \\\|" src/ejabberdctl.template
|
|
|
|
'';
|
|
|
|
preConfigure = ''
|
|
|
|
cd src
|
|
|
|
'';
|
2009-04-13 11:36:07 +02:00
|
|
|
configureFlags = ["--enable-pam"];
|
2008-09-22 16:07:25 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Open-source XMPP application server written in Erlang";
|
|
|
|
license = "GPLv2";
|
|
|
|
homepage = http://www.ejabberd.im;
|
|
|
|
};
|
2008-01-23 19:11:03 +01:00
|
|
|
}
|