2016-02-21 15:15:13 +00:00
|
|
|
{ stdenv, fetchurl, fetchFromGitHub, fetchpatch, cmake, kodi, steam, libcec_platform, tinyxml, unzip }:
|
2015-01-19 21:14:36 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2015-11-30 22:00:09 +00:00
|
|
|
pluginDir = "/share/kodi/addons";
|
|
|
|
|
|
|
|
kodi-platform = stdenv.mkDerivation rec {
|
|
|
|
project = "kodi-platform";
|
|
|
|
version = "15.2";
|
|
|
|
name = "${project}-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xbmc";
|
|
|
|
repo = project;
|
|
|
|
rev = "45d6ad1984fdb1dc855076ff18484dbec33939d1";
|
|
|
|
sha256 = "1fai33mwyv5ab47b16i692g7a3vcnmxavx13xin2gh16y0qm62hi";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmake kodi libcec_platform tinyxml ];
|
|
|
|
};
|
2015-01-19 21:14:36 +00:00
|
|
|
|
|
|
|
mkKodiPlugin = { plugin, namespace, version, src, meta, ... }:
|
|
|
|
stdenv.lib.makeOverridable stdenv.mkDerivation rec {
|
|
|
|
inherit src meta;
|
|
|
|
name = "kodi-plugin-${plugin}-${version}";
|
|
|
|
passthru = {
|
|
|
|
kodiPlugin = pluginDir;
|
|
|
|
namespace = namespace;
|
|
|
|
};
|
|
|
|
dontStrip = true;
|
|
|
|
installPhase = ''
|
|
|
|
d=$out${pluginDir}/${namespace}
|
|
|
|
mkdir -p $d
|
|
|
|
sauce="."
|
|
|
|
[ -d ${namespace} ] && sauce=${namespace}
|
2015-03-11 18:52:35 +00:00
|
|
|
cp -R "$sauce/"* $d
|
2015-01-19 21:14:36 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
|
|
|
|
|
|
|
advanced-launcher = mkKodiPlugin rec {
|
|
|
|
|
|
|
|
plugin = "advanced-launcher";
|
|
|
|
namespace = "plugin.program.advanced.launcher";
|
|
|
|
version = "2.5.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2015-12-01 09:01:49 +00:00
|
|
|
owner = "edwtjo";
|
|
|
|
repo = plugin;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "142vvgs37asq5m54xqhjzqvgmb0xlirvm0kz6lxaqynp0vvgrkx2";
|
2015-01-19 21:14:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "http://forum.kodi.tv/showthread.php?tid=85724";
|
|
|
|
description = "A program launcher for Kodi";
|
|
|
|
longDescription = ''
|
|
|
|
Advanced Launcher allows you to start any Linux, Windows and
|
|
|
|
OS X external applications (with command line support or not)
|
|
|
|
directly from the Kodi GUI. Advanced Launcher also give you
|
|
|
|
the possibility to edit, download (from Internet resources)
|
|
|
|
and manage all the meta-data (informations and images) related
|
|
|
|
to these applications.
|
|
|
|
'';
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2016-02-21 15:15:13 +00:00
|
|
|
genesis = (mkKodiPlugin rec {
|
2015-01-19 21:14:36 +00:00
|
|
|
|
|
|
|
plugin = "genesis";
|
|
|
|
namespace = "plugin.video.genesis";
|
2016-02-21 15:15:13 +00:00
|
|
|
version = "5.1.4";
|
2015-01-19 21:14:36 +00:00
|
|
|
|
2016-02-21 15:15:13 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://offshoregit.com/lambda81/lambda-repo/${namespace}/${namespace}-${version}.zip";
|
|
|
|
sha256 = "0b0pdzgg42mgxgkb6sb83rldh4k19c3l9z7g2wnvxm3s2p6rjy3v";
|
2015-01-19 21:14:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "http://forums.tvaddons.ag/forums/148-lambda-s-kodi-addons";
|
|
|
|
description = "The origins of streaming";
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
|
|
};
|
2016-02-21 15:15:13 +00:00
|
|
|
}).override { buildInputs = [ unzip ]; };
|
2015-01-19 21:14:36 +00:00
|
|
|
|
2016-03-19 21:49:04 +00:00
|
|
|
hyper-launcher = let
|
|
|
|
pname = "hyper-launcher";
|
|
|
|
version = "1.2.0";
|
|
|
|
src = fetchFromGitHub rec {
|
|
|
|
name = pname + "-" + version + ".tar.gz";
|
|
|
|
owner = "teeedubb";
|
|
|
|
repo = owner + "-xbmc-repo";
|
|
|
|
rev = "9bd170407436e736d2d709f8af9968238594669c";
|
|
|
|
sha256 = "019nqf7kixicnrzkg671x4yq723igjkhfl8hz5bifi9gx2qcy8hy";
|
|
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://forum.kodi.tv/showthread.php?tid=258159;
|
|
|
|
description = "A ROM launcher for Kodi that uses HyperSpin assets.";
|
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
service = mkKodiPlugin {
|
|
|
|
plugin = pname + "-service";
|
|
|
|
namespace = "service.hyper.launcher";
|
|
|
|
inherit version src meta;
|
|
|
|
};
|
|
|
|
plugin = mkKodiPlugin {
|
|
|
|
plugin = pname;
|
|
|
|
namespace = "plugin.hyper.launcher";
|
|
|
|
inherit version src meta;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-02-21 15:15:54 +00:00
|
|
|
salts = mkKodiPlugin rec {
|
2016-01-13 13:27:04 +00:00
|
|
|
|
|
|
|
plugin = "salts";
|
|
|
|
namespace = "plugin.video.salts";
|
2016-03-19 21:49:09 +00:00
|
|
|
version = "2.0.19";
|
2016-01-13 13:27:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
name = plugin + "-" + version + ".tar.gz";
|
|
|
|
owner = "tknorris";
|
|
|
|
repo = plugin;
|
2016-03-19 21:49:09 +00:00
|
|
|
rev = "9c1882bad35cab9e62687847e097c37a576b900d";
|
|
|
|
sha256 = "0saq578xsxvyg1v8jg2m3131hfrr95gv74b2npxr7g715yyx5bjq";
|
2016-01-13 13:27:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/tknorris/salts";
|
|
|
|
description = "Stream All The Sources";
|
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-01-19 21:14:36 +00:00
|
|
|
svtplay = mkKodiPlugin rec {
|
|
|
|
|
|
|
|
plugin = "svtplay";
|
|
|
|
namespace = "plugin.video.svtplay";
|
2016-04-03 11:07:35 +01:00
|
|
|
version = "4.0.24";
|
2015-01-19 21:14:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2016-01-12 20:38:58 +00:00
|
|
|
name = plugin + "-" + version + ".tar.gz";
|
2015-01-19 21:14:36 +00:00
|
|
|
owner = "nilzen";
|
|
|
|
repo = "xbmc-" + plugin;
|
2016-04-03 11:07:35 +01:00
|
|
|
rev = "e66e2af6529e3ffd030ad486c849894a9ffdeb45";
|
|
|
|
sha256 = "01nq6gac83q6ayhqcj1whvk58pzrm1haw801s321f4vc8gswag56";
|
2015-01-19 21:14:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-03-11 18:52:35 +00:00
|
|
|
homepage = "http://forum.kodi.tv/showthread.php?tid=67110";
|
2015-01-19 21:14:36 +00:00
|
|
|
description = "Watch content from SVT Play";
|
|
|
|
longDescription = ''
|
|
|
|
With this addon you can stream content from SVT Play
|
|
|
|
(svtplay.se). The plugin fetches the video URL from the SVT
|
|
|
|
Play website and feeds it to the Kodi video player. HLS (m3u8)
|
|
|
|
is the preferred video format by the plugin.
|
|
|
|
'';
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2015-11-22 09:09:40 +00:00
|
|
|
steam-launcher = (mkKodiPlugin rec {
|
2016-01-13 13:27:04 +00:00
|
|
|
|
2015-11-22 09:09:40 +00:00
|
|
|
plugin = "steam-launcher";
|
|
|
|
namespace = "script.steam.launcher";
|
2016-03-19 21:49:14 +00:00
|
|
|
version = "3.1.4";
|
2015-11-22 09:09:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub rec {
|
|
|
|
owner = "teeedubb";
|
|
|
|
repo = owner + "-xbmc-repo";
|
2016-03-19 21:49:14 +00:00
|
|
|
rev = "db67704c3e16bdcdd3bdfe2926c609f1f6bdc4fb";
|
|
|
|
sha256 = "001a7zs3a4jfzj8ylxv2klc33mipmqsd5aqax7q81fbgwdlndvbm";
|
2015-11-22 09:09:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
|
2016-03-19 21:48:58 +00:00
|
|
|
pdfreader = mkKodiPlugin rec {
|
|
|
|
plugin = "pdfreader";
|
|
|
|
namespace = "plugin.image.pdf";
|
|
|
|
version = "1.0.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub rec {
|
|
|
|
name = plugin + "-" + version + ".tar.gz";
|
|
|
|
owner = "teeedubb";
|
|
|
|
repo = owner + "-xbmc-repo";
|
|
|
|
rev = "0a405b95208ced8a1365ad3193eade8d1c2117ce";
|
|
|
|
sha256 = "1iv7d030z3xvlflvp4p5v3riqnwg9g0yvzxszy63v1a6x5kpjkqa";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://forum.kodi.tv/showthread.php?tid=187421;
|
|
|
|
descritpion = "A comic book reader";
|
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-11-30 22:00:09 +00:00
|
|
|
pvr-hts = (mkKodiPlugin rec {
|
|
|
|
plugin = "pvr-hts";
|
|
|
|
namespace = "pvr.hts";
|
2016-03-01 12:52:30 +00:00
|
|
|
version = "2.2.13";
|
2015-11-30 22:00:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kodi-pvr";
|
|
|
|
repo = "pvr.hts";
|
2016-03-01 12:52:30 +00:00
|
|
|
rev = "3274354511e970e2101c2aa437001b2f245f80da";
|
|
|
|
sha256 = "0i7cb61pjv6vbj3x96cm1n4w91mvc8z6lxa8ykjasrrbi95ph7ld";
|
2015-11-30 22:00:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/kodi-pvr/pvr.hts;
|
|
|
|
description = "Kodi's Tvheadend HTSP client addon";
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ page ];
|
|
|
|
};
|
|
|
|
}).override {
|
|
|
|
buildInputs = [ cmake kodi libcec_platform kodi-platform ];
|
|
|
|
|
|
|
|
# disables check ensuring install prefix is that of kodi
|
|
|
|
cmakeFlags = [ "-DOVERRIDE_PATHS=1" ];
|
|
|
|
|
|
|
|
# kodi checks for plugin .so libs existance in the addon folder (share/...)
|
|
|
|
# and the non-wrapped kodi lib/... folder before even trying to dlopen
|
|
|
|
# them. Symlinking .so, as setting LD_LIBRARY_PATH is of no use
|
|
|
|
installPhase = ''
|
|
|
|
make install
|
2016-05-26 18:24:57 +01:00
|
|
|
ln -s $out/lib/addons/pvr.hts/pvr.hts.so* $out/share/kodi/addons/pvr.hts
|
2015-11-30 22:00:09 +00:00
|
|
|
'';
|
|
|
|
};
|
2016-03-19 21:48:52 +00:00
|
|
|
|
|
|
|
t0mm0-common = mkKodiPlugin rec {
|
|
|
|
|
|
|
|
plugin = "t0mm0-common";
|
|
|
|
namespace = "script.module.t0mm0.common";
|
|
|
|
version = "0.0.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
name = plugin + "-" + version + ".tar.gz";
|
|
|
|
owner = "t0mm0";
|
|
|
|
repo = "xbmc-urlresolver";
|
|
|
|
rev = "ab16933a996a9e77b572953c45e70900c723d6e1";
|
|
|
|
sha256 = "1yd00md8iirizzaiqy6fv1n2snydcpqvp2f9irzfzxxi3i9asb93";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/t0mm0/xbmc-urlresolver/";
|
|
|
|
description = "t0mm0's common stuff";
|
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
urlresolver = (mkKodiPlugin rec {
|
|
|
|
|
|
|
|
plugin = "urlresolver";
|
|
|
|
namespace = "script.module.urlresolver";
|
|
|
|
version = "2.10.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
name = plugin + "-" + version + ".tar.gz";
|
|
|
|
owner = "Eldorados";
|
|
|
|
repo = namespace;
|
|
|
|
rev = "72b9d978d90d54bb7a0224a1fd2407143e592984";
|
|
|
|
sha256 = "0r5glfvgy9ri3ar9zdkvix8lalr1kfp22fap2pqp739b6k2iqir6";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/Eldorados/urlresolver";
|
|
|
|
description = "Resolve common video host URL's to be playable in XBMC/Kodi";
|
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
|
|
};
|
|
|
|
}).override {
|
|
|
|
postPatch = "sed -i -e 's,settings_file = os.path.join(addon_path,settings_file = os.path.join(profile_path,g' lib/urlresolver/common.py";
|
|
|
|
};
|
2015-10-26 15:57:24 +00:00
|
|
|
}
|