3 buildPythonApplication,
13 gobject-introspection,
14 mpv-shim-default-shaders,
17 buildPythonApplication rec {
18 pname = "plex-mpv-shim";
21 src = fetchFromGitHub {
24 rev = "refs/tags/v${version}";
25 sha256 = "sha256-hUGKOJEDZMK5uhHoevFt1ay6QQEcoN4F8cPxln5uMRo=";
29 # pull in upstream commit to fix python-mpv dependency name -- remove when version > 1.11.0
31 url = "https://github.com/iwalton3/plex-mpv-shim/commit/d8643123a8ec79216e02850b08f63b06e4e0a2ea.diff";
32 hash = "sha256-nc+vwYnAtMjVzL2fIQeTAqhf3HBseL+2pFEtv8zNUXo=";
41 propagatedBuildInputs = [
49 # needed for pystray to access appindicator using GI
51 makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
56 # put link to shaders where upstream package expects them
57 ln -s ${mpv-shim-default-shaders}/share/mpv-shim-default-shaders $out/${python.sitePackages}/plex_mpv_shim/default_shader_pack
60 # does not contain tests
64 homepage = "https://github.com/iwalton3/plex-mpv-shim";
65 description = "Allows casting of videos to MPV via the Plex mobile and web app";
66 maintainers = with maintainers; [ devusb ];
67 license = licenses.mit;
68 platforms = platforms.linux;
69 mainProgram = "plex-mpv-shim";