retronix/pkgs/roms/build/mkRetroarchRom.nix

22 lines
480 B
Nix
Raw Normal View History

{ mkRom , lib, symlinkJoin, libretro, stdenv, retroarchBare, retroarchFull, wrapRetroarch' }:
2024-01-06 22:42:36 +01:00
{ name
, src
, emulator
, filename
, settings
2024-01-06 22:42:36 +01:00
, meta
}:
let
retroarch = wrapRetroarch' {
retroarch = retroarchBare;
cores = retroarchFull.cores;
inherit settings;
};
2024-01-06 22:42:36 +01:00
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;
})