1 { stdenv, pkgs, lib, runtimeShell, cores ? [ ] }:
7 nohup sh -c "pkill -SIGTSTP kodi" &
8 # https://forum.kodi.tv/showthread.php?tid=185074&pid=1622750#pid1622750
9 nohup sh -c "sleep 10 && ${exec} '$@' -f;pkill -SIGCONT kodi"
11 scriptSh = exec: pkgs.writeScript ("kodi-"+exec.name) (script exec.path);
12 execs = map (core: rec { name = core.core; path = core+"/bin/retroarch-"+name;}) cores;
17 pname = "kodi-retroarch-advanced-launchers";
24 ${lib.concatMapStrings (exec: "ln -s ${scriptSh exec} $out/bin/kodi-${exec.name};") execs}
28 description = "Kodi retroarch advanced launchers";
30 These retroarch launchers are intended to be used with
31 advanced (emulation) launcher for Kodi since device input is
32 otherwise caught by both Kodi and the retroarch process.
34 license = lib.licenses.gpl3;