about summary refs log tree commit diff
path: root/pkgs/servers/monitoring
diff options
context:
space:
mode:
authorsuperherointj <5861043+superherointj@users.noreply.github.com>2023-02-04 18:18:06 -0300
committerGitHub <noreply@github.com>2023-02-04 18:18:06 -0300
commit33c947b0afbcb5e8ceadfa2af8e45192f8e2d682 (patch)
tree3208a61b08919de872f151ce89f61d355f297cb2 /pkgs/servers/monitoring
parent1acf6cea1674be90d44d22dcff98ca3ab4b1a764 (diff)
parent44785549a7a7d8c2de79773329c217b8c4c2b369 (diff)
Merge pull request #187558 from NickCao/zabbix-proxy
zabbix.proxy-sqlite: fix cross compilation by setting AR and RANLIB, and
Diffstat (limited to 'pkgs/servers/monitoring')
-rw-r--r--pkgs/servers/monitoring/zabbix/proxy.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/servers/monitoring/zabbix/proxy.nix b/pkgs/servers/monitoring/zabbix/proxy.nix
index b52015e1c3df5..4c34f2719186c 100644
--- a/pkgs/servers/monitoring/zabbix/proxy.nix
+++ b/pkgs/servers/monitoring/zabbix/proxy.nix
@@ -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 ''