Skip to content

Commit cb9564c

Browse files
committed
feat: add -s -w build flags to reduce binary size
Signed-off-by: Brian McGee <[email protected]>
1 parent b109358 commit cb9564c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nix/packages.nix

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
modules = ../gomod2nix.toml;
2323

2424
ldflags = [
25+
"-s"
26+
"-w"
2527
"-X 'build.Name=${pname}'"
2628
"-X 'build.Version=${version}'"
2729
];

0 commit comments

Comments
 (0)