diff options
author | Aaron Andersen <aaron@fosslib.net> | 2020-08-17 09:40:06 -0400 |
---|---|---|
committer | Aaron Andersen <aaron@fosslib.net> | 2020-08-18 10:25:42 -0400 |
commit | 927bd3e66553ffd1dfb19b11c464ff7664dfd0d5 (patch) | |
tree | 7d87eb637c93629c5dc9e77dc0d0803c5658d4a0 /pkgs/servers/monitoring | |
parent | 0a84375ddb9c41fb5ffa9bf9785debcec84b0614 (diff) |
zabbix.server: fix broken build
Diffstat (limited to 'pkgs/servers/monitoring')
-rw-r--r-- | pkgs/servers/monitoring/zabbix/server.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/servers/monitoring/zabbix/server.nix b/pkgs/servers/monitoring/zabbix/server.nix index fdf3fd476df16..9d0e1c199d321 100644 --- a/pkgs/servers/monitoring/zabbix/server.nix +++ b/pkgs/servers/monitoring/zabbix/server.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pkgconfig, curl, libevent, libiconv, libxml2, openssl, pcre, zlib +{ stdenv, fetchurl, autoreconfHook, pkgconfig, curl, libevent, libiconv, libxml2, openssl, pcre, zlib , jabberSupport ? true, iksemel , ldapSupport ? true, openldap , odbcSupport ? true, unixODBC @@ -25,7 +25,7 @@ in inherit sha256; }; - nativeBuildInputs = [ pkgconfig ]; + nativeBuildInputs = [ autoreconfHook pkgconfig ]; buildInputs = [ curl libevent @@ -65,6 +65,13 @@ in find database -name data.sql -exec sed -i 's|/usr/bin/||g' {} + ''; + preAutoreconf = '' + for i in $(find . -type f -name "*.m4"); do + substituteInPlace $i \ + --replace 'test -x "$PKG_CONFIG"' 'type -P "$PKG_CONFIG" >/dev/null' + done + ''; + postInstall = '' mkdir -p $out/share/zabbix/database/ cp -r include $out/ |