waybar-mpris: cleanup Go flags

- fix strip flags by setting as ldflags
- remove `-trimpath`, this is set by buildGoModule
- remove `-modcacherw`, `-mod=readonly`, `-linkmode=external`
  as flags had no effect (check hash of binary when removing)
- remove `-buildmode=pie` (not sure why we would need a PIE here)
This commit is contained in:
Paul Meyer
2023-12-30 20:53:32 +01:00
parent c73edc4d26
commit 2b1c2cb1cd
+4 -4
View File
@@ -18,9 +18,10 @@ buildGoModule {
nativeBuildInputs = [ installShellFiles ];
CGO_LDFLAGS = "-s -w";
GOFLAGS = "-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw";
ldflags = [
"-s"
"-w"
];
meta = with lib; {
description = "A waybar component/utility for displaying and controlling MPRIS2 compliant media players individually";
@@ -30,4 +31,3 @@ buildGoModule {
maintainers = with maintainers; [ khaneliman ];
};
}