f9b08c9dbb
The package included outdated intltool makefiles, resulting in installation of local files to `$out/'@DATADIRNAME'`. Running `intltoolize -f` forces regeneration of the Makefile and fixes the issue.
31 lines
850 B
Nix
31 lines
850 B
Nix
{ stdenv, fetchurl, autoreconfHook, intltool
|
|
, pythonPackages
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "mpDris2";
|
|
version = "0.6";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/eonpatapon/${name}/archive/${version}.tar.gz";
|
|
sha256 = "0zdmamj2ldhr6y3s464w8y2x3yizda784jnlrg3j3myfabssisvz";
|
|
};
|
|
|
|
preConfigure = ''
|
|
intltoolize -f
|
|
'';
|
|
|
|
buildInputs = [ intltool autoreconfHook pythonPackages.wrapPython ];
|
|
propagatedBuildInputs = with pythonPackages; [ python pygtk dbus-python ];
|
|
pythonPath = with pythonPackages; [ mpd pygtk dbus-python notify ];
|
|
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 ];
|
|
};
|
|
}
|