zabbix.server: fix broken build
This commit is contained in:
parent
0a84375ddb
commit
927bd3e665
|
@ -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
|
, jabberSupport ? true, iksemel
|
||||||
, ldapSupport ? true, openldap
|
, ldapSupport ? true, openldap
|
||||||
, odbcSupport ? true, unixODBC
|
, odbcSupport ? true, unixODBC
|
||||||
|
@ -25,7 +25,7 @@ in
|
||||||
inherit sha256;
|
inherit sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
curl
|
curl
|
||||||
libevent
|
libevent
|
||||||
|
@ -65,6 +65,13 @@ in
|
||||||
find database -name data.sql -exec sed -i 's|/usr/bin/||g' {} +
|
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 = ''
|
postInstall = ''
|
||||||
mkdir -p $out/share/zabbix/database/
|
mkdir -p $out/share/zabbix/database/
|
||||||
cp -r include $out/
|
cp -r include $out/
|
||||||
|
|
Loading…
Reference in New Issue