From cb9564c7ef738b8899648cf9df464eeec2e7bc1b Mon Sep 17 00:00:00 2001 From: Brian McGee Date: Wed, 14 Feb 2024 15:10:20 +0000 Subject: [PATCH] feat: add -s -w build flags to reduce binary size Signed-off-by: Brian McGee --- nix/packages.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nix/packages.nix b/nix/packages.nix index a430734..7029757 100644 --- a/nix/packages.nix +++ b/nix/packages.nix @@ -22,6 +22,8 @@ modules = ../gomod2nix.toml; ldflags = [ + "-s" + "-w" "-X 'build.Name=${pname}'" "-X 'build.Version=${version}'" ];