2015-05-20 21:56:42 +02:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, intltool
|
2016-10-06 20:34:35 +02:00
|
|
|
, pythonPackages
|
2015-05-20 21:56:42 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mpDris2";
|
2017-04-17 23:24:02 +02:00
|
|
|
version = "0.7";
|
2015-05-20 21:56:42 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/eonpatapon/${name}/archive/${version}.tar.gz";
|
2017-04-17 23:24:02 +02:00
|
|
|
sha256 = "095swrjw59lh8qiwmjjjdbxl9587axilkj4mh2sx5m0kiq929z21";
|
2015-05-20 21:56:42 +02:00
|
|
|
};
|
|
|
|
|
2017-03-07 12:33:36 +01:00
|
|
|
preConfigure = ''
|
|
|
|
intltoolize -f
|
|
|
|
'';
|
|
|
|
|
2016-08-16 22:51:21 +02:00
|
|
|
buildInputs = [ intltool autoreconfHook pythonPackages.wrapPython ];
|
2016-10-06 20:34:35 +02:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ python pygtk dbus-python ];
|
2016-08-16 22:51:21 +02:00
|
|
|
pythonPath = with pythonPackages; [ mpd pygtk dbus-python notify ];
|
2015-05-20 21:56:42 +02:00
|
|
|
postInstall = "wrapPythonPrograms";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "MPRIS 2 support for mpd";
|
|
|
|
homepage = https://github.com/eonpatapon/mpDris2/;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ pjones ];
|
|
|
|
};
|
|
|
|
}
|