nixpkgs/pkgs/tools/audio/mpdris2/default.nix

32 lines
888 B
Nix
Raw Normal View History

{ stdenv, fetchurl, autoreconfHook, intltool
2016-10-06 20:34:35 +02:00
, pythonPackages
}:
stdenv.mkDerivation rec {
pname = "mpDris2";
2019-02-25 00:43:12 +01:00
version = "0.8";
src = fetchurl {
url = "https://github.com/eonpatapon/${pname}/archive/${version}.tar.gz";
2019-02-25 00:43:12 +01:00
sha256 = "14a3va3929qaq1sp9hs9w4bs6lykdvshkbc58kbsc5nzvlgmrcdn";
};
preConfigure = ''
intltoolize -f
'';
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ intltool 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 ];
};
}