From 60ba4485b11460fc75e1acda3c0d56a7ecf1a398 Mon Sep 17 00:00:00 2001 From: aszlig Date: Fri, 21 Jun 2013 11:34:46 +0200 Subject: zabbix2: Add optional XMPP support using iksemel. This uses recurseForDerivations directly after using callPackage magic to ensure that the input attributes can be overriden *and* nix-env shows the package as in recurseIntoAttrs. The reason for making this optional is because there probably is only a minority of people who want to use XMPP and we don't want to introduce an additional dependency for the majority, do we? Signed-off-by: aszlig --- pkgs/servers/monitoring/zabbix/2.0.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'pkgs/servers/monitoring/zabbix') diff --git a/pkgs/servers/monitoring/zabbix/2.0.nix b/pkgs/servers/monitoring/zabbix/2.0.nix index 5131e8a2e42e..fef5010218cc 100644 --- a/pkgs/servers/monitoring/zabbix/2.0.nix +++ b/pkgs/servers/monitoring/zabbix/2.0.nix @@ -1,4 +1,7 @@ -{ stdenv, fetchurl, pkgconfig, postgresql, curl, openssl, zlib, gettext }: +{ stdenv, fetchurl, pkgconfig, postgresql, curl, openssl, zlib, gettext +, enableJabber ? false, iksemel ? null }: + +assert enableJabber -> iksemel != null; let @@ -21,13 +24,20 @@ let in { + recurseForDerivations = true; server = stdenv.mkDerivation { name = "zabbix-${version}"; inherit src preConfigure; - configureFlags = "--enable-agent --enable-server --with-postgresql --with-libcurl --with-gettext"; + configureFlags = [ + "--enable-agent" + "--enable-server" + "--with-postgresql" + "--with-libcurl" + "--with-gettext" + ] ++ stdenv.lib.optional enableJabber "--with-jabber=${iksemel}"; buildInputs = [ pkgconfig postgresql curl openssl zlib ]; -- cgit 1.4.1