2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, meson, ninja, fetchFromGitHub, glib, pkgconfig, gtk-doc, docbook_xsl, gobject-introspection }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "playerctl";
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "2.3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "acrisci";
|
|
|
|
repo = "playerctl";
|
|
|
|
rev = "v${version}";
|
2020-12-07 07:45:13 +00:00
|
|
|
sha256 = "00z5c6amlxd3q42l7x8i0ngl627dxglgg5vikbbhjp9ms34xbxdn";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gtk-doc docbook_xsl gobject-introspection ];
|
|
|
|
buildInputs = [ glib ];
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
mesonFlags = [ "-Dbash-completions=true" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Command-line utility and library for controlling media players that implement MPRIS";
|
|
|
|
homepage = "https://github.com/acrisci/playerctl";
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ puffnfresh ];
|
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
|
|
};
|
|
|
|
}
|