python312Packages.llama-index: 0.12.9 -> 0.12.9.post1 (#371957)
[NixPkgs.git] / pkgs / applications / video / kodi / addons / steam-launcher / default.nix
blob678e2757d6fa6568e9d0f624cde8bb6b0129b5e0
2   lib,
3   buildKodiAddon,
4   fetchFromGitHub,
5   steam,
6   which,
7   xdotool,
8   dos2unix,
9   wmctrl,
11 buildKodiAddon {
12   pname = "steam-launcher";
13   namespace = "script.steam.launcher";
14   version = "3.5.1";
16   src = fetchFromGitHub rec {
17     owner = "teeedubb";
18     repo = owner + "-xbmc-repo";
19     rev = "d5cea4b590b0ff08ac169b757946b7cb5145b983";
20     sha256 = "sha256-arBMMOoHQuHRcJ7eXD1jvA45Svei7c0srcBZkdAzqY0=";
21   };
23   propagatedBuildInputs = [
24     steam
25     which
26     xdotool
27   ];
29   postInstall = ''
30     substituteInPlace $out/share/kodi/addons/script.steam.launcher/resources/main.py \
31       --replace "\"which\"" "\"${which}/bin/which\"" \
32       --replace "\"xdotool\"" "\"${xdotool}/bin/xdotool\"" \
33       --replace "\"wmctrl\"" "\"${wmctrl}/bin/wmctrl\""
34     ${dos2unix}/bin/dos2unix $out/share/kodi/addons/script.steam.launcher/resources/scripts/steam-launcher.sh
35   '';
37   meta = with lib; {
38     homepage = "https://forum.kodi.tv/showthread.php?tid=157499";
39     description = "Launch Steam in Big Picture Mode from Kodi";
40     longDescription = ''
41       This add-on will close/minimise Kodi, launch Steam in Big
42       Picture Mode and when Steam BPM is exited (either by quitting
43       Steam or returning to the desktop) Kodi will
44       restart/maximise. Running pre/post Steam scripts can be
45       configured via the addon.
46     '';
47     license = licenses.gpl2Only;
48     maintainers = teams.kodi.members;
49   };