retronix/pkgs/roms/build/mkRetroarchRom.nix
2024-01-15 15:13:59 +01:00

21 lines
480 B
Nix

{ mkRom , lib, symlinkJoin, libretro, stdenv, retroarchBare, retroarchFull, wrapRetroarch' }:
{ name
, src
, emulator
, filename
, settings
, meta
}:
let
retroarch = wrapRetroarch' {
retroarch = retroarchBare;
cores = retroarchFull.cores;
inherit settings;
};
in
mkRom ({
runtimeInputs = [ retroarch ];
# To do add a check for the emulator
command = "retroarch -L ${emulator} ${builtins.placeholder "out"}/usr/share/${filename}";
inherit meta src name;
})