From 60dceccc9f74738e6f00859a66341f7feb9833dd Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Mon, 13 Apr 2009 09:36:07 +0000 Subject: [PATCH] Use PAM in ejabberd svn path=/nixpkgs/trunk/; revision=15008 --- pkgs/servers/xmpp/ejabberd/default.nix | 5 +++-- pkgs/top-level/all-packages.nix | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/xmpp/ejabberd/default.nix b/pkgs/servers/xmpp/ejabberd/default.nix index 27d5bf034a60..7cc13bb81847 100644 --- a/pkgs/servers/xmpp/ejabberd/default.nix +++ b/pkgs/servers/xmpp/ejabberd/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, expat, erlang, zlib, openssl}: +{stdenv, fetchurl, expat, erlang, zlib, openssl, pam}: stdenv.mkDerivation { name = "ejabberd-2.0.0"; @@ -6,13 +6,14 @@ stdenv.mkDerivation { url = http://www.process-one.net/downloads/ejabberd/2.0.0/ejabberd-2.0.0.tar.gz; sha256 = "086e105cb402ef868e3187277db1486807e1b34a2e3e3679f0ee6de1e5fd2e54"; }; - buildInputs = [ expat erlang zlib openssl ]; + 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"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 228df732d981..76ae48f3993a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6551,7 +6551,8 @@ let }; ejabberd = import ../servers/xmpp/ejabberd { - inherit fetchurl stdenv expat erlang zlib openssl; + inherit fetchurl stdenv expat erlang zlib openssl + pam; }; fingerd_bsd = import ../servers/fingerd/bsd-fingerd {