Merge pull request #262673 from khaneliman/waybar-mpris

waybar-mpris: init at unstable-2022-01-27

authored by

Weijia Wang and committed by
GitHub
3821bd34 ae133174

+33
+33
pkgs/by-name/wa/waybar-mpris/package.nix
···
··· 1 + { lib 2 + , fetchgit 3 + , buildGoModule 4 + , installShellFiles 5 + }: 6 + 7 + buildGoModule { 8 + pname = "waybar-mpris"; 9 + version = "unstable-2022-01-27"; 10 + 11 + src = fetchgit { 12 + url = "https://git.hrfee.pw/hrfee/waybar-mpris"; 13 + rev = "485ec0ec0af80a0d63c10e94aebfc59b16aab46b"; 14 + hash = "sha256-BjLxWnDNsR2ZnNklNiKzi1DeoPpaZsRdKbVSwNwYhJ4="; 15 + }; 16 + 17 + vendorHash = "sha256-85jFSAOfNMihv710LtfETmkKRqcdRuFCHVuPkW94X/Y="; 18 + 19 + nativeBuildInputs = [ installShellFiles ]; 20 + 21 + CGO_LDFLAGS = "-s -w"; 22 + 23 + GOFLAGS = "-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"; 24 + 25 + meta = with lib; { 26 + description = "A waybar component/utility for displaying and controlling MPRIS2 compliant media players individually"; 27 + homepage = "https://git.hrfee.pw/hrfee/waybar-mpris"; 28 + license = licenses.mit; 29 + mainProgram = "waybar-mpris"; 30 + maintainers = with maintainers; [ khaneliman ]; 31 + }; 32 + } 33 +