emulators.nix (724B)
1 { lib, pkgs, ... }: 2 3 let 4 retroarchWithCores = ( 5 pkgs.retroarch.withCores ( 6 cores: with cores; [ 7 beetle-saturn 8 # cemu 9 dolphin 10 flycast 11 genesis-plus-gx 12 # gopher64 13 melonds 14 mesen 15 mgba 16 parallel-n64 17 pcsx2 18 ppsspp 19 # rpcs3 20 sameboy 21 snes9x 22 swanstation 23 # xemu 24 # Game engines: corsix-th, eduke32, openra, openrct2, openttd 25 # Frontends: pegasus-frontend 26 # Tools: mame-tools, moonlight-qt 27 ] 28 ) 29 ); 30 in 31 { 32 environment.systemPackages = [ retroarchWithCores ]; 33 34 nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ 35 "libretro-genesis-plus-gx" 36 "libretro-snes9x" 37 ]; 38 }