Skip to content

Commit

Permalink
feat: add -s -w build flags to reduce binary size
Browse files Browse the repository at this point in the history
Signed-off-by: Brian McGee <brian@bmcgee.ie>
  • Loading branch information
brianmcgee committed Feb 14, 2024
1 parent b109358 commit cb9564c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nix/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
modules = ../gomod2nix.toml;

ldflags = [
"-s"
"-w"
"-X 'build.Name=${pname}'"
"-X 'build.Version=${version}'"
];
Expand Down

0 comments on commit cb9564c

Please sign in to comment.