retroarch-{bare,free}: use lib instead of builtins

This commit is contained in:
Thiago Kenji Okada 2024-11-24 12:27:51 +00:00
parent 60d1565d29
commit 3d616665d6

View File

@ -1461,22 +1461,22 @@ with pkgs;
# includes only cores for platform with free licenses
retroarch-free = retroarch.withCores (
cores:
builtins.filter
lib.filter
(c:
(c ? libretroCore)
&& (lib.meta.availableOn stdenv.hostPlatform c)
&& (!c.meta.unfree))
(builtins.attrValues cores)
(lib.attrValues cores)
);
# includes all cores for platform (including ones with non-free licenses)
retroarch-full = retroarch.withCores (
cores:
builtins.filter
lib.filter
(c:
(c ? libretroCore)
&& (lib.meta.availableOn stdenv.hostPlatform c))
(builtins.attrValues cores)
(lib.attrValues cores)
);
wrapRetroArch = retroarch-bare.wrapper;