forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kodi-packages.nix
201 lines (111 loc) · 7.56 KB
/
kodi-packages.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
{ config, lib, newScope, kodi, libretro
, disable-warnings-if-gcc13 }:
with lib;
let
inherit (libretro) fuse genesis-plus-gx mgba nestopia snes9x twenty-fortyeight;
in
let self = rec {
addonDir = "/share/kodi/addons";
rel = "Nexus";
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 { };
arteplussept = callPackage ../applications/video/kodi/addons/arteplussept { };
controller-topology-project = callPackage ../applications/video/kodi/addons/controller-topology-project { };
iagl = callPackage ../applications/video/kodi/addons/iagl { };
invidious = callPackage ../applications/video/kodi/addons/invidious { };
libretro = callPackage ../applications/video/kodi/addons/libretro { };
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; };
jellyfin = callPackage ../applications/video/kodi/addons/jellyfin { };
joystick = callPackage ../applications/video/kodi/addons/joystick { };
keymap = callPackage ../applications/video/kodi/addons/keymap { };
mediacccde = callPackage ../applications/video/kodi/addons/mediacccde { };
netflix = callPackage ../applications/video/kodi/addons/netflix { };
orftvthek = callPackage ../applications/video/kodi/addons/orftvthek { };
radioparadise = callPackage ../applications/video/kodi/addons/radioparadise { };
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 { };
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 { };
vfs-libarchive = callPackage ../applications/video/kodi/addons/vfs-libarchive { };
vfs-rar = callPackage ../applications/video/kodi/addons/vfs-rar { };
vfs-sftp = callPackage ../applications/video/kodi/addons/vfs-sftp { };
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)
archive_tool = callPackage ../applications/video/kodi/addons/archive_tool { };
certifi = callPackage ../applications/video/kodi/addons/certifi { };
chardet = callPackage ../applications/video/kodi/addons/chardet { };
dateutil = callPackage ../applications/video/kodi/addons/dateutil { };
defusedxml = callPackage ../applications/video/kodi/addons/defusedxml { };
future = callPackage ../applications/video/kodi/addons/future { };
idna = callPackage ../applications/video/kodi/addons/idna { };
infotagger = callPackage ../applications/video/kodi/addons/infotagger { };
inputstream-adaptive = callPackage ../applications/video/kodi/addons/inputstream-adaptive { };
inputstream-ffmpegdirect = disable-warnings-if-gcc13 (callPackage ../applications/video/kodi/addons/inputstream-ffmpegdirect { });
inputstream-rtmp = callPackage ../applications/video/kodi/addons/inputstream-rtmp { };
inputstreamhelper = callPackage ../applications/video/kodi/addons/inputstreamhelper { };
kodi-six = callPackage ../applications/video/kodi/addons/kodi-six { };
myconnpy = callPackage ../applications/video/kodi/addons/myconnpy { };
requests = callPackage ../applications/video/kodi/addons/requests { };
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 { };
simplejson = callPackage ../applications/video/kodi/addons/simplejson { };
six = callPackage ../applications/video/kodi/addons/six { };
urllib3 = callPackage ../applications/video/kodi/addons/urllib3 { };
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 { };
trakt-module = callPackage ../applications/video/kodi/addons/trakt-module { };
trakt = callPackage ../applications/video/kodi/addons/trakt { };
}; in self // lib.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." { };
}