2021-10-30 20:59:56 +01:00
|
|
|
{ lib, newScope, kodi, libretro }:
|
2021-03-15 22:50:58 +00:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
2021-10-30 20:59:56 +01:00
|
|
|
let
|
2021-11-14 19:42:16 +00:00
|
|
|
inherit (libretro) genesis-plus-gx mgba snes9x;
|
2021-10-30 20:59:56 +01:00
|
|
|
in
|
|
|
|
|
2021-03-15 22:50:58 +00:00
|
|
|
let self = rec {
|
|
|
|
|
|
|
|
addonDir = "/share/kodi/addons";
|
|
|
|
rel = "Matrix";
|
|
|
|
|
|
|
|
callPackage = newScope self;
|
|
|
|
|
|
|
|
inherit kodi;
|
|
|
|
|
|
|
|
# Convert derivation to a kodi module. Stolen from ../../../top-level/python-packages.nix
|
|
|
|
toKodiAddon = drv: drv.overrideAttrs (oldAttrs: {
|
|
|
|
# Use passthru in order to prevent rebuilds when possible.
|
|
|
|
passthru = (oldAttrs.passthru or {}) // {
|
|
|
|
kodiAddonFor = kodi;
|
|
|
|
requiredKodiAddons = requiredKodiAddons drv.propagatedBuildInputs;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
# Check whether a derivation provides a Kodi addon.
|
|
|
|
hasKodiAddon = drv: drv ? kodiAddonFor && drv.kodiAddonFor == kodi;
|
|
|
|
|
|
|
|
# Get list of required Kodi addons given a list of derivations.
|
|
|
|
requiredKodiAddons = drvs:
|
|
|
|
let
|
|
|
|
modules = filter hasKodiAddon drvs;
|
|
|
|
in
|
|
|
|
unique (modules ++ concatLists (catAttrs "requiredKodiAddons" modules));
|
|
|
|
|
2021-03-16 01:59:08 +00:00
|
|
|
# package update scripts
|
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
addonUpdateScript = callPackage ../applications/video/kodi/addons/addon-update-script { };
|
2021-03-16 01:59:08 +00:00
|
|
|
|
2021-03-15 22:50:58 +00:00
|
|
|
# package builders
|
|
|
|
|
|
|
|
buildKodiAddon = callPackage ../applications/video/kodi/build-kodi-addon.nix { };
|
|
|
|
|
|
|
|
buildKodiBinaryAddon = callPackage ../applications/video/kodi/build-kodi-binary-addon.nix { };
|
|
|
|
|
|
|
|
# regular packages
|
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
kodi-platform = callPackage ../applications/video/kodi/addons/kodi-platform { };
|
2021-03-15 22:50:58 +00:00
|
|
|
|
|
|
|
# addon packages
|
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
a4ksubtitles = callPackage ../applications/video/kodi/addons/a4ksubtitles { };
|
2021-03-22 02:11:09 +00:00
|
|
|
|
2021-03-15 22:50:58 +00:00
|
|
|
controllers = {
|
2021-12-19 01:34:47 +00:00
|
|
|
default = callPackage ../applications/video/kodi/addons/controllers { controller = "default"; };
|
2021-03-15 22:50:58 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
dreamcast = callPackage ../applications/video/kodi/addons/controllers { controller = "dreamcast"; };
|
2021-03-15 22:50:58 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
gba = callPackage ../applications/video/kodi/addons/controllers { controller = "gba"; };
|
2021-03-15 22:50:58 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
genesis = callPackage ../applications/video/kodi/addons/controllers { controller = "genesis"; };
|
2021-03-15 22:50:58 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
mouse = callPackage ../applications/video/kodi/addons/controllers { controller = "mouse"; };
|
2021-03-15 22:50:58 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
n64 = callPackage ../applications/video/kodi/addons/controllers { controller = "n64"; };
|
2021-03-15 22:50:58 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
nes = callPackage ../applications/video/kodi/addons/controllers { controller = "nes"; };
|
2021-03-15 22:50:58 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
ps = callPackage ../applications/video/kodi/addons/controllers { controller = "ps"; };
|
2021-03-15 22:50:58 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
snes = callPackage ../applications/video/kodi/addons/controllers { controller = "snes"; };
|
2021-03-15 22:50:58 +00:00
|
|
|
};
|
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
iagl = callPackage ../applications/video/kodi/addons/iagl { };
|
2021-11-06 22:05:33 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
libretro = callPackage ../applications/video/kodi/addons/libretro { };
|
2021-10-30 20:56:00 +01:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
libretro-genplus = callPackage ../applications/video/kodi/addons/libretro-genplus { inherit genesis-plus-gx; };
|
2021-11-04 21:24:46 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
libretro-mgba = callPackage ../applications/video/kodi/addons/libretro-mgba { inherit mgba; };
|
2021-11-14 19:42:16 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
libretro-snes9x = callPackage ../applications/video/kodi/addons/libretro-snes9x { inherit snes9x; };
|
2021-10-30 20:59:56 +01:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
jellyfin = callPackage ../applications/video/kodi/addons/jellyfin { };
|
2021-03-20 14:44:08 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
joystick = callPackage ../applications/video/kodi/addons/joystick { };
|
2021-03-15 22:50:58 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
keymap = callPackage ../applications/video/kodi/addons/keymap { };
|
2021-11-03 01:02:11 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
netflix = callPackage ../applications/video/kodi/addons/netflix { };
|
2021-03-16 00:33:38 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
svtplay = callPackage ../applications/video/kodi/addons/svtplay { };
|
2021-03-15 22:50:58 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
steam-controller = callPackage ../applications/video/kodi/addons/steam-controller { };
|
2021-03-15 22:50:58 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
steam-launcher = callPackage ../applications/video/kodi/addons/steam-launcher { };
|
2021-03-15 22:50:58 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
steam-library = callPackage ../applications/video/kodi/addons/steam-library { };
|
2021-08-06 00:46:30 +01:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
pdfreader = callPackage ../applications/video/kodi/addons/pdfreader { };
|
2021-03-15 22:50:58 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
pvr-hts = callPackage ../applications/video/kodi/addons/pvr-hts { };
|
2021-03-15 22:50:58 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
pvr-hdhomerun = callPackage ../applications/video/kodi/addons/pvr-hdhomerun { };
|
2021-03-15 22:50:58 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
pvr-iptvsimple = callPackage ../applications/video/kodi/addons/pvr-iptvsimple { };
|
2021-03-15 22:50:58 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
osmc-skin = callPackage ../applications/video/kodi/addons/osmc-skin { };
|
2021-03-15 22:50:58 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
vfs-sftp = callPackage ../applications/video/kodi/addons/vfs-sftp { };
|
2021-03-15 22:50:58 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
vfs-libarchive = callPackage ../applications/video/kodi/addons/vfs-libarchive { };
|
2021-03-15 22:50:58 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
youtube = callPackage ../applications/video/kodi/addons/youtube { };
|
2021-04-16 19:03:18 +01:00
|
|
|
|
2021-03-16 00:33:38 +00:00
|
|
|
# addon packages (dependencies)
|
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
archive_tool = callPackage ../applications/video/kodi/addons/archive_tool { };
|
2021-11-06 22:04:03 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
certifi = callPackage ../applications/video/kodi/addons/certifi { };
|
2021-03-16 00:33:38 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
chardet = callPackage ../applications/video/kodi/addons/chardet { };
|
2021-03-16 00:33:38 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
dateutil = callPackage ../applications/video/kodi/addons/dateutil { };
|
2021-03-20 14:44:08 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
defusedxml = callPackage ../applications/video/kodi/addons/defusedxml { };
|
2021-11-03 00:55:20 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
idna = callPackage ../applications/video/kodi/addons/idna { };
|
2021-03-16 00:33:38 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
inputstream-adaptive = callPackage ../applications/video/kodi/addons/inputstream-adaptive { };
|
2021-03-16 00:33:38 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
inputstream-ffmpegdirect = callPackage ../applications/video/kodi/addons/inputstream-ffmpegdirect { };
|
2021-03-24 01:04:06 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
inputstream-rtmp = callPackage ../applications/video/kodi/addons/inputstream-rtmp { };
|
2021-03-24 01:11:35 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
inputstreamhelper = callPackage ../applications/video/kodi/addons/inputstreamhelper { };
|
2021-03-16 00:33:38 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
kodi-six = callPackage ../applications/video/kodi/addons/kodi-six { };
|
2021-03-20 14:44:08 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
myconnpy = callPackage ../applications/video/kodi/addons/myconnpy { };
|
2021-03-16 00:33:38 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
requests = callPackage ../applications/video/kodi/addons/requests { };
|
2021-03-16 00:33:38 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
requests-cache = callPackage ../applications/video/kodi/addons/requests-cache { };
|
2021-08-06 00:46:20 +01:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
routing = callPackage ../applications/video/kodi/addons/routing { };
|
2021-08-06 00:46:02 +01:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
signals = callPackage ../applications/video/kodi/addons/signals { };
|
2021-03-16 00:33:38 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
six = callPackage ../applications/video/kodi/addons/six { };
|
2021-03-20 14:44:08 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
urllib3 = callPackage ../applications/video/kodi/addons/urllib3 { };
|
2021-03-16 00:33:38 +00:00
|
|
|
|
2021-12-19 01:34:47 +00:00
|
|
|
websocket = callPackage ../applications/video/kodi/addons/websocket { };
|
2021-06-22 01:38:16 +01:00
|
|
|
|
2021-03-15 22:50:58 +00:00
|
|
|
}; in self
|