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