lol

Add Kodi retroarch launchers

+44
+39
pkgs/misc/emulators/retroarch/kodi-advanced-launchers.nix
··· 1 + { stdenv, pkgs, cores }: 2 + 3 + assert cores != []; 4 + 5 + with pkgs.lib; 6 + 7 + let 8 + 9 + script = exec: '' 10 + #!${stdenv.shell} 11 + nohup sh -c "sleep 1 && pkill -SIGSTOP kodi" & 12 + nohup sh -c "${exec} '$@' -f;pkill -SIGCONT kodi" 13 + ''; 14 + scriptSh = exec: pkgs.writeScript ("kodi-"+exec.name) (script exec.path); 15 + execs = map (core: rec { name = core.core; path = core+"/bin/retroarch-"+name;}) cores; 16 + 17 + in 18 + 19 + stdenv.mkDerivation rec { 20 + name = "kodi-retroarch-advanced-launchers-${version}"; 21 + version = "0.2"; 22 + 23 + dontBuild = true; 24 + 25 + buildCommand = '' 26 + mkdir -p $out/bin 27 + ${stdenv.lib.concatMapStrings (exec: "ln -s ${scriptSh exec} $out/bin/kodi-${exec.name};") execs} 28 + ''; 29 + 30 + meta = { 31 + description = "Kodi retroarch advanced launchers"; 32 + longDescription = '' 33 + These retroarch launchers are intended to be used with 34 + anglescry advanced launcher for Kodi since device input is 35 + caught by both Kodi and the retroarch process. 36 + ''; 37 + license = stdenv.lib.licenses.gpl3; 38 + }; 39 + }
+5
pkgs/top-level/all-packages.nix
··· 11591 11591 cores = retroArchCores; 11592 11592 }; 11593 11593 11594 + kodi-retroarch-advanced-launchers = 11595 + callPackage ../misc/emulators/retroarch/kodi-advanced-launchers.nix { 11596 + cores = retroArchCores; 11597 + }; 11598 + 11594 11599 xca = callPackage ../applications/misc/xca { }; 11595 11600 11596 11601 xcalib = callPackage ../tools/X11/xcalib { };