1{ lib, stdenv, meson, ninja, fetchFromGitHub, glib, pkg-config, gtk-doc, docbook_xsl, gobject-introspection }:
2
3stdenv.mkDerivation rec {
4 pname = "playerctl";
5 version = "2.4.1";
6
7 src = fetchFromGitHub {
8 owner = "acrisci";
9 repo = "playerctl";
10 rev = "v${version}";
11 sha256 = "sha256-OiGKUnsKX0ihDRceZoNkcZcEAnz17h2j2QUOSVcxQEY=";
12 };
13
14 nativeBuildInputs = [ meson ninja pkg-config gtk-doc docbook_xsl gobject-introspection ];
15 buildInputs = [ glib ];
16
17 mesonFlags = [ "-Dbash-completions=true" ];
18
19 meta = with lib; {
20 description = "Command-line utility and library for controlling media players that implement MPRIS";
21 homepage = "https://github.com/acrisci/playerctl";
22 license = licenses.lgpl3;
23 platforms = platforms.unix;
24 maintainers = with maintainers; [ puffnfresh ];
25 broken = stdenv.hostPlatform.isDarwin;
26 };
27}