2024-03-04 21:04:26 +01:00
|
|
|
{ config, lib, newScope, kodi, libretro }:
|
2021-03-15 23:50:58 +01:00
|
|
|
|
2021-10-30 21:59:56 +02:00
|
|
|
let
|
2024-03-06 02:43:29 +01:00
|
|
|
inherit (lib)
|
|
|
|
catAttrs
|
|
|
|
concatLists
|
|
|
|
filter
|
|
|
|
optionalAttrs
|
|
|
|
unique
|
|
|
|
;
|
|
|
|
|
2023-07-25 12:46:54 +02:00
|
|
|
inherit (libretro) fuse genesis-plus-gx mgba nestopia snes9x twenty-fortyeight;
|
2021-10-30 21:59:56 +02:00
|
|
|
|
2021-03-15 23:50:58 +01:00
|
|
|
callPackage = newScope self;
|
|
|
|
|
|
|
|
# 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));
|
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
self = {
|
|
|
|
addonDir = "/share/kodi/addons";
|
|
|
|
|
2023-01-07 17:35:52 +01:00
|
|
|
rel = kodi.kodiReleaseName;
|
2024-03-08 23:34:26 +01:00
|
|
|
|
|
|
|
inherit callPackage kodi hasKodiAddon requiredKodiAddons;
|
|
|
|
|
|
|
|
# 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;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
# package update scripts
|
2021-03-16 02:59:08 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
addonUpdateScript = callPackage ../applications/video/kodi/addons/addon-update-script { };
|
2021-03-16 02:59:08 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
# package builders
|
2021-03-15 23:50:58 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
buildKodiAddon = callPackage ../applications/video/kodi/build-kodi-addon.nix { };
|
2021-03-15 23:50:58 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
buildKodiBinaryAddon = callPackage ../applications/video/kodi/build-kodi-binary-addon.nix { };
|
2021-03-15 23:50:58 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
# regular packages
|
2021-03-15 23:50:58 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
kodi-platform = callPackage ../applications/video/kodi/addons/kodi-platform { };
|
2021-03-15 23:50:58 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
# addon packages
|
2021-03-15 23:50:58 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
a4ksubtitles = callPackage ../applications/video/kodi/addons/a4ksubtitles { };
|
2021-03-22 03:11:09 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
arteplussept = callPackage ../applications/video/kodi/addons/arteplussept { };
|
2022-01-11 14:02:18 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
controller-topology-project = callPackage ../applications/video/kodi/addons/controller-topology-project { };
|
2021-03-15 23:50:58 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
iagl = callPackage ../applications/video/kodi/addons/iagl { };
|
2021-11-06 23:05:33 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
invidious = callPackage ../applications/video/kodi/addons/invidious { };
|
2022-07-03 16:29:10 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
libretro = callPackage ../applications/video/kodi/addons/libretro { };
|
2021-10-30 21:56:00 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
libretro-2048 = callPackage ../applications/video/kodi/addons/libretro-2048 { inherit twenty-fortyeight; };
|
2023-05-29 12:59:00 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
libretro-fuse = callPackage ../applications/video/kodi/addons/libretro-fuse { inherit fuse; };
|
2023-05-29 12:53:30 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
libretro-genplus = callPackage ../applications/video/kodi/addons/libretro-genplus { inherit genesis-plus-gx; };
|
2021-11-04 22:24:46 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
libretro-mgba = callPackage ../applications/video/kodi/addons/libretro-mgba { inherit mgba; };
|
2021-11-14 20:42:16 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
libretro-nestopia = callPackage ../applications/video/kodi/addons/libretro-nestopia { inherit nestopia; };
|
2023-07-25 12:46:54 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
libretro-snes9x = callPackage ../applications/video/kodi/addons/libretro-snes9x { inherit snes9x; };
|
2021-10-30 21:59:56 +02:00
|
|
|
|
2024-03-20 20:04:26 +01:00
|
|
|
jellycon = callPackage ../applications/video/kodi/addons/jellycon { };
|
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
jellyfin = callPackage ../applications/video/kodi/addons/jellyfin { };
|
2021-03-20 15:44:08 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
joystick = callPackage ../applications/video/kodi/addons/joystick { };
|
2021-03-15 23:50:58 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
keymap = callPackage ../applications/video/kodi/addons/keymap { };
|
2021-11-03 02:02:11 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
mediacccde = callPackage ../applications/video/kodi/addons/mediacccde { };
|
2023-12-28 14:59:48 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
mediathekview = callPackage ../applications/video/kodi/addons/mediathekview { };
|
2024-02-17 16:53:05 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
netflix = callPackage ../applications/video/kodi/addons/netflix { };
|
2021-03-16 01:33:38 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
orftvthek = callPackage ../applications/video/kodi/addons/orftvthek { };
|
2022-01-02 20:23:53 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
radioparadise = callPackage ../applications/video/kodi/addons/radioparadise { };
|
2023-10-29 13:58:37 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
svtplay = callPackage ../applications/video/kodi/addons/svtplay { };
|
2021-03-15 23:50:58 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
steam-controller = callPackage ../applications/video/kodi/addons/steam-controller { };
|
2021-03-15 23:50:58 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
steam-launcher = callPackage ../applications/video/kodi/addons/steam-launcher { };
|
2021-03-15 23:50:58 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
steam-library = callPackage ../applications/video/kodi/addons/steam-library { };
|
2021-08-06 01:46:30 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
somafm = callPackage ../applications/video/kodi/addons/somafm { };
|
2023-10-29 15:50:40 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
pdfreader = callPackage ../applications/video/kodi/addons/pdfreader { };
|
2021-03-15 23:50:58 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
pvr-hts = callPackage ../applications/video/kodi/addons/pvr-hts { };
|
2021-03-15 23:50:58 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
pvr-hdhomerun = callPackage ../applications/video/kodi/addons/pvr-hdhomerun { };
|
2021-03-15 23:50:58 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
pvr-iptvsimple = callPackage ../applications/video/kodi/addons/pvr-iptvsimple { };
|
2021-03-15 23:50:58 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
pvr-vdr-vnsi = callPackage ../applications/video/kodi/addons/pvr-vdr-vnsi { };
|
2023-08-21 21:26:41 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
osmc-skin = callPackage ../applications/video/kodi/addons/osmc-skin { };
|
2021-03-15 23:50:58 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
vfs-libarchive = callPackage ../applications/video/kodi/addons/vfs-libarchive { };
|
2021-03-15 23:50:58 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
vfs-rar = callPackage ../applications/video/kodi/addons/vfs-rar { };
|
2023-06-23 20:54:28 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
vfs-sftp = callPackage ../applications/video/kodi/addons/vfs-sftp { };
|
2023-06-23 20:54:28 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
visualization-fishbmc = callPackage ../applications/video/kodi/addons/visualization-fishbmc { };
|
2023-05-16 23:42:03 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
visualization-goom = callPackage ../applications/video/kodi/addons/visualization-goom { };
|
2023-05-16 23:41:30 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
visualization-matrix = callPackage ../applications/video/kodi/addons/visualization-matrix { };
|
2023-05-16 23:40:53 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
visualization-pictureit = callPackage ../applications/video/kodi/addons/visualization-pictureit { };
|
2023-05-16 23:40:13 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
visualization-projectm = callPackage ../applications/video/kodi/addons/visualization-projectm { };
|
2023-05-16 23:39:35 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
visualization-shadertoy = callPackage ../applications/video/kodi/addons/visualization-shadertoy { };
|
2023-05-16 23:39:00 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
visualization-spectrum = callPackage ../applications/video/kodi/addons/visualization-spectrum { };
|
2023-05-16 23:38:22 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
visualization-starburst = callPackage ../applications/video/kodi/addons/visualization-starburst { };
|
2023-05-16 23:37:42 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
visualization-waveform = callPackage ../applications/video/kodi/addons/visualization-waveform { };
|
2022-09-12 23:50:26 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
youtube = callPackage ../applications/video/kodi/addons/youtube { };
|
2021-04-16 20:03:18 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
# addon packages (dependencies)
|
2021-03-16 01:33:38 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
archive_tool = callPackage ../applications/video/kodi/addons/archive_tool { };
|
2021-11-06 23:04:03 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
certifi = callPackage ../applications/video/kodi/addons/certifi { };
|
2021-03-16 01:33:38 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
chardet = callPackage ../applications/video/kodi/addons/chardet { };
|
2021-03-16 01:33:38 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
dateutil = callPackage ../applications/video/kodi/addons/dateutil { };
|
2021-03-20 15:44:08 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
defusedxml = callPackage ../applications/video/kodi/addons/defusedxml { };
|
2021-11-03 01:55:20 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
future = callPackage ../applications/video/kodi/addons/future { };
|
2022-01-02 20:10:59 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
idna = callPackage ../applications/video/kodi/addons/idna { };
|
2021-03-16 01:33:38 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
infotagger = callPackage ../applications/video/kodi/addons/infotagger { };
|
2023-05-02 21:09:59 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
inputstream-adaptive = callPackage ../applications/video/kodi/addons/inputstream-adaptive { };
|
2021-03-16 01:33:38 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
inputstream-ffmpegdirect = callPackage ../applications/video/kodi/addons/inputstream-ffmpegdirect { };
|
2021-03-24 02:04:06 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
inputstream-rtmp = callPackage ../applications/video/kodi/addons/inputstream-rtmp { };
|
2021-03-24 02:11:35 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
inputstreamhelper = callPackage ../applications/video/kodi/addons/inputstreamhelper { };
|
2021-03-16 01:33:38 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
kodi-six = callPackage ../applications/video/kodi/addons/kodi-six { };
|
2021-03-20 15:44:08 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
myconnpy = callPackage ../applications/video/kodi/addons/myconnpy { };
|
2021-03-16 01:33:38 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
requests = callPackage ../applications/video/kodi/addons/requests { };
|
2021-03-16 01:33:38 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
requests-cache = callPackage ../applications/video/kodi/addons/requests-cache { };
|
2021-08-06 01:46:20 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
routing = callPackage ../applications/video/kodi/addons/routing { };
|
2021-08-06 01:46:02 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
sendtokodi = callPackage ../applications/video/kodi/addons/sendtokodi { };
|
2023-10-19 21:11:29 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
signals = callPackage ../applications/video/kodi/addons/signals { };
|
2021-03-16 01:33:38 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
simplejson = callPackage ../applications/video/kodi/addons/simplejson { };
|
2022-01-02 20:14:12 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
six = callPackage ../applications/video/kodi/addons/six { };
|
2021-03-20 15:44:08 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
sponsorblock = callPackage ../applications/video/kodi/addons/sponsorblock { };
|
2024-02-07 11:13:36 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
urllib3 = callPackage ../applications/video/kodi/addons/urllib3 { };
|
2021-03-16 01:33:38 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
websocket = callPackage ../applications/video/kodi/addons/websocket { };
|
2021-06-22 02:38:16 +02:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
xbmcswift2 = callPackage ../applications/video/kodi/addons/xbmcswift2 { };
|
2022-01-11 14:01:50 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
typing_extensions = callPackage ../applications/video/kodi/addons/typing_extensions { };
|
2022-01-16 14:51:34 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
arrow = callPackage ../applications/video/kodi/addons/arrow { };
|
2022-01-16 14:55:33 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
trakt-module = callPackage ../applications/video/kodi/addons/trakt-module { };
|
2022-01-16 14:59:09 +01:00
|
|
|
|
2024-03-08 23:34:26 +01:00
|
|
|
trakt = callPackage ../applications/video/kodi/addons/trakt { };
|
2024-03-06 02:43:29 +01:00
|
|
|
}; in self // optionalAttrs config.allowAliases {
|
2022-01-16 19:14:25 +01:00
|
|
|
# deprecated or renamed packages
|
|
|
|
|
|
|
|
controllers = throw "kodi.packages.controllers has been replaced with kodi.packages.controller-topology-project - a package which contains a large number of controller profiles." { };
|
|
|
|
}
|