nixpkgs/pkgs/tools/audio/mpdris2/default.nix
Matthew Bauer 02297beade treewide: add version to packages
Lots of packages are missing versions in their name. This adds them
where appropriate. These were found with this command:

 $ nix-env -qa -f. | grep -v '\-[0-9A-Za-z.-_+]*$' | grep -v '^hook$'

See issue #41007.
2018-05-25 15:48:05 -05:00

33 lines
920 B
Nix

{ stdenv, fetchurl, autoreconfHook, intltool
, pythonPackages
}:
stdenv.mkDerivation rec {
pname = "mpDris2";
name = "${pname}-${version}";
version = "0.7";
src = fetchurl {
url = "https://github.com/eonpatapon/${pname}/archive/${version}.tar.gz";
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 ];
};
}