RetroArch: Difference between revisions

Update installation section
Peeley (talk | contribs)
Provide example for the retroarch.withCores interface
Line 19: Line 19:
</syntaxhighlight>
</syntaxhighlight>


After NixOS 24.11, the RetroArch derivation was refactored, and the interface is now <code>retroarch.withCores</code>. See the libretro README in nixpkgs for example usage.
After NixOS 24.11, the RetroArch derivation was refactored, and the interface is now <code>retroarch.withCores</code>:<syntaxhighlight lang="nix">
environment.systemPackages = with pkgs; [
  (retroarch.withCores (cores: with cores; [
    genesis-plus-gx
    snes9x
    beetle-psx-hw
  ]))
];
</syntaxhighlight>


== Gotchas ==
== Gotchas ==