nixpkgs/pkgs/top-level/kodi-packages.nix

158 lines
5.5 KiB
Nix
Raw Normal View History

{ lib, newScope, kodi, libretro }:
with lib;
let
inherit (libretro) genesis-plus-gx mgba snes9x;
in
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));
# 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 { };
controllers = {
default = callPackage ../applications/video/kodi/addons/controllers { controller = "default"; };
dreamcast = callPackage ../applications/video/kodi/addons/controllers { controller = "dreamcast"; };
gba = callPackage ../applications/video/kodi/addons/controllers { controller = "gba"; };
genesis = callPackage ../applications/video/kodi/addons/controllers { controller = "genesis"; };
mouse = callPackage ../applications/video/kodi/addons/controllers { controller = "mouse"; };
n64 = callPackage ../applications/video/kodi/addons/controllers { controller = "n64"; };
nes = callPackage ../applications/video/kodi/addons/controllers { controller = "nes"; };
ps = callPackage ../applications/video/kodi/addons/controllers { controller = "ps"; };
snes = callPackage ../applications/video/kodi/addons/controllers { controller = "snes"; };
};
iagl = callPackage ../applications/video/kodi/addons/iagl { };
2021-11-06 22:05:33 +00:00
libretro = callPackage ../applications/video/kodi/addons/libretro { };
2021-10-30 19:56:00 +00:00
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-snes9x = callPackage ../applications/video/kodi/addons/libretro-snes9x { inherit snes9x; };
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 { };
netflix = callPackage ../applications/video/kodi/addons/netflix { };
2021-03-16 00:33:38 +00:00
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 { };
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 { };
osmc-skin = callPackage ../applications/video/kodi/addons/osmc-skin { };
vfs-sftp = callPackage ../applications/video/kodi/addons/vfs-sftp { };
vfs-libarchive = callPackage ../applications/video/kodi/addons/vfs-libarchive { };
youtube = callPackage ../applications/video/kodi/addons/youtube { };
2021-03-16 00:33:38 +00:00
# addon packages (dependencies)
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 { };
idna = callPackage ../applications/video/kodi/addons/idna { };
2021-03-16 00:33:38 +00: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
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 { };
signals = callPackage ../applications/video/kodi/addons/signals { };
2021-03-16 00:33:38 +00:00
six = callPackage ../applications/video/kodi/addons/six { };
2021-03-20 14:44:08 +00:00
urllib3 = callPackage ../applications/video/kodi/addons/urllib3 { };
2021-03-16 00:33:38 +00:00
websocket = callPackage ../applications/video/kodi/addons/websocket { };
}; in self