Unverified Commit f52e3720 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

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

waybar-mpris: cleanup Go flags, remove unused dependency
parents 72533ffb ad6bc6f6
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
{ 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 ];
  };
}