biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / video / kodi / addons / steam-launcher / default.nix
blobef6b866e7e337886677c98cf702ebfcc2ca4b063
1 { lib, buildKodiAddon, fetchFromGitHub, steam, which, xdotool, dos2unix, wmctrl }:
2 buildKodiAddon {
3   pname = "steam-launcher";
4   namespace = "script.steam.launcher";
5   version = "3.5.1";
7   src = fetchFromGitHub rec {
8     owner = "teeedubb";
9     repo = owner + "-xbmc-repo";
10     rev = "d5cea4b590b0ff08ac169b757946b7cb5145b983";
11     sha256 = "sha256-arBMMOoHQuHRcJ7eXD1jvA45Svei7c0srcBZkdAzqY0=";
12   };
14   propagatedBuildInputs = [ steam which xdotool ];
16   postInstall = ''
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
22   '';
24   meta = with lib; {
25     homepage = "https://forum.kodi.tv/showthread.php?tid=157499";
26     description = "Launch Steam in Big Picture Mode from Kodi";
27     longDescription = ''
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.
33     '';
34     license = licenses.gpl2Only;
35     maintainers = teams.kodi.members;
36   };