nixpkgs/pkgs/applications/emulators/retroarch
2024-11-22 09:53:01 +00:00
..
cores libretro: add 0-prefix before version 2024-11-22 09:53:01 +00:00
cores.nix libretro.cores: clean-up, remove update_cores.py script 2024-11-22 09:53:01 +00:00
default.nix
kodi-advanced-launchers.nix
libretro-core-info.nix
mkLibretroCore.nix libretro.cores: clean-up, remove update_cores.py script 2024-11-22 09:53:01 +00:00
README.md libretro: update README.md 2024-11-22 09:53:01 +00:00
retroarch-assets.nix
retroarch-joypad-autoconfig.nix
wrapper.nix

Libretro

libretro cores and related packages.

Adding new cores

The basic steps to add a new core are:

  1. Add a new core using mkLibretroCore function (use one of the existing files as an example)
  2. Add your new core to default.nix file
  3. Try to build your core with nix-build -A libretro.<core>

Using RetroArch with cores

To create a custom RetroArch derivation with the cores you want (instead of using retroarchFull that includes all cores), you can use .override like this:

{ pkgs, ... }:

let
  retroarchWithCores = (pkgs.retroarch.override {
    cores = with pkgs.libretro; [
      bsnes
      mgba
      quicknes
    ];
  });
in
{
  environment.systemPackages = [
    retroarchWithCores
  ];
}