1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00
nixpkgs/pkgs/top-level/kodi-packages.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

224 lines
8.5 KiB
Nix
Raw Normal View History

{ config, lib, newScope, kodi, libretro }:
let
inherit (lib)
catAttrs
concatLists
filter
optionalAttrs
unique
;
inherit (libretro) fuse genesis-plus-gx mgba nestopia snes9x twenty-fortyeight;
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));
self = {
addonDir = "/share/kodi/addons";
rel = kodi.kodiReleaseName;
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
addonUpdateScript = callPackage ../applications/video/kodi/addons/addon-update-script { };
# 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/addons/kodi-platform { };
# addon packages
a4ksubtitles = callPackage ../applications/video/kodi/addons/a4ksubtitles { };
arteplussept = callPackage ../applications/video/kodi/addons/arteplussept { };
controller-topology-project = callPackage ../applications/video/kodi/addons/controller-topology-project { };
2024-06-13 20:58:22 +01:00
formula1 = callPackage ../applications/video/kodi/addons/formula1 { };
iagl = callPackage ../applications/video/kodi/addons/iagl { };
2021-11-06 22:05:33 +00:00
invidious = callPackage ../applications/video/kodi/addons/invidious { };
libretro = callPackage ../applications/video/kodi/addons/libretro { };
2021-10-30 20:56:00 +01:00
libretro-2048 = callPackage ../applications/video/kodi/addons/libretro-2048 { inherit twenty-fortyeight; };
libretro-fuse = callPackage ../applications/video/kodi/addons/libretro-fuse { inherit fuse; };
libretro-genplus = callPackage ../applications/video/kodi/addons/libretro-genplus { inherit genesis-plus-gx; };
libretro-mgba = callPackage ../applications/video/kodi/addons/libretro-mgba { inherit mgba; };
libretro-nestopia = callPackage ../applications/video/kodi/addons/libretro-nestopia { inherit nestopia; };
libretro-snes9x = callPackage ../applications/video/kodi/addons/libretro-snes9x { inherit snes9x; };
2024-03-20 19:04:26 +00:00
jellycon = callPackage ../applications/video/kodi/addons/jellycon { };
jellyfin = callPackage ../applications/video/kodi/addons/jellyfin { };
2021-03-20 14:44:08 +00:00
joystick = callPackage ../applications/video/kodi/addons/joystick { };
keymap = callPackage ../applications/video/kodi/addons/keymap { };
mediacccde = callPackage ../applications/video/kodi/addons/mediacccde { };
2023-12-28 13:59:48 +00:00
mediathekview = callPackage ../applications/video/kodi/addons/mediathekview { };
netflix = callPackage ../applications/video/kodi/addons/netflix { };
2021-03-16 00:33:38 +00:00
orftvthek = callPackage ../applications/video/kodi/addons/orftvthek { };
radioparadise = callPackage ../applications/video/kodi/addons/radioparadise { };
2024-06-13 20:57:10 +01:00
raiplay = callPackage ../applications/video/kodi/addons/raiplay { };
2024-06-21 20:37:44 +01:00
skyvideoitalia = callPackage ../applications/video/kodi/addons/skyvideoitalia { };
svtplay = callPackage ../applications/video/kodi/addons/svtplay { };
steam-controller = callPackage ../applications/video/kodi/addons/steam-controller { };
steam-launcher = callPackage ../applications/video/kodi/addons/steam-launcher { };
steam-library = callPackage ../applications/video/kodi/addons/steam-library { };
somafm = callPackage ../applications/video/kodi/addons/somafm { };
2023-10-29 14:50:40 +00:00
pdfreader = callPackage ../applications/video/kodi/addons/pdfreader { };
pvr-hts = callPackage ../applications/video/kodi/addons/pvr-hts { };
pvr-hdhomerun = callPackage ../applications/video/kodi/addons/pvr-hdhomerun { };
pvr-iptvsimple = callPackage ../applications/video/kodi/addons/pvr-iptvsimple { };
pvr-vdr-vnsi = callPackage ../applications/video/kodi/addons/pvr-vdr-vnsi { };
osmc-skin = callPackage ../applications/video/kodi/addons/osmc-skin { };
upnext = callPackage ../applications/video/kodi/addons/upnext { };
vfs-libarchive = callPackage ../applications/video/kodi/addons/vfs-libarchive { };
vfs-rar = callPackage ../applications/video/kodi/addons/vfs-rar { };
2023-06-23 19:54:28 +01:00
vfs-sftp = callPackage ../applications/video/kodi/addons/vfs-sftp { };
2023-06-23 19:54:28 +01:00
visualization-fishbmc = callPackage ../applications/video/kodi/addons/visualization-fishbmc { };
visualization-goom = callPackage ../applications/video/kodi/addons/visualization-goom { };
visualization-matrix = callPackage ../applications/video/kodi/addons/visualization-matrix { };
visualization-pictureit = callPackage ../applications/video/kodi/addons/visualization-pictureit { };
visualization-projectm = callPackage ../applications/video/kodi/addons/visualization-projectm { };
visualization-shadertoy = callPackage ../applications/video/kodi/addons/visualization-shadertoy { };
visualization-spectrum = callPackage ../applications/video/kodi/addons/visualization-spectrum { };
visualization-starburst = callPackage ../applications/video/kodi/addons/visualization-starburst { };
visualization-waveform = callPackage ../applications/video/kodi/addons/visualization-waveform { };
youtube = callPackage ../applications/video/kodi/addons/youtube { };
# addon packages (dependencies)
2021-03-16 00:33:38 +00:00
archive_tool = callPackage ../applications/video/kodi/addons/archive_tool { };
certifi = callPackage ../applications/video/kodi/addons/certifi { };
2021-03-16 00:33:38 +00:00
chardet = callPackage ../applications/video/kodi/addons/chardet { };
2021-03-16 00:33:38 +00:00
dateutil = callPackage ../applications/video/kodi/addons/dateutil { };
2021-03-20 14:44:08 +00:00
defusedxml = callPackage ../applications/video/kodi/addons/defusedxml { };
future = callPackage ../applications/video/kodi/addons/future { };
idna = callPackage ../applications/video/kodi/addons/idna { };
2021-03-16 00:33:38 +00:00
infotagger = callPackage ../applications/video/kodi/addons/infotagger { };
2023-05-02 20:09:59 +01:00
inputstream-adaptive = callPackage ../applications/video/kodi/addons/inputstream-adaptive { };
2021-03-16 00:33:38 +00:00
inputstream-ffmpegdirect = callPackage ../applications/video/kodi/addons/inputstream-ffmpegdirect { };
inputstream-rtmp = callPackage ../applications/video/kodi/addons/inputstream-rtmp { };
inputstreamhelper = callPackage ../applications/video/kodi/addons/inputstreamhelper { };
2021-03-16 00:33:38 +00:00
kodi-six = callPackage ../applications/video/kodi/addons/kodi-six { };
2021-03-20 14:44:08 +00:00
myconnpy = callPackage ../applications/video/kodi/addons/myconnpy { };
2021-03-16 00:33:38 +00:00
2024-06-13 20:55:34 +01:00
plugin-cache = callPackage ../applications/video/kodi/addons/plugin-cache { };
requests = callPackage ../applications/video/kodi/addons/requests { };
2021-03-16 00:33:38 +00:00
requests-cache = callPackage ../applications/video/kodi/addons/requests-cache { };
routing = callPackage ../applications/video/kodi/addons/routing { };
sendtokodi = callPackage ../applications/video/kodi/addons/sendtokodi { };
signals = callPackage ../applications/video/kodi/addons/signals { };
2021-03-16 00:33:38 +00:00
2024-06-13 20:53:02 +01:00
simplecache = callPackage ../applications/video/kodi/addons/simplecache { };
simplejson = callPackage ../applications/video/kodi/addons/simplejson { };
six = callPackage ../applications/video/kodi/addons/six { };
2021-03-20 14:44:08 +00:00
sponsorblock = callPackage ../applications/video/kodi/addons/sponsorblock { };
urllib3 = callPackage ../applications/video/kodi/addons/urllib3 { };
2021-03-16 00:33:38 +00:00
websocket = callPackage ../applications/video/kodi/addons/websocket { };
xbmcswift2 = callPackage ../applications/video/kodi/addons/xbmcswift2 { };
typing_extensions = callPackage ../applications/video/kodi/addons/typing_extensions { };
arrow = callPackage ../applications/video/kodi/addons/arrow { };
2022-01-16 13:55:33 +00:00
trakt-module = callPackage ../applications/video/kodi/addons/trakt-module { };
2022-01-16 13:59:09 +00:00
trakt = callPackage ../applications/video/kodi/addons/trakt { };
}; in self // optionalAttrs config.allowAliases {
# 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." { };
}