jellyfin-mpv-shim: add gapps-wrapper for pystray
Wraps jellyfin-mpv-shim using wrapGAppsHook to support more backends in pystray
This commit is contained in:
parent
aba2c391f1
commit
4814a3b3c7
1 changed files with 13 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
{ lib
|
||||
, buildPythonApplication
|
||||
, fetchPypi
|
||||
, gobject-introspection
|
||||
, jellyfin-apiclient-python
|
||||
, jinja2
|
||||
, mpv
|
||||
|
@ -9,6 +10,7 @@
|
|||
, python-mpv-jsonipc
|
||||
, pywebview
|
||||
, tkinter
|
||||
, wrapGAppsHook
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
|
@ -20,6 +22,11 @@ buildPythonApplication rec {
|
|||
sha256 = "sha256-JiSC6WjrLsWk3/m/EHq7KNXaJ6rqT2fG9TT1jPvYlK0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
wrapGAppsHook
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
jellyfin-apiclient-python
|
||||
mpv
|
||||
|
@ -52,6 +59,12 @@ buildPythonApplication rec {
|
|||
--replace "notify_updates: bool = True" "notify_updates: bool = False"
|
||||
'';
|
||||
|
||||
# needed for pystray to access appindicator using GI
|
||||
preFixup = ''
|
||||
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
||||
'';
|
||||
dontWrapGApps = true;
|
||||
|
||||
# no tests
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "jellyfin_mpv_shim" ];
|
||||
|
|
Loading…
Reference in a new issue