Skip to content

Commit

Permalink
Make nix build produce a static binary
Browse files Browse the repository at this point in the history
Regular builds already specify CGO_ENABLED=0, making nix binaries static
as well.
  • Loading branch information
vkryachko authored and F1bonacc1 committed Oct 26, 2024
1 parent 6b724f8 commit f97dd93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ buildGoModule rec {
pname = "process-compose";
version = "1.34.0";

CGO_ENABLED = 0;

src = lib.cleanSource ./.;
ldflags = [
Expand Down

0 comments on commit f97dd93

Please sign in to comment.