Merge pull request #277780 from katexochen/waybar-mpris/cleanup

waybar-mpris: cleanup Go flags, remove unused dependency
This commit is contained in:
Nick Cao
2024-01-02 16:36:44 -05:00
committed by GitHub
+4 -7
View File
@@ -1,7 +1,6 @@
{ lib
, fetchgit
, buildGoModule
, installShellFiles
}:
buildGoModule {
@@ -16,11 +15,10 @@ buildGoModule {
vendorHash = "sha256-85jFSAOfNMihv710LtfETmkKRqcdRuFCHVuPkW94X/Y=";
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 +28,3 @@ buildGoModule {
maintainers = with maintainers; [ khaneliman ];
};
}