3
0
Fork 0
forked from mirrors/nixpkgs

retroarchFull: remove cores not supported on platform

This should allow building retroarchFull in more platforms (e.g.:
aarch64-linux).
This commit is contained in:
Thiago Kenji Okada 2022-01-21 22:51:21 -03:00
parent 2ac298e45b
commit 1b79b5bb0a

View file

@ -33426,7 +33426,10 @@ with pkgs;
retroarch = wrapRetroArch { retroarch = retroarchBare; };
retroarchFull = retroarch.override {
cores = builtins.filter (c: c ? libretroCore) (builtins.attrValues libretro);
cores = builtins.filter
# Remove cores not supported on platform
(c: c ? libretroCore && (builtins.elem stdenv.hostPlatform.system c.meta.platforms))
(builtins.attrValues libretro);
};
libretro = recurseIntoAttrs (callPackage ../misc/emulators/retroarch/cores.nix {