zabbix.proxy-sqlite: fix cross compilation by setting AR and RANLIB, and

disabling snmp support
This commit is contained in:
Nick Cao 2022-08-20 16:01:13 +08:00
parent 4e9fabfc66
commit 44785549a7
No known key found for this signature in database
GPG key ID: 068A56CEF48FA2C1

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 ''