2021-03-15 22:50:58 +00:00
|
|
|
{ lib, newScope, kodi }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
addonUpdateScript = callPackage ../applications/video/kodi-packages/addon-update-script { };
|
|
|
|
|
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
|
|
|
|
|
|
|
|
kodi-platform = callPackage ../applications/video/kodi-packages/kodi-platform { };
|
|
|
|
|
|
|
|
# addon packages
|
|
|
|
|
2021-03-22 02:11:09 +00:00
|
|
|
a4ksubtitles = callPackage ../applications/video/kodi-packages/a4ksubtitles { };
|
|
|
|
|
2021-03-15 22:50:58 +00:00
|
|
|
controllers = {
|
|
|
|
default = callPackage ../applications/video/kodi-packages/controllers { controller = "default"; };
|
|
|
|
|
|
|
|
dreamcast = callPackage ../applications/video/kodi-packages/controllers { controller = "dreamcast"; };
|
|
|
|
|
|
|
|
gba = callPackage ../applications/video/kodi-packages/controllers { controller = "gba"; };
|
|
|
|
|
|
|
|
genesis = callPackage ../applications/video/kodi-packages/controllers { controller = "genesis"; };
|
|
|
|
|
|
|
|
mouse = callPackage ../applications/video/kodi-packages/controllers { controller = "mouse"; };
|
|
|
|
|
|
|
|
n64 = callPackage ../applications/video/kodi-packages/controllers { controller = "n64"; };
|
|
|
|
|
|
|
|
nes = callPackage ../applications/video/kodi-packages/controllers { controller = "nes"; };
|
|
|
|
|
|
|
|
ps = callPackage ../applications/video/kodi-packages/controllers { controller = "ps"; };
|
|
|
|
|
|
|
|
snes = callPackage ../applications/video/kodi-packages/controllers { controller = "snes"; };
|
|
|
|
};
|
|
|
|
|
2021-03-20 14:44:08 +00:00
|
|
|
jellyfin = callPackage ../applications/video/kodi-packages/jellyfin { };
|
|
|
|
|
2021-03-15 22:50:58 +00:00
|
|
|
joystick = callPackage ../applications/video/kodi-packages/joystick { };
|
|
|
|
|
2021-11-03 01:02:11 +00:00
|
|
|
keymap = callPackage ../applications/video/kodi-packages/keymap { };
|
|
|
|
|
2021-03-16 00:33:38 +00:00
|
|
|
netflix = callPackage ../applications/video/kodi-packages/netflix { };
|
|
|
|
|
2021-03-15 22:50:58 +00:00
|
|
|
svtplay = callPackage ../applications/video/kodi-packages/svtplay { };
|
|
|
|
|
|
|
|
steam-controller = callPackage ../applications/video/kodi-packages/steam-controller { };
|
|
|
|
|
|
|
|
steam-launcher = callPackage ../applications/video/kodi-packages/steam-launcher { };
|
|
|
|
|
2021-08-05 23:46:30 +00:00
|
|
|
steam-library = callPackage ../applications/video/kodi-packages/steam-library { };
|
|
|
|
|
2021-03-15 22:50:58 +00:00
|
|
|
pdfreader = callPackage ../applications/video/kodi-packages/pdfreader { };
|
|
|
|
|
|
|
|
pvr-hts = callPackage ../applications/video/kodi-packages/pvr-hts { };
|
|
|
|
|
|
|
|
pvr-hdhomerun = callPackage ../applications/video/kodi-packages/pvr-hdhomerun { };
|
|
|
|
|
|
|
|
pvr-iptvsimple = callPackage ../applications/video/kodi-packages/pvr-iptvsimple { };
|
|
|
|
|
|
|
|
osmc-skin = callPackage ../applications/video/kodi-packages/osmc-skin { };
|
|
|
|
|
|
|
|
vfs-sftp = callPackage ../applications/video/kodi-packages/vfs-sftp { };
|
|
|
|
|
|
|
|
vfs-libarchive = callPackage ../applications/video/kodi-packages/vfs-libarchive { };
|
|
|
|
|
2021-04-16 18:03:18 +00:00
|
|
|
youtube = callPackage ../applications/video/kodi-packages/youtube { };
|
|
|
|
|
2021-03-16 00:33:38 +00:00
|
|
|
# addon packages (dependencies)
|
|
|
|
|
|
|
|
certifi = callPackage ../applications/video/kodi-packages/certifi { };
|
|
|
|
|
|
|
|
chardet = callPackage ../applications/video/kodi-packages/chardet { };
|
|
|
|
|
2021-03-20 14:44:08 +00:00
|
|
|
dateutil = callPackage ../applications/video/kodi-packages/dateutil { };
|
|
|
|
|
2021-11-03 00:55:20 +00:00
|
|
|
defusedxml = callPackage ../applications/video/kodi-packages/defusedxml { };
|
|
|
|
|
2021-03-16 00:33:38 +00:00
|
|
|
idna = callPackage ../applications/video/kodi-packages/idna { };
|
|
|
|
|
|
|
|
inputstream-adaptive = callPackage ../applications/video/kodi-packages/inputstream-adaptive { };
|
|
|
|
|
2021-03-24 01:04:06 +00:00
|
|
|
inputstream-ffmpegdirect = callPackage ../applications/video/kodi-packages/inputstream-ffmpegdirect { };
|
|
|
|
|
2021-03-24 01:11:35 +00:00
|
|
|
inputstream-rtmp = callPackage ../applications/video/kodi-packages/inputstream-rtmp { };
|
|
|
|
|
2021-03-16 00:33:38 +00:00
|
|
|
inputstreamhelper = callPackage ../applications/video/kodi-packages/inputstreamhelper { };
|
|
|
|
|
2021-03-20 14:44:08 +00:00
|
|
|
kodi-six = callPackage ../applications/video/kodi-packages/kodi-six { };
|
|
|
|
|
2021-03-16 00:33:38 +00:00
|
|
|
myconnpy = callPackage ../applications/video/kodi-packages/myconnpy { };
|
|
|
|
|
|
|
|
requests = callPackage ../applications/video/kodi-packages/requests { };
|
|
|
|
|
2021-08-05 23:46:20 +00:00
|
|
|
requests-cache = callPackage ../applications/video/kodi-packages/requests-cache { };
|
|
|
|
|
2021-08-05 23:46:02 +00:00
|
|
|
routing = callPackage ../applications/video/kodi-packages/routing { };
|
|
|
|
|
2021-03-16 00:33:38 +00:00
|
|
|
signals = callPackage ../applications/video/kodi-packages/signals { };
|
|
|
|
|
2021-03-20 14:44:08 +00:00
|
|
|
six = callPackage ../applications/video/kodi-packages/six { };
|
|
|
|
|
2021-03-16 00:33:38 +00:00
|
|
|
urllib3 = callPackage ../applications/video/kodi-packages/urllib3 { };
|
|
|
|
|
2021-06-22 00:38:16 +00:00
|
|
|
websocket = callPackage ../applications/video/kodi-packages/websocket { };
|
|
|
|
|
2021-03-15 22:50:58 +00:00
|
|
|
}; in self
|