2015-05-20 20:56:42 +01:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, intltool
|
2016-10-06 19:34:35 +01:00
|
|
|
, pythonPackages
|
2015-05-20 20:56:42 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mpDris2";
|
2017-04-17 22:24:02 +01:00
|
|
|
version = "0.7";
|
2015-05-20 20:56:42 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/eonpatapon/${name}/archive/${version}.tar.gz";
|
2017-04-17 22:24:02 +01:00
|
|
|
sha256 = "095swrjw59lh8qiwmjjjdbxl9587axilkj4mh2sx5m0kiq929z21";
|
2015-05-20 20:56:42 +01:00
|
|
|
};
|
|
|
|
|
2017-03-07 11:33:36 +00:00
|
|
|
preConfigure = ''
|
|
|
|
intltoolize -f
|
|
|
|
'';
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ intltool pythonPackages.wrapPython ];
|
2017-08-11 23:49:05 +01:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ python pygtk dbus-python ];
|
|
|
|
pythonPath = with pythonPackages; [ mpd pygtk dbus-python notify mutagen ];
|
2015-05-20 20:56:42 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|