diff --git a/pkgs/applications/video/plex-mpv-shim/default.nix b/pkgs/applications/video/plex-mpv-shim/default.nix index 2d0643c4ddb9..b7a5f2ce38c1 100644 --- a/pkgs/applications/video/plex-mpv-shim/default.nix +++ b/pkgs/applications/video/plex-mpv-shim/default.nix @@ -1,4 +1,5 @@ -{ 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;