From c555ac19049c0c91b4a917a0949859c194c8b9ff Mon Sep 17 00:00:00 2001 From: squalus Date: Wed, 24 Aug 2022 12:35:13 -0700 Subject: [PATCH] prometheus: fix cross compile Fix the go generate command so it can run on the build platform --- pkgs/servers/monitoring/prometheus/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/monitoring/prometheus/default.nix b/pkgs/servers/monitoring/prometheus/default.nix index 34f51f607193..6cf9d7919b80 100644 --- a/pkgs/servers/monitoring/prometheus/default.nix +++ b/pkgs/servers/monitoring/prometheus/default.nix @@ -105,7 +105,7 @@ buildGoModule rec { ''; preBuild = '' - if [[ -d vendor ]]; then make -o assets assets-compress plugins; fi + if [[ -d vendor ]]; then GOARCH= make -o assets assets-compress plugins; fi ''; tags = [ "builtinassets" ];