Skip to content

Commit 0cd31c9

Browse files
committed
Disable cgo in dev shell
1 parent c0c9f6a commit 0cd31c9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

flake.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@
4646
pkgs.nodejs_22
4747
];
4848

49+
# Since using Go 1.25 from nixpkgs,
50+
# the Go tool seems to try to use cgo for net and os/user,
51+
# even though it is not necessary.
52+
# We disable cgo forcibly for consistency.
53+
CGO_ENABLED = "0";
54+
4955
hardeningDisable = [ "fortify" ];
5056
};
5157

0 commit comments

Comments
 (0)