1 { lib, buildKodiAddon, fetchFromGitHub, steam, which, xdotool, dos2unix, wmctrl }:
3 pname = "steam-launcher";
4 namespace = "script.steam.launcher";
7 src = fetchFromGitHub rec {
9 repo = owner + "-xbmc-repo";
10 rev = "d5cea4b590b0ff08ac169b757946b7cb5145b983";
11 sha256 = "sha256-arBMMOoHQuHRcJ7eXD1jvA45Svei7c0srcBZkdAzqY0=";
14 propagatedBuildInputs = [ steam which xdotool ];
17 substituteInPlace $out/share/kodi/addons/script.steam.launcher/resources/main.py \
18 --replace "\"which\"" "\"${which}/bin/which\"" \
19 --replace "\"xdotool\"" "\"${xdotool}/bin/xdotool\"" \
20 --replace "\"wmctrl\"" "\"${wmctrl}/bin/wmctrl\""
21 ${dos2unix}/bin/dos2unix $out/share/kodi/addons/script.steam.launcher/resources/scripts/steam-launcher.sh
25 homepage = "https://forum.kodi.tv/showthread.php?tid=157499";
26 description = "Launch Steam in Big Picture Mode from Kodi";
28 This add-on will close/minimise Kodi, launch Steam in Big
29 Picture Mode and when Steam BPM is exited (either by quitting
30 Steam or returning to the desktop) Kodi will
31 restart/maximise. Running pre/post Steam scripts can be
32 configured via the addon.
34 license = licenses.gpl2Only;
35 maintainers = teams.kodi.members;