20 lines
390 B
Nix
20 lines
390 B
Nix
|
{ mkRom , retroarchFull }:
|
||
|
{ name
|
||
|
, src
|
||
|
, emulator
|
||
|
, filename
|
||
|
, settings ? {}
|
||
|
, meta
|
||
|
}:
|
||
|
let
|
||
|
retroarch = retroarchFull.override (prev: {
|
||
|
settings = prev.settings // 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;
|
||
|
})
|