Avoid with lib; at the top level in pkgs/top-level/kodi-packages.nix

This commit is contained in:
Philip Taron 2024-03-05 17:43:29 -08:00
parent 5aa9130a69
commit fec9460e07
No known key found for this signature in database

View File

@ -1,12 +1,17 @@
{ config, lib, newScope, kodi, libretro }:
with lib;
let
inherit (libretro) fuse genesis-plus-gx mgba nestopia snes9x twenty-fortyeight;
in
inherit (lib)
catAttrs
concatLists
filter
optionalAttrs
unique
;
let self = rec {
inherit (libretro) fuse genesis-plus-gx mgba nestopia snes9x twenty-fortyeight;
self = rec {
addonDir = "/share/kodi/addons";
rel = "Nexus";
@ -197,7 +202,7 @@ let self = rec {
trakt-module = callPackage ../applications/video/kodi/addons/trakt-module { };
trakt = callPackage ../applications/video/kodi/addons/trakt { };
}; in self // lib.optionalAttrs config.allowAliases {
}; 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." { };