bottom: add gpu recognition, new apple sdk, refactor (#360568)
[NixPkgs.git] / pkgs / by-name / wa / waybar-mpris / package.nix
blob93f957db33ddb4def1a9a2bbe271992a0af4c674
2   lib,
3   fetchgit,
4   buildGoModule,
5   nix-update-script,
6 }:
8 buildGoModule {
9   pname = "waybar-mpris";
10   version = "0.1.0-unstable-2022-01-27";
12   src = fetchgit {
13     url = "https://git.hrfee.pw/hrfee/waybar-mpris";
14     rev = "485ec0ec0af80a0d63c10e94aebfc59b16aab46b";
15     hash = "sha256-BjLxWnDNsR2ZnNklNiKzi1DeoPpaZsRdKbVSwNwYhJ4=";
16   };
18   vendorHash = "sha256-85jFSAOfNMihv710LtfETmkKRqcdRuFCHVuPkW94X/Y=";
20   ldflags = [
21     "-s"
22     "-w"
23   ];
25   passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
27   meta = with lib; {
28     description = "Waybar component/utility for displaying and controlling MPRIS2 compliant media players individually";
29     homepage = "https://git.hrfee.pw/hrfee/waybar-mpris";
30     license = licenses.mit;
31     mainProgram = "waybar-mpris";
32     maintainers = with maintainers; [ khaneliman ];
33   };