blob: 8740c273eef336dddce1af0969fbafdbed5ef353 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{ lib
, stdenv
, buildPackages
, docbook_xsl
, fetchFromGitHub
, glib
, gobject-introspection
, gtk-doc
, meson
, mesonEmulatorHook
, ninja
, pkg-config
, withDocs ? stdenv.hostPlatform.emulatorAvailable buildPackages
}:
stdenv.mkDerivation rec {
pname = "playerctl";
version = "2.4.1";
src = fetchFromGitHub {
owner = "acrisci";
repo = "playerctl";
rev = "v${version}";
sha256 = "sha256-OiGKUnsKX0ihDRceZoNkcZcEAnz17h2j2QUOSVcxQEY=";
};
nativeBuildInputs = [
docbook_xsl
gobject-introspection
gtk-doc
meson
ninja
pkg-config
] ++ lib.optionals (withDocs && !stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];
buildInputs = [ glib ];
mesonFlags = [
"-Dbash-completions=true"
(lib.mesonBool "gtk-doc" withDocs)
];
meta = with lib; {
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;
mainProgram = "playerctl";
};
}
|