about summary refs log tree commit diff
path: root/pkgs/by-name/wa/waybar-mpris/package.nix
blob: adbe513b9b440b368931542d393bce33945479ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ lib
, fetchgit
, buildGoModule
, unstableGitUpdater
}:

buildGoModule {
  pname = "waybar-mpris";
  version = "unstable-2022-01-27";

  src = fetchgit {
    url = "https://git.hrfee.pw/hrfee/waybar-mpris";
    rev = "485ec0ec0af80a0d63c10e94aebfc59b16aab46b";
    hash = "sha256-BjLxWnDNsR2ZnNklNiKzi1DeoPpaZsRdKbVSwNwYhJ4=";
  };

  vendorHash = "sha256-85jFSAOfNMihv710LtfETmkKRqcdRuFCHVuPkW94X/Y=";

  ldflags = [
    "-s"
    "-w"
  ];

  passthru.updateScript = unstableGitUpdater { };

  meta = with lib; {
    description = "Waybar component/utility for displaying and controlling MPRIS2 compliant media players individually";
    homepage = "https://git.hrfee.pw/hrfee/waybar-mpris";
    license = licenses.mit;
    mainProgram = "waybar-mpris";
    maintainers = with maintainers; [ khaneliman ];
  };
}