mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 21:32:23 +03:00
a3103fb406
* mpDris2: add mutagen for cover art support * mpdris2: move mutagen to `pythonPath`
31 lines
859 B
Nix
31 lines
859 B
Nix
{ stdenv, fetchurl, autoreconfHook, intltool
|
|
, pythonPackages
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "mpDris2";
|
|
version = "0.7";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/eonpatapon/${name}/archive/${version}.tar.gz";
|
|
sha256 = "095swrjw59lh8qiwmjjjdbxl9587axilkj4mh2sx5m0kiq929z21";
|
|
};
|
|
|
|
preConfigure = ''
|
|
intltoolize -f
|
|
'';
|
|
|
|
buildInputs = [ intltool autoreconfHook pythonPackages.wrapPython ];
|
|
propagatedBuildInputs = with pythonPackages; [ python pygtk dbus-python ];
|
|
pythonPath = with pythonPackages; [ mpd pygtk dbus-python notify mutagen ];
|
|
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 ];
|
|
};
|
|
}
|