From e33b26ce2f32fe616c0db03ee4f78b9b8c26b4b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edward=20Tj=C3=B6rnhammar?= Date: Sun, 22 Nov 2015 10:09:40 +0100 Subject: [PATCH] kodiPlugins.steam-launcher: init plugin at 3.1.1 --- pkgs/applications/video/kodi/plugins.nix | 33 ++++++++++++++++++++++-- pkgs/top-level/all-packages.nix | 1 + 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/video/kodi/plugins.nix b/pkgs/applications/video/kodi/plugins.nix index e32558696bc..817377d900b 100644 --- a/pkgs/applications/video/kodi/plugins.nix +++ b/pkgs/applications/video/kodi/plugins.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, kodi }: +{ stdenv, fetchFromGitHub, kodi, steam }: let @@ -87,7 +87,7 @@ in owner = "nilzen"; repo = "xbmc-" + plugin; rev = "b60cc1164d0077451be935d0d1a26f2d29b0f589"; - sha256 = "1bx2c3z8rbkk75hykpmls956hfkwvsm4d8gvlrh63s8zimlwgv7k"; + sha256 = "0rdmrgjlzhnrpmhgqvf2947i98s51r0pjbnwrhw67nnqkylss5dj"; }; meta = with stdenv.lib; { @@ -105,4 +105,33 @@ in }; + steam-launcher = (mkKodiPlugin rec { + + plugin = "steam-launcher"; + namespace = "script.steam.launcher"; + version = "3.1.1"; + + src = fetchFromGitHub rec { + owner = "teeedubb"; + repo = owner + "-xbmc-repo"; + rev = "bb66db7c4927619485373699ff865a9b00e253bb"; + sha256 = "1skjkz0h6nkg04vylhl4zzavf5lba75j0qbgdhb9g7h0a98jz7s4"; + }; + + meta = with stdenv.lib; { + homepage = "http://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. + ''; + maintainers = with maintainers; [ edwtjo ]; + }; + }).override { + propagatedBuildinputs = [ steam ]; + }; + } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 254f77d69dd..327e970e4be 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13524,6 +13524,7 @@ let ++ optional (config.kodi.enableAdvancedLauncher or false) advanced-launcher ++ optional (config.kodi.enableGenesis or false) genesis ++ optional (config.kodi.enableSVTPlay or false) svtplay + ++ optional (config.kodi.enableSteamLauncher or false) steam-launcher ); };