retroarch-free: init

This commit is contained in:
Thiago Kenji Okada 2024-11-23 11:43:53 +00:00
parent b3cc74f3f8
commit e981e0a249

View File

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