about summary refs log tree commit diff
path: root/pkgs/tools/audio/mpdris2/default.nix
blob: 6596f1c34ff506b0d9d78492f14646c456ea6eb1 (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
{ stdenv, fetchurl, autoreconfHook, intltool
, pythonPackages
}:

stdenv.mkDerivation rec {
  name = "mpDris2";
  version = "0.7";

  src = fetchurl {
    url = "https://github.com/eonpatapon/${name}/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 ];
  };
}