nix-init
nix-init copied to clipboard
buildGoModule: drop -w from default ldflags
-w is implied by -s, so we can drop it here.
Ideally we should drop both? See https://discourse.nixos.org/t/why-do-so-many-go-packages-use-s-w-in-their-ldflags-it-breaks-dontfixup-dontstrip/36843.
Ideally we should drop both? See https://discourse.nixos.org/t/why-do-so-many-go-packages-use-s-w-in-their-ldflags-it-breaks-dontfixup-dontstrip/36843.
That's another topic and might require additional steps, see https://github.com/NixOS/nixpkgs/issues/346380.