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:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user