2019-11-27 21:28:24 +00:00
|
|
|
{ stdenv
|
|
|
|
, autoreconfHook
|
|
|
|
, fetchFromGitHub
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, intltool
|
|
|
|
, libnotify
|
|
|
|
, python3
|
|
|
|
, wrapGAppsHook
|
2015-05-20 20:56:42 +01:00
|
|
|
}:
|
|
|
|
|
2019-11-27 21:28:24 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2018-05-24 05:37:33 +01: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 20:56:42 +01:00
|
|
|
|
2019-11-27 21:28:24 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eonpatapon";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "048b8acsd1b8kcxzd9fsh5p9g2an9c4rznicfcpyrsjz5syv894h";
|
2015-05-20 20:56:42 +01: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 20:56:42 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "MPRIS 2 support for mpd";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/eonpatapon/mpDris2/";
|
2015-05-20 20:56:42 +01:00
|
|
|
license = licenses.gpl3;
|
2019-11-27 21:28:24 +00:00
|
|
|
maintainers = with maintainers; [];
|
2015-05-20 20:56:42 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|