Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

51 lines
1.4 KiB
Nix

{
lib,
buildKodiAddon,
fetchFromGitHub,
steam,
which,
xdotool,
dos2unix,
wmctrl,
}:
buildKodiAddon {
pname = "steam-launcher";
namespace = "script.steam.launcher";
version = "3.5.1";
src = fetchFromGitHub rec {
owner = "teeedubb";
repo = owner + "-xbmc-repo";
rev = "d5cea4b590b0ff08ac169b757946b7cb5145b983";
sha256 = "sha256-arBMMOoHQuHRcJ7eXD1jvA45Svei7c0srcBZkdAzqY0=";
};
propagatedBuildInputs = [
steam
which
xdotool
];
postInstall = ''
substituteInPlace $out/share/kodi/addons/script.steam.launcher/resources/main.py \
--replace "\"which\"" "\"${which}/bin/which\"" \
--replace "\"xdotool\"" "\"${xdotool}/bin/xdotool\"" \
--replace "\"wmctrl\"" "\"${wmctrl}/bin/wmctrl\""
${dos2unix}/bin/dos2unix $out/share/kodi/addons/script.steam.launcher/resources/scripts/steam-launcher.sh
'';
meta = with lib; {
homepage = "https://forum.kodi.tv/showthread.php?tid=157499";
description = "Launch Steam in Big Picture Mode from Kodi";
longDescription = ''
This add-on will close/minimise Kodi, launch Steam in Big
Picture Mode and when Steam BPM is exited (either by quitting
Steam or returning to the desktop) Kodi will
restart/maximise. Running pre/post Steam scripts can be
configured via the addon.
'';
license = licenses.gpl2Only;
teams = [ teams.kodi ];
};
}