Commit b70b4d0d authored by Mats's avatar Mats
Browse files

plex-mpv-shim: add gapps-wrapper for pystray

parent 4814a3b3
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
{ lib, buildPythonApplication, fetchFromGitHub, mpv, requests, python-mpv-jsonipc, pystray, tkinter }:
{ lib, buildPythonApplication, fetchFromGitHub, mpv, requests, python-mpv-jsonipc, pystray, tkinter
, wrapGAppsHook, gobject-introspection }:

buildPythonApplication rec {
  pname = "plex-mpv-shim";
@@ -11,8 +12,19 @@ buildPythonApplication rec {
    sha256 = "0hgv9g17dkrh3zbsx27n80yvkgix9j2x0rgg6d3qsf7hp5j3xw4r";
  };

  nativeBuildInputs = [
    wrapGAppsHook
    gobject-introspection
  ];

  propagatedBuildInputs = [ mpv requests python-mpv-jsonipc pystray tkinter ];

  # needed for pystray to access appindicator using GI
  preFixup = ''
    makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
  '';
  dontWrapGApps = true;

  # does not contain tests
  doCheck = false;