From f97dd93bc2421829450a4c9d75404f6452d67f42 Mon Sep 17 00:00:00 2001 From: Vova Kryachko Date: Wed, 23 Oct 2024 18:02:32 +0000 Subject: [PATCH] Make nix build produce a static binary Regular builds already specify CGO_ENABLED=0, making nix binaries static as well. --- default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/default.nix b/default.nix index 65fac45..89e1140 100644 --- a/default.nix +++ b/default.nix @@ -6,6 +6,7 @@ buildGoModule rec { pname = "process-compose"; version = "1.34.0"; + CGO_ENABLED = 0; src = lib.cleanSource ./.; ldflags = [