2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2019-11-27 22:28:24 +01:00
|
|
|
, autoreconfHook
|
|
|
|
, fetchFromGitHub
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, intltool
|
|
|
|
, libnotify
|
|
|
|
, python3
|
|
|
|
, wrapGAppsHook
|
2015-05-20 21:56:42 +02:00
|
|
|
}:
|
|
|
|
|
2019-11-27 22:28:24 +01:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2018-05-24 06:37:33 +02:00
|
|
|
pname = "mpDris2";
|
2019-02-25 00:43:12 +01:00
|
|
|
version = "0.8";
|
2019-11-27 22:28:24 +01:00
|
|
|
format = "other";
|
|
|
|
strictDeps = false; # https://github.com/NixOS/nixpkgs/issues/56943
|
2015-05-20 21:56:42 +02:00
|
|
|
|
2019-11-27 22:28:24 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eonpatapon";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "048b8acsd1b8kcxzd9fsh5p9g2an9c4rznicfcpyrsjz5syv894h";
|
2015-05-20 21:56:42 +02:00
|
|
|
};
|
|
|
|
|
2017-03-07 12:33:36 +01:00
|
|
|
preConfigure = ''
|
|
|
|
intltoolize -f
|
|
|
|
'';
|
|
|
|
|
2019-11-27 22:28:24 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
gobject-introspection
|
|
|
|
intltool
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
libnotify
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
dbus-python
|
|
|
|
mpd2
|
|
|
|
mutagen
|
|
|
|
pygobject3
|
|
|
|
];
|
2015-05-20 21:56:42 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2015-05-20 21:56:42 +02:00
|
|
|
description = "MPRIS 2 support for mpd";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/eonpatapon/mpDris2/";
|
2015-05-20 21:56:42 +02:00
|
|
|
license = licenses.gpl3;
|
2019-11-27 22:28:24 +01:00
|
|
|
maintainers = with maintainers; [];
|
2015-05-20 21:56:42 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|