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

33 lines
920 B
Nix
Raw Normal View History

{ stdenv, fetchurl, autoreconfHook, intltool
2016-10-06 19:34:35 +01:00
, pythonPackages
}:
stdenv.mkDerivation rec {
pname = "mpDris2";
name = "${pname}-${version}";
2017-04-17 22:24:02 +01:00
version = "0.7";
src = fetchurl {
url = "https://github.com/eonpatapon/${pname}/archive/${version}.tar.gz";
2017-04-17 22:24:02 +01:00
sha256 = "095swrjw59lh8qiwmjjjdbxl9587axilkj4mh2sx5m0kiq929z21";
};
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 ];
};
}