Merge pull request #270280 from Soupstraw/kodi-steam-launcher-fixup

kodiPackages.steam-launcher: fix paths in the scripts
This commit is contained in:
Aaron Andersen 2023-11-27 21:03:55 -05:00 committed by GitHub
commit 337f0451e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ lib, buildKodiAddon, fetchFromGitHub, steam }:
{ lib, buildKodiAddon, fetchFromGitHub, steam, which, xdotool, dos2unix, wmctrl }:
buildKodiAddon {
pname = "steam-launcher";
namespace = "script.steam.launcher";
@ -7,11 +7,19 @@ buildKodiAddon {
src = fetchFromGitHub rec {
owner = "teeedubb";
repo = owner + "-xbmc-repo";
rev = "8260bf9b464846a1f1965da495d2f2b7ceb81d55";
sha256 = "1fj3ry5s44nf1jzxk4bmnpa4b9p23nrpmpj2a4i6xf94h7jl7p5k";
rev = "d5cea4b590b0ff08ac169b757946b7cb5145b983";
sha256 = "sha256-arBMMOoHQuHRcJ7eXD1jvA45Svei7c0srcBZkdAzqY0=";
};
propagatedBuildInputs = [ steam ];
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";