diff options
author | Ilan Joselevich <personal@ilanjoselevich.com> | 2023-03-19 13:18:16 +0200 |
---|---|---|
committer | Ilan Joselevich <personal@ilanjoselevich.com> | 2023-03-19 13:18:16 +0200 |
commit | 9625629f5691f7707f38bf893c3490d43669a7c7 (patch) | |
tree | 336b2a67eb6a4cbbeae651c251947b59ffaf2b66 /pkgs/servers/tailscale | |
parent | 73d2bec90f3344963b4d9677e95d8d5e322966e0 (diff) |
tailscale: reduce closure size via ldflags
Diffstat (limited to 'pkgs/servers/tailscale')
-rw-r--r-- | pkgs/servers/tailscale/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/servers/tailscale/default.nix b/pkgs/servers/tailscale/default.nix index e1c7399a49a4f..60815d8fab9b4 100644 --- a/pkgs/servers/tailscale/default.nix +++ b/pkgs/servers/tailscale/default.nix @@ -18,7 +18,12 @@ buildGoModule rec { subPackages = [ "cmd/tailscale" "cmd/tailscaled" ]; - ldflags = [ "-X tailscale.com/version.longStamp=${version}" "-X tailscale.com/version.shortStamp=${version}" ]; + ldflags = [ + "-w" + "-s" + "-X tailscale.com/version.longStamp=${version}" + "-X tailscale.com/version.shortStamp=${version}" + ]; doCheck = false; |