summary refs log tree commit diff
path: root/pkgs/tools/audio/mpdris2/default.nix
blob: 93e7afdce41765a97224fa2f6244bf8848ee476e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ 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 ];
  };
}