From e650e23dd8002e0f0e1f99ab697fd6fa621835f9 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sat, 29 Jun 2024 11:22:28 -0400 Subject: [PATCH] flyctl: fix cross compilation --- pkgs/development/web/flyctl/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/web/flyctl/default.nix b/pkgs/development/web/flyctl/default.nix index 47743d296e59..a635dd913300 100644 --- a/pkgs/development/web/flyctl/default.nix +++ b/pkgs/development/web/flyctl/default.nix @@ -27,7 +27,7 @@ buildGoModule rec { patches = [ ./disable-auto-update.patch ]; preBuild = '' - go generate ./... + GOOS= GOARCH= CGO_ENABLED=0 go generate ./... ''; preCheck = ''