From 1fe8015b214f084848ea64270897e1ec5cd48445 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Thu, 27 Jan 2022 09:54:59 +0800 Subject: [PATCH] zabbix.agent: fix cross compilation --- pkgs/servers/monitoring/zabbix/agent.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/servers/monitoring/zabbix/agent.nix b/pkgs/servers/monitoring/zabbix/agent.nix index 269a8c6ba66f..f11af1809981 100644 --- a/pkgs/servers/monitoring/zabbix/agent.nix +++ b/pkgs/servers/monitoring/zabbix/agent.nix @@ -24,6 +24,10 @@ import ./versions.nix ({ version, sha256 }: "--with-libpcre" "--with-openssl=${openssl.dev}" ]; + makeFlags = [ + "AR:=$(AR)" + "RANLIB:=$(RANLIB)" + ]; postInstall = '' cp conf/zabbix_agentd/*.conf $out/etc/zabbix_agentd.conf.d/