2009-04-13 10:36:07 +01:00
|
|
|
{stdenv, fetchurl, expat, erlang, zlib, openssl, pam}:
|
2008-01-23 18:11:03 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2008-03-02 22:11:19 +00:00
|
|
|
name = "ejabberd-2.0.0";
|
2008-01-23 18:11:03 +00:00
|
|
|
src = fetchurl {
|
2008-03-02 22:11:19 +00:00
|
|
|
url = http://www.process-one.net/downloads/ejabberd/2.0.0/ejabberd-2.0.0.tar.gz;
|
|
|
|
sha256 = "086e105cb402ef868e3187277db1486807e1b34a2e3e3679f0ee6de1e5fd2e54";
|
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;
|
|
|
|
};
|
2008-01-23 18:11:03 +00:00
|
|
|
}
|