2019-06-16 21:59:06 +02:00
|
|
|
{ stdenv, callPackage, fetchFromGitHub
|
2019-02-23 16:04:07 +01:00
|
|
|
, cmake, kodiPlain, libcec_platform, tinyxml, rapidxml
|
2018-09-06 21:40:28 +02:00
|
|
|
, steam, libusb, pcre-cpp, jsoncpp, libhdhomerun, zlib
|
2019-02-27 18:31:53 +01:00
|
|
|
, python2Packages, expat, glib, nspr, nss, openssl
|
2019-02-27 18:35:02 +01:00
|
|
|
, libssh, libarchive, lzma, bzip2, lz4, lzo }:
|
2015-01-19 22:14:36 +01:00
|
|
|
|
2018-09-06 21:40:22 +02:00
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
let self = rec {
|
2015-01-19 22:14:36 +01:00
|
|
|
|
2018-09-06 21:40:21 +02:00
|
|
|
pluginDir = "/share/kodi/addons";
|
2019-02-23 03:07:07 +01:00
|
|
|
rel = "Leia";
|
2018-09-06 21:40:21 +02:00
|
|
|
|
2018-09-06 21:40:22 +02:00
|
|
|
kodi = kodiPlain;
|
|
|
|
|
|
|
|
# Convert derivation to a kodi module. Stolen from ../../../top-level/python-packages.nix
|
|
|
|
toKodiPlugin = drv: drv.overrideAttrs(oldAttrs: {
|
|
|
|
# Use passthru in order to prevent rebuilds when possible.
|
|
|
|
passthru = (oldAttrs.passthru or {})// {
|
|
|
|
kodiPluginFor = kodi;
|
|
|
|
requiredKodiPlugins = requiredKodiPlugins drv.propagatedBuildInputs;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
# Check whether a derivation provides a Kodi plugin.
|
|
|
|
hasKodiPlugin = drv: drv ? kodiPluginFor && drv.kodiPluginFor == kodi;
|
|
|
|
|
|
|
|
# Get list of required Kodi plugins given a list of derivations.
|
|
|
|
requiredKodiPlugins = drvs: let
|
|
|
|
modules = filter hasKodiPlugin drvs;
|
|
|
|
in unique (modules ++ concatLists (catAttrs "requiredKodiPlugins" modules));
|
|
|
|
|
|
|
|
kodiWithPlugins = func: callPackage ./wrapper.nix {
|
|
|
|
inherit kodi;
|
|
|
|
plugins = requiredKodiPlugins (func self);
|
|
|
|
};
|
|
|
|
|
2018-09-06 21:40:21 +02:00
|
|
|
kodi-platform = stdenv.mkDerivation rec {
|
|
|
|
project = "kodi-platform";
|
|
|
|
version = "17.1";
|
|
|
|
name = "${project}-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xbmc";
|
|
|
|
repo = project;
|
|
|
|
rev = "c8188d82678fec6b784597db69a68e74ff4986b5";
|
|
|
|
sha256 = "1r3gs3c6zczmm66qcxh9mr306clwb3p7ykzb70r3jv5jqggiz199";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmake kodiPlain libcec_platform tinyxml ];
|
|
|
|
};
|
|
|
|
|
2018-09-06 21:40:22 +02:00
|
|
|
mkKodiPlugin = { plugin, namespace, version, sourceDir ? null, ... }@args:
|
2019-08-13 23:52:01 +02:00
|
|
|
toKodiPlugin (stdenv.mkDerivation ({
|
2018-09-06 21:40:21 +02:00
|
|
|
name = "kodi-plugin-${plugin}-${version}";
|
|
|
|
|
|
|
|
dontStrip = true;
|
|
|
|
|
2019-02-23 03:08:43 +01:00
|
|
|
extraRuntimeDependencies = [ ];
|
|
|
|
|
2018-09-06 21:40:21 +02:00
|
|
|
installPhase = ''
|
2019-04-24 05:48:22 +02:00
|
|
|
${if sourceDir == null then "" else "cd $src/$sourceDir"}
|
2018-09-06 21:40:21 +02:00
|
|
|
d=$out${pluginDir}/${namespace}
|
|
|
|
mkdir -p $d
|
|
|
|
sauce="."
|
|
|
|
[ -d ${namespace} ] && sauce=${namespace}
|
|
|
|
cp -R "$sauce/"* $d
|
|
|
|
'';
|
2018-09-06 21:40:22 +02:00
|
|
|
} // args));
|
2018-09-06 21:40:21 +02:00
|
|
|
|
2018-10-29 21:23:17 +01:00
|
|
|
mkKodiABIPlugin = { plugin, namespace, version, extraBuildInputs ? [],
|
|
|
|
extraRuntimeDependencies ? [], extraInstallPhase ? "", ... }@args:
|
2019-08-13 23:52:01 +02:00
|
|
|
toKodiPlugin (stdenv.mkDerivation ({
|
2018-09-06 21:40:21 +02:00
|
|
|
name = "kodi-plugin-${plugin}-${version}";
|
|
|
|
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
buildInputs = [ cmake kodiPlain kodi-platform libcec_platform ]
|
|
|
|
++ extraBuildInputs;
|
|
|
|
|
2019-02-23 03:08:43 +01:00
|
|
|
inherit extraRuntimeDependencies;
|
|
|
|
|
2018-09-06 21:40:21 +02:00
|
|
|
# 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 = let n = namespace; in ''
|
|
|
|
make install
|
|
|
|
ln -s $out/lib/addons/${n}/${n}.so.${version} $out${pluginDir}/${n}/${n}.so.${version}
|
2018-10-29 21:23:17 +01:00
|
|
|
${extraInstallPhase}
|
2018-09-06 21:40:21 +02:00
|
|
|
'';
|
2018-09-06 21:40:22 +02:00
|
|
|
} // args));
|
2018-09-06 21:40:21 +02:00
|
|
|
|
2015-01-19 22:14:36 +01:00
|
|
|
advanced-launcher = mkKodiPlugin rec {
|
|
|
|
|
|
|
|
plugin = "advanced-launcher";
|
|
|
|
namespace = "plugin.program.advanced.launcher";
|
|
|
|
version = "2.5.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2015-12-01 10:01:49 +01:00
|
|
|
owner = "edwtjo";
|
|
|
|
repo = plugin;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "142vvgs37asq5m54xqhjzqvgmb0xlirvm0kz6lxaqynp0vvgrkx2";
|
2015-01-19 22:14:36 +01:00
|
|
|
};
|
|
|
|
|
2018-09-06 21:40:22 +02:00
|
|
|
meta = {
|
2017-08-02 23:50:51 +02:00
|
|
|
homepage = https://forum.kodi.tv/showthread.php?tid=85724;
|
2015-01-19 22:14:36 +01:00
|
|
|
description = "A program launcher for Kodi";
|
|
|
|
longDescription = ''
|
|
|
|
Advanced Launcher allows you to start any Linux, Windows and
|
2017-08-07 00:05:18 +02:00
|
|
|
macOS external applications (with command line support or not)
|
2015-01-19 22:14:36 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2017-06-05 17:10:31 +02:00
|
|
|
advanced-emulator-launcher = mkKodiPlugin rec {
|
|
|
|
|
|
|
|
plugin = "advanced-emulator-launcher";
|
|
|
|
namespace = "plugin.program.advanced.emulator.launcher";
|
|
|
|
version = "0.9.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Wintermute0110";
|
|
|
|
repo = namespace;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1sv9z77jj6bam6llcnd9b3dgkbvhwad2m1v541rv3acrackms2z2";
|
|
|
|
};
|
|
|
|
|
2018-09-06 21:40:22 +02:00
|
|
|
meta = {
|
2017-08-02 23:50:51 +02:00
|
|
|
homepage = https://forum.kodi.tv/showthread.php?tid=287826;
|
2017-06-05 17:10:31 +02:00
|
|
|
description = "A program launcher for Kodi";
|
|
|
|
longDescription = ''
|
|
|
|
Advanced Emulator Launcher is a multi-emulator front-end for Kodi
|
|
|
|
scalable to collections of thousands of ROMs. Includes offline scrapers
|
|
|
|
for MAME and No-Intro ROM sets and also supports scrapping ROM metadata
|
|
|
|
and artwork online. ROM auditing for No-Intro ROMs using No-Intro XML
|
|
|
|
DATs. Launching of games and standalone applications is also available.
|
|
|
|
'';
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2016-11-06 12:00:28 +01:00
|
|
|
controllers = let
|
|
|
|
pname = "game-controller";
|
|
|
|
version = "1.0.3";
|
2015-01-19 22:14:36 +01:00
|
|
|
|
2016-11-06 12:00:28 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kodi-game";
|
|
|
|
repo = "kodi-game-controllers";
|
|
|
|
rev = "01acb5b6e8b85392b3cb298b034aadb1b24ccf18";
|
|
|
|
sha256 = "0sbc0w0fwbp7rbmbgb6a1kglhnn5g85hijcbbvf5x6jdq9v3f1qb";
|
|
|
|
};
|
|
|
|
|
2018-09-06 21:40:22 +02:00
|
|
|
meta = {
|
2016-11-06 12:00:28 +01:00
|
|
|
description = "Add support for different gaming controllers.";
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
|
|
};
|
|
|
|
|
|
|
|
mkController = controller: {
|
2019-08-13 23:52:01 +02:00
|
|
|
${controller} = mkKodiPlugin rec {
|
2016-11-06 12:00:28 +01:00
|
|
|
plugin = pname + "-" + controller;
|
|
|
|
namespace = "game.controller." + controller;
|
|
|
|
sourceDir = "addons/" + namespace;
|
|
|
|
inherit version src meta;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in (mkController "default")
|
|
|
|
// (mkController "dreamcast")
|
|
|
|
// (mkController "gba")
|
|
|
|
// (mkController "genesis")
|
|
|
|
// (mkController "mouse")
|
|
|
|
// (mkController "n64")
|
|
|
|
// (mkController "nes")
|
|
|
|
// (mkController "ps")
|
|
|
|
// (mkController "snes");
|
|
|
|
|
2016-03-19 22:49:04 +01:00
|
|
|
hyper-launcher = let
|
|
|
|
pname = "hyper-launcher";
|
2016-11-06 12:00:28 +01:00
|
|
|
version = "1.5.2";
|
2016-03-19 22:49:04 +01:00
|
|
|
src = fetchFromGitHub rec {
|
|
|
|
name = pname + "-" + version + ".tar.gz";
|
|
|
|
owner = "teeedubb";
|
|
|
|
repo = owner + "-xbmc-repo";
|
2016-11-06 12:00:28 +01:00
|
|
|
rev = "f958ba93fe85b9c9025b1745d89c2db2e7dd9bf6";
|
|
|
|
sha256 = "1dvff24fbas25k5kvca4ssks9l1g5rfa3hl8lqxczkaqi3pp41j5";
|
2016-03-19 22:49:04 +01:00
|
|
|
};
|
2018-09-06 21:40:22 +02:00
|
|
|
meta = {
|
2017-08-02 23:50:51 +02:00
|
|
|
homepage = https://forum.kodi.tv/showthread.php?tid=258159;
|
2016-03-19 22:49:04 +01:00
|
|
|
description = "A ROM launcher for Kodi that uses HyperSpin assets.";
|
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
service = mkKodiPlugin {
|
|
|
|
plugin = pname + "-service";
|
2016-11-06 12:00:28 +01:00
|
|
|
version = "1.2.1";
|
2016-03-19 22:49:04 +01:00
|
|
|
namespace = "service.hyper.launcher";
|
2016-11-06 12:00:28 +01:00
|
|
|
inherit src meta;
|
2016-03-19 22:49:04 +01:00
|
|
|
};
|
|
|
|
plugin = mkKodiPlugin {
|
|
|
|
plugin = pname;
|
|
|
|
namespace = "plugin.hyper.launcher";
|
|
|
|
inherit version src meta;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-06-05 17:12:57 +02:00
|
|
|
joystick = mkKodiABIPlugin rec {
|
|
|
|
namespace = "peripheral.joystick";
|
2019-02-23 16:04:07 +01:00
|
|
|
version = "1.4.7";
|
2017-06-05 17:12:57 +02:00
|
|
|
plugin = namespace;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-02-23 16:04:07 +01:00
|
|
|
owner = "xbmc";
|
2017-06-05 17:12:57 +02:00
|
|
|
repo = namespace;
|
2019-02-23 16:04:07 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "03gsp4kg41s3n4ib4wsv7m3krfipgwc2z07i4mnd5zvg0c4xrmap";
|
2017-06-05 17:12:57 +02:00
|
|
|
};
|
|
|
|
|
2018-09-06 21:40:22 +02:00
|
|
|
meta = {
|
2017-06-05 17:12:57 +02:00
|
|
|
description = "Binary addon for raw joystick input.";
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
|
|
};
|
|
|
|
|
|
|
|
extraBuildInputs = [ libusb pcre-cpp ];
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2018-09-06 21:40:26 +02:00
|
|
|
simpleplugin = mkKodiPlugin rec {
|
|
|
|
plugin = "simpleplugin";
|
|
|
|
namespace = "script.module.simpleplugin";
|
|
|
|
version = "2.3.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "romanvm";
|
|
|
|
repo = namespace;
|
|
|
|
rev = "v.${version}";
|
|
|
|
sha256 = "0myar8dqjigb75pcc8zx3i5z79p1ifgphgb82s5syqywk0zaxm3j";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = src.meta.homepage;
|
|
|
|
description = "Simpleplugin API";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-01-19 22:14:36 +01:00
|
|
|
svtplay = mkKodiPlugin rec {
|
|
|
|
|
|
|
|
plugin = "svtplay";
|
|
|
|
namespace = "plugin.video.svtplay";
|
2017-05-25 15:33:08 +02:00
|
|
|
version = "4.0.48";
|
2015-01-19 22:14:36 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2016-01-12 21:38:58 +01:00
|
|
|
name = plugin + "-" + version + ".tar.gz";
|
2015-01-19 22:14:36 +01:00
|
|
|
owner = "nilzen";
|
|
|
|
repo = "xbmc-" + plugin;
|
2017-05-25 15:33:08 +02:00
|
|
|
rev = "dc18ad002cd69257611d0032fba91f57bb199165";
|
|
|
|
sha256 = "0klk1jpjc243ak306k94mag4b4s17w68v69yb8lzzydszqkaqa7x";
|
2015-01-19 22:14:36 +01:00
|
|
|
};
|
|
|
|
|
2018-09-06 21:40:22 +02:00
|
|
|
meta = {
|
2017-08-02 23:50:51 +02:00
|
|
|
homepage = https://forum.kodi.tv/showthread.php?tid=67110;
|
2015-01-19 22:14:36 +01: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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2017-06-05 17:14:36 +02:00
|
|
|
steam-controller = mkKodiABIPlugin rec {
|
|
|
|
namespace = "peripheral.steamcontroller";
|
2019-02-23 16:04:07 +01:00
|
|
|
version = "0.10.0";
|
2017-06-05 17:14:36 +02:00
|
|
|
plugin = namespace;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kodi-game";
|
|
|
|
repo = namespace;
|
2019-02-23 16:04:07 +01:00
|
|
|
rev = "ea345392ab5aa4485f3a48d2037fa8a8e8ab82de";
|
|
|
|
sha256 = "1hbd8fdvn7xkr9csz1g9wah78nhnq1rkazl4zwa31y70830k3279";
|
2017-06-05 17:14:36 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
extraBuildInputs = [ libusb ];
|
|
|
|
|
2018-09-06 21:40:22 +02:00
|
|
|
meta = {
|
2017-06-05 17:14:36 +02:00
|
|
|
description = "Binary addon for steam controller.";
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
steam-launcher = mkKodiPlugin {
|
2016-01-13 14:27:04 +01:00
|
|
|
|
2015-11-22 10:09:40 +01:00
|
|
|
plugin = "steam-launcher";
|
|
|
|
namespace = "script.steam.launcher";
|
2016-03-19 22:49:14 +01:00
|
|
|
version = "3.1.4";
|
2015-11-22 10:09:40 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub rec {
|
|
|
|
owner = "teeedubb";
|
|
|
|
repo = owner + "-xbmc-repo";
|
2016-03-19 22:49:14 +01:00
|
|
|
rev = "db67704c3e16bdcdd3bdfe2926c609f1f6bdc4fb";
|
|
|
|
sha256 = "001a7zs3a4jfzj8ylxv2klc33mipmqsd5aqax7q81fbgwdlndvbm";
|
2015-11-22 10:09:40 +01:00
|
|
|
};
|
|
|
|
|
2018-09-06 21:40:22 +02:00
|
|
|
propagatedBuildInputs = [ steam ];
|
|
|
|
|
|
|
|
meta = {
|
2017-08-02 23:50:51 +02:00
|
|
|
homepage = https://forum.kodi.tv/showthread.php?tid=157499;
|
2015-11-22 10:09:40 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-03-19 22:48:58 +01: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";
|
|
|
|
};
|
|
|
|
|
2018-09-06 21:40:22 +02:00
|
|
|
meta = {
|
2017-08-02 23:50:51 +02:00
|
|
|
homepage = https://forum.kodi.tv/showthread.php?tid=187421;
|
2017-12-05 23:20:11 +01:00
|
|
|
description = "A comic book reader";
|
2016-03-19 22:48:58 +01:00
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-06-05 17:07:30 +02:00
|
|
|
pvr-hts = mkKodiABIPlugin rec {
|
|
|
|
|
2015-11-30 23:00:09 +01:00
|
|
|
plugin = "pvr-hts";
|
|
|
|
namespace = "pvr.hts";
|
2019-02-23 03:07:07 +01:00
|
|
|
version = "4.4.14";
|
2015-11-30 23:00:09 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kodi-pvr";
|
|
|
|
repo = "pvr.hts";
|
2019-02-23 03:07:07 +01:00
|
|
|
rev = "${version}-${rel}";
|
|
|
|
sha256 = "1bcwcwd2yjhw85yk6lyhf0iqiclrsz7r7vpbxgc650fwqbb146gr";
|
2015-11-30 23:00:09 +01:00
|
|
|
};
|
|
|
|
|
2018-09-06 21:40:22 +02:00
|
|
|
meta = {
|
2015-11-30 23:00:09 +01:00
|
|
|
homepage = https://github.com/kodi-pvr/pvr.hts;
|
|
|
|
description = "Kodi's Tvheadend HTSP client addon";
|
|
|
|
platforms = platforms.all;
|
2017-01-20 12:23:57 +01:00
|
|
|
maintainers = with maintainers; [ cpages ];
|
2015-11-30 23:00:09 +01:00
|
|
|
};
|
2017-06-05 17:07:30 +02:00
|
|
|
|
2015-11-30 23:00:09 +01:00
|
|
|
};
|
2017-04-30 22:28:50 +02:00
|
|
|
|
2017-06-05 17:07:30 +02:00
|
|
|
pvr-hdhomerun = mkKodiABIPlugin rec {
|
|
|
|
|
2017-04-30 22:28:50 +02:00
|
|
|
plugin = "pvr-hdhomerun";
|
|
|
|
namespace = "pvr.hdhomerun";
|
2019-02-23 16:04:07 +01:00
|
|
|
version = "3.5.0";
|
2017-04-30 22:28:50 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kodi-pvr";
|
|
|
|
repo = "pvr.hdhomerun";
|
2019-02-23 16:04:07 +01:00
|
|
|
rev = "${version}-${rel}";
|
|
|
|
sha256 = "1zrkvfn0im2qmvqm93pa3cg8xkxv61sxlj8nsz4r5z9v9nhqadf6";
|
2017-04-30 22:28:50 +02:00
|
|
|
};
|
|
|
|
|
2018-09-06 21:40:22 +02:00
|
|
|
meta = {
|
2017-04-30 22:28:50 +02:00
|
|
|
homepage = https://github.com/kodi-pvr/pvr.hdhomerun;
|
|
|
|
description = "Kodi's HDHomeRun PVR client addon";
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ titanous ];
|
|
|
|
};
|
2017-06-05 17:07:30 +02:00
|
|
|
|
|
|
|
extraBuildInputs = [ jsoncpp libhdhomerun ];
|
|
|
|
|
2017-04-30 22:28:50 +02:00
|
|
|
};
|
2018-02-24 16:47:18 +01:00
|
|
|
|
|
|
|
pvr-iptvsimple = mkKodiABIPlugin rec {
|
|
|
|
|
|
|
|
plugin = "pvr-iptvsimple";
|
|
|
|
namespace = "pvr.iptvsimple";
|
2019-02-23 16:04:07 +01:00
|
|
|
version = "3.5.7";
|
2018-02-24 16:47:18 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kodi-pvr";
|
|
|
|
repo = "pvr.iptvsimple";
|
2019-02-23 16:04:07 +01:00
|
|
|
rev = "${version}-${rel}";
|
|
|
|
sha256 = "17znib7c491h2ii4gagxradh0jyvgga0d548gbk4yjj2nc9qqc6d";
|
2018-02-24 16:47:18 +01:00
|
|
|
};
|
|
|
|
|
2018-09-06 21:40:22 +02:00
|
|
|
meta = {
|
2018-02-24 16:47:18 +01:00
|
|
|
homepage = https://github.com/kodi-pvr/pvr.iptvsimple;
|
|
|
|
description = "Kodi's IPTV Simple client addon";
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
};
|
|
|
|
|
2019-02-23 16:04:07 +01:00
|
|
|
extraBuildInputs = [ zlib rapidxml ];
|
2018-02-24 16:47:18 +01:00
|
|
|
};
|
2018-05-16 13:57:17 +02:00
|
|
|
|
|
|
|
osmc-skin = mkKodiPlugin rec {
|
|
|
|
|
|
|
|
plugin = "osmc-skin";
|
|
|
|
namespace = "skin.osmc";
|
2019-02-27 17:33:20 +01:00
|
|
|
version = "18.0.0";
|
2018-05-16 13:57:17 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "osmc";
|
|
|
|
repo = namespace;
|
2019-02-27 17:33:20 +01:00
|
|
|
rev = "40a6c318641e2cbeac58fb0e7dde9c2beac737a0";
|
|
|
|
sha256 = "1l7hyfj5zvjxjdm94y325bmy1naak455b9l8952sb0gllzrcwj6s";
|
2018-05-16 13:57:17 +02:00
|
|
|
};
|
|
|
|
|
2018-09-06 21:40:22 +02:00
|
|
|
meta = {
|
2018-05-23 23:20:24 +02:00
|
|
|
homepage = https://github.com/osmc/skin.osmc;
|
2018-05-16 13:57:17 +02:00
|
|
|
description = "The default skin for OSMC";
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ worldofpeace ];
|
|
|
|
license = licenses.cc-by-nc-sa-30;
|
|
|
|
};
|
|
|
|
};
|
2018-09-06 21:40:22 +02:00
|
|
|
|
2018-09-06 21:40:28 +02:00
|
|
|
yatp = python2Packages.toPythonModule (mkKodiPlugin rec {
|
|
|
|
plugin = "yatp";
|
|
|
|
namespace = "plugin.video.yatp";
|
|
|
|
version = "3.3.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "romanvm";
|
|
|
|
repo = "kodi.yatp";
|
|
|
|
rev = "v.${version}";
|
|
|
|
sha256 = "12g1f57sx7dy6wy7ljl7siz2qs1kxcmijcg7xx2xpvmq61x9qa2d";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./yatp/dont-monkey.patch ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
simpleplugin
|
|
|
|
python2Packages.requests
|
|
|
|
python2Packages.libtorrentRasterbar
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = src.meta.homepage;
|
|
|
|
description = "Yet Another Torrent Player: libtorrent-based torrent streaming for Kodi";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2018-10-29 21:23:17 +01:00
|
|
|
inputstream-adaptive = mkKodiABIPlugin rec {
|
|
|
|
|
|
|
|
plugin = "inputstream-adaptive";
|
|
|
|
namespace = "inputstream.adaptive";
|
|
|
|
version = "2.3.12";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "peak3d";
|
|
|
|
repo = "inputstream.adaptive";
|
2019-09-09 01:38:31 +02:00
|
|
|
rev = version;
|
2018-10-29 21:23:17 +01:00
|
|
|
sha256 = "09d9b35mpaf3g5m51viyan9hv7d2i8ndvb9wm0j7rs5gwsf0k71z";
|
|
|
|
};
|
|
|
|
|
|
|
|
extraBuildInputs = [ expat ];
|
|
|
|
|
|
|
|
extraRuntimeDependencies = [ glib nspr nss stdenv.cc.cc.lib ];
|
|
|
|
|
|
|
|
extraInstallPhase = let n = namespace; in ''
|
|
|
|
ln -s $out/lib/addons/${n}/libssd_wv.so $out/${pluginDir}/${n}/libssd_wv.so
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/peak3d/inputstream.adaptive;
|
|
|
|
description = "Kodi inputstream addon for several manifest types";
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ sephalon ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-02-27 18:31:53 +01:00
|
|
|
vfs-sftp = mkKodiABIPlugin rec {
|
|
|
|
namespace = "vfs.sftp";
|
|
|
|
version = "1.0.1";
|
|
|
|
plugin = namespace;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xbmc";
|
|
|
|
repo = namespace;
|
|
|
|
rev = "${version}-${rel}";
|
|
|
|
sha256 = "1l9igrl168s91c15v9klyaaz226ik3xlbzjk2f1346fvzmp87g9v";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "SFTP Virtual Filesystem add-on for Kodi";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ minijackson ];
|
|
|
|
};
|
|
|
|
|
|
|
|
extraBuildInputs = [ openssl libssh zlib ];
|
|
|
|
};
|
2019-02-27 18:35:02 +01:00
|
|
|
|
|
|
|
vfs-libarchive = mkKodiABIPlugin rec {
|
|
|
|
namespace = "vfs.libarchive";
|
|
|
|
version = "1.0.5";
|
|
|
|
plugin = namespace;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xbmc";
|
|
|
|
repo = namespace;
|
|
|
|
rev = "${version}-${rel}";
|
|
|
|
sha256 = "0l1f1fijflr1ia30r0dcz1x2zn35c4lxy30az1cqxdf8nipza0b8";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "LibArchive Virtual Filesystem add-on for Kodi";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ minijackson ];
|
|
|
|
};
|
|
|
|
|
|
|
|
extraBuildInputs = [ libarchive lzma bzip2 zlib lz4 lzo openssl ];
|
|
|
|
};
|
2018-09-06 21:40:22 +02:00
|
|
|
}; in self
|