fix missing emulator + add assert not to reproduce the mistake
This commit is contained in:
parent
1f6091836a
commit
e51fd1f639
2 changed files with 4 additions and 2 deletions
|
@ -5,7 +5,7 @@ mkRetroarchRom {
|
|||
|
||||
inherit settings;
|
||||
|
||||
emulator = "";
|
||||
emulator = "fbneo";
|
||||
filename = "atetris.zip";
|
||||
|
||||
meta = {
|
||||
|
|
|
@ -13,7 +13,9 @@ let
|
|||
inherit settings;
|
||||
};
|
||||
in
|
||||
mkRom ({
|
||||
mkRom (
|
||||
assert lib.assertMsg (lib.stringLength emulator > 0) "Rom ${name} need an emulator name";
|
||||
{
|
||||
runtimeInputs = [ retroarch ];
|
||||
# To do add a check for the emulator
|
||||
command = "retroarch -L ${emulator} ${builtins.placeholder "out"}/usr/share/${filename}";
|
||||
|
|
Loading…
Reference in a new issue