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 {
|
2018-05-24 06:37:33 +02:00
|
|
|
pname = "mpDris2";
|
2019-02-25 00:43:12 +01:00
|
|
|
version = "0.8";
|
2015-05-20 21:56:42 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-05-24 06:37:33 +02:00
|
|
|
url = "https://github.com/eonpatapon/${pname}/archive/${version}.tar.gz";
|
2019-02-25 00:43:12 +01:00
|
|
|
sha256 = "14a3va3929qaq1sp9hs9w4bs6lykdvshkbc58kbsc5nzvlgmrcdn";
|
2015-05-20 21:56:42 +02:00
|
|
|
};
|
|
|
|
|
2017-03-07 12:33:36 +01:00
|
|
|
preConfigure = ''
|
|
|
|
intltoolize -f
|
|
|
|
'';
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ intltool pythonPackages.wrapPython ];
|
2017-08-12 00:49:05 +02:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ python pygtk dbus-python ];
|
|
|
|
pythonPath = with pythonPackages; [ mpd pygtk dbus-python notify mutagen ];
|
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 ];
|
|
|
|
};
|
|
|
|
}
|