Merge pull request #187558 from NickCao/zabbix-proxy

zabbix.proxy-sqlite: fix cross compilation by setting AR and RANLIB, and
This commit is contained in:
superherointj 2023-02-04 18:18:06 -03:00 committed by GitHub
commit 33c947b0af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl, pkg-config, libevent, libiconv, openssl, pcre, zlib
, odbcSupport ? true, unixODBC
, snmpSupport ? true, net-snmp
, snmpSupport ? stdenv.buildPlatform == stdenv.hostPlatform, net-snmp
, sshSupport ? true, libssh2
, sqliteSupport ? false, sqlite
, mysqlSupport ? false, libmysqlclient
@ -60,6 +60,11 @@ in
find database -name data.sql -exec sed -i 's|/usr/bin/||g' {} +
'';
makeFlags = [
"AR:=$(AR)"
"RANLIB:=$(RANLIB)"
];
postInstall = ''
mkdir -p $out/share/zabbix/database/
'' + optionalString sqliteSupport ''