mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
52e9488541
svn path=/nixpkgs/trunk/; revision=18396
25 lines
721 B
Nix
25 lines
721 B
Nix
{stdenv, fetchurl, expat, erlang, zlib, openssl, pam, lib}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ejabberd-2.1.0";
|
|
src = fetchurl {
|
|
url = http://www.process-one.net/downloads/ejabberd/2.1.0/ejabberd-2.1.0.tar.gz;
|
|
sha256 = "16gn5ag3zyv578bqbz134l13cy1gl1xfa5y7dnqxgpr9gkdyrp5q";
|
|
};
|
|
buildInputs = [ expat erlang zlib openssl pam ];
|
|
patchPhase = ''
|
|
sed -i -e "s|erl \\\|${erlang}/bin/erl \\\|" src/ejabberdctl.template
|
|
'';
|
|
preConfigure = ''
|
|
cd src
|
|
'';
|
|
configureFlags = ["--enable-pam"];
|
|
|
|
meta = {
|
|
description = "Open-source XMPP application server written in Erlang";
|
|
license = "GPLv2";
|
|
homepage = http://www.ejabberd.im;
|
|
maintainers = [ lib.maintainers.sander ];
|
|
};
|
|
}
|