diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-02-23 12:17:23 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-02-23 12:17:23 +0000 |
commit | 3f9cb1d9d2f21e07dde2622a4d91606f742ae897 (patch) | |
tree | da20f9de5ad4c1f35a3dad9541e763b535e99d08 /pkgs/servers/monitoring | |
parent | 17c0e537e3771a2994d8e193c14a509979b9b680 (diff) | |
download | nixlib-3f9cb1d9d2f21e07dde2622a4d91606f742ae897.tar nixlib-3f9cb1d9d2f21e07dde2622a4d91606f742ae897.tar.gz nixlib-3f9cb1d9d2f21e07dde2622a4d91606f742ae897.tar.bz2 nixlib-3f9cb1d9d2f21e07dde2622a4d91606f742ae897.tar.lz nixlib-3f9cb1d9d2f21e07dde2622a4d91606f742ae897.tar.xz nixlib-3f9cb1d9d2f21e07dde2622a4d91606f742ae897.tar.zst nixlib-3f9cb1d9d2f21e07dde2622a4d91606f742ae897.zip |
* Build the Zabbix agent on other platforms.
svn path=/nixpkgs/trunk/; revision=20188
Diffstat (limited to 'pkgs/servers/monitoring')
-rw-r--r-- | pkgs/servers/monitoring/zabbix/default.nix | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/pkgs/servers/monitoring/zabbix/default.nix b/pkgs/servers/monitoring/zabbix/default.nix index fa55b343c35e..0e708df55f3b 100644 --- a/pkgs/servers/monitoring/zabbix/default.nix +++ b/pkgs/servers/monitoring/zabbix/default.nix @@ -1,7 +1,5 @@ { stdenv, fetchurl, pkgconfig, postgresql, curl, openssl, zlib }: -assert stdenv.gcc.libc != null; - let version = "1.8.1"; @@ -11,6 +9,15 @@ let sha256 = "0z4a5lbpgszc2vfg2hc30c1l3l1lbihinqx2sygxf9r5y9k7fj7g"; }; + preConfigure = + '' + substituteInPlace ./configure \ + --replace " -static" "" \ + ${stdenv.lib.optionalString (stdenv.gcc.libc != null) '' + --replace /usr/include/iconv.h ${stdenv.gcc.libc}/include/iconv.h + ''} + ''; + in { @@ -18,17 +25,10 @@ in server = stdenv.mkDerivation { name = "zabbix-${version}"; - inherit src; + inherit src preConfigure; configureFlags = "--enable-agent --enable-server --with-pgsql --with-libcurl"; - preConfigure = - '' - substituteInPlace ./configure \ - --replace " -static" "" \ - --replace /usr/include/iconv.h ${stdenv.gcc.libc}/include/iconv.h - ''; - buildInputs = [ pkgconfig postgresql curl openssl zlib ]; postInstall = @@ -53,16 +53,10 @@ in agent = stdenv.mkDerivation { name = "zabbix-agent-${version}"; - inherit src; + inherit src preConfigure; configureFlags = "--enable-agent"; - preConfigure = - '' - substituteInPlace ./configure \ - --replace /usr/include/iconv.h ${stdenv.gcc.libc}/include/iconv.h - ''; - meta = { description = "An enterprise-class open source distributed monitoring solution (client-side agent)"; homepage = http://www.zabbix.com/; |