Merge pull request #146714 from thiagokokada/remove-retroArchCores

retroArchCores: remove, retroarchFull: init, retroarch: use fixed paths on "libretro_info_path"

authored by Thiago Kenji Okada and committed by GitHub ff4c0970 49e78bbd

+204 -107
+21
nixos/doc/manual/from_md/release-notes/rl-2111.section.xml
··· 1365 <literal>gnat11</literal> instead of <literal>gnat9</literal>. 1366 </para> 1367 </listitem> 1368 </itemizedlist> 1369 </section> 1370 <section xml:id="sec-release-21.11-notable-changes"> ··· 1964 <literal>julia-lts</literal>. In practice this means it has 1965 been upgraded from <literal>1.0.4</literal> to 1966 <literal>1.5.4</literal>. 1967 </para> 1968 </listitem> 1969 </itemizedlist>
··· 1365 <literal>gnat11</literal> instead of <literal>gnat9</literal>. 1366 </para> 1367 </listitem> 1368 + <listitem> 1369 + <para> 1370 + <literal>retroArchCores</literal> has been removed. This means 1371 + that using <literal>nixpkgs.config.retroarch</literal> to 1372 + customize RetroArch cores is not supported anymore. Instead, 1373 + use package overrides, for example: 1374 + <literal>retroarch.override { cores = with libretro; [ citra snes9x ]; };</literal>. 1375 + Also, <literal>retroarchFull</literal> derivation is available 1376 + for those who want to have all RetroArch cores available. 1377 + </para> 1378 + </listitem> 1379 </itemizedlist> 1380 </section> 1381 <section xml:id="sec-release-21.11-notable-changes"> ··· 1975 <literal>julia-lts</literal>. In practice this means it has 1976 been upgraded from <literal>1.0.4</literal> to 1977 <literal>1.5.4</literal>. 1978 + </para> 1979 + </listitem> 1980 + <listitem> 1981 + <para> 1982 + RetroArch has been upgraded from version 1983 + <literal>1.8.5</literal> to <literal>1.9.13.2</literal>. Since 1984 + the previous release was quite old, if you’re having issues 1985 + after the upgrade, please delete your 1986 + <literal>$XDG_CONFIG_HOME/retroarch/retroarch.cfg</literal> 1987 + file. 1988 </para> 1989 </listitem> 1990 </itemizedlist>
+4
nixos/doc/manual/release-notes/rl-2111.section.md
··· 407 - The default GNAT version has been changed: The `gnat` attribute now points to `gnat11` 408 instead of `gnat9`. 409 410 ## Other Notable Changes {#sec-release-21.11-notable-changes} 411 412 ··· 539 - Loki has had another release. Some default values have been changed for the configuration and some configuration options have been renamed. For more details, please check [the upgrade guide](https://grafana.com/docs/loki/latest/upgrading/#240). 540 541 - `julia` now refers to `julia-stable` instead of `julia-lts`. In practice this means it has been upgraded from `1.0.4` to `1.5.4`.
··· 407 - The default GNAT version has been changed: The `gnat` attribute now points to `gnat11` 408 instead of `gnat9`. 409 410 + - `retroArchCores` has been removed. This means that using `nixpkgs.config.retroarch` to customize RetroArch cores is not supported anymore. Instead, use package overrides, for example: `retroarch.override { cores = with libretro; [ citra snes9x ]; };`. Also, `retroarchFull` derivation is available for those who want to have all RetroArch cores available. 411 + 412 ## Other Notable Changes {#sec-release-21.11-notable-changes} 413 414 ··· 541 - Loki has had another release. Some default values have been changed for the configuration and some configuration options have been renamed. For more details, please check [the upgrade guide](https://grafana.com/docs/loki/latest/upgrading/#240). 542 543 - `julia` now refers to `julia-stable` instead of `julia-lts`. In practice this means it has been upgraded from `1.0.4` to `1.5.4`. 544 + 545 + - RetroArch has been upgraded from version `1.8.5` to `1.9.13.2`. Since the previous release was quite old, if you're having issues after the upgrade, please delete your `$XDG_CONFIG_HOME/retroarch/retroarch.cfg` file.
+25
pkgs/misc/emulators/retroarch/0001-Disable-menu_show_core_updater.patch
···
··· 1 + From 546b343294209abbb193883ab76b679b7f99c6d3 Mon Sep 17 00:00:00 2001 2 + From: Thiago Kenji Okada <thiagokokada@gmail.com> 3 + Date: Sat, 20 Nov 2021 16:03:50 -0300 4 + Subject: [PATCH 1/2] Disable "menu_show_core_updater" 5 + 6 + --- 7 + retroarch.cfg | 2 +- 8 + 1 file changed, 1 insertion(+), 1 deletion(-) 9 + 10 + diff --git a/retroarch.cfg b/retroarch.cfg 11 + index cdcb199c9f..ab72f3920f 100644 12 + --- a/retroarch.cfg 13 + +++ b/retroarch.cfg 14 + @@ -681,7 +681,7 @@ 15 + # menu_show_online_updater = true 16 + 17 + # If disabled, will hide the ability to update cores (and core info files) inside the menu. 18 + -# menu_show_core_updater = true 19 + +menu_show_core_updater = false 20 + 21 + # If disabled, the libretro core will keep running in the background when we 22 + # are in the menu. 23 + -- 24 + 2.31.1 25 +
+80
pkgs/misc/emulators/retroarch/0002-Use-fixed-paths-on-libretro_info_path.patch
···
··· 1 + From 6788718299e1aba3ff8b31cd6ef012e8d3643bd3 Mon Sep 17 00:00:00 2001 2 + From: Thiago Kenji Okada <thiagokokada@gmail.com> 3 + Date: Sat, 20 Nov 2021 15:59:23 -0300 4 + Subject: [PATCH 2/2] Use fixed paths on "libretro_info_path" 5 + 6 + This patch sets "libretro_info_path" to `handle = false`, so instead of 7 + using the values from `retroarch.cfg`, it will always use the default. 8 + 9 + Also, it patches the default "libretro_info_path" to the 10 + `@libretro_info_path` string, so we can substitute it with the full path 11 + to it during build. 12 + --- 13 + configuration.c | 2 +- 14 + frontend/drivers/platform_darwin.m | 9 ++------- 15 + frontend/drivers/platform_unix.c | 8 ++++---- 16 + 3 files changed, 7 insertions(+), 12 deletions(-) 17 + 18 + diff --git a/configuration.c b/configuration.c 19 + index e6a3841324..afb1d6e2ce 100644 20 + --- a/configuration.c 21 + +++ b/configuration.c 22 + @@ -1456,7 +1456,7 @@ static struct config_path_setting *populate_settings_path( 23 + SETTING_PATH("core_options_path", 24 + settings->paths.path_core_options, false, NULL, true); 25 + SETTING_PATH("libretro_info_path", 26 + - settings->paths.path_libretro_info, false, NULL, true); 27 + + settings->paths.path_libretro_info, false, NULL, false); 28 + SETTING_PATH("content_database_path", 29 + settings->paths.path_content_database, false, NULL, true); 30 + SETTING_PATH("cheat_database_path", 31 + diff --git a/frontend/drivers/platform_darwin.m b/frontend/drivers/platform_darwin.m 32 + index f922e50c55..52732f65ae 100644 33 + --- a/frontend/drivers/platform_darwin.m 34 + +++ b/frontend/drivers/platform_darwin.m 35 + @@ -383,14 +383,9 @@ static void frontend_darwin_get_env(int *argc, char *argv[], 36 + home_dir_buf, "shaders_glsl", 37 + sizeof(g_defaults.dirs[DEFAULT_DIR_SHADER])); 38 + #endif 39 + -#ifdef HAVE_UPDATE_CORES 40 + fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE], 41 + - home_dir_buf, "cores", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE])); 42 + -#else 43 + - fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE], 44 + - bundle_path_buf, "modules", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE])); 45 + -#endif 46 + - fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE_INFO], home_dir_buf, "info", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE_INFO])); 47 + + "@libretro_directory@", "", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE])); 48 + + fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE_INFO], "@libretro_info_path@", "", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE_INFO])); 49 + fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_OVERLAY], home_dir_buf, "overlays", sizeof(g_defaults.dirs[DEFAULT_DIR_OVERLAY])); 50 + #ifdef HAVE_VIDEO_LAYOUT 51 + fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_VIDEO_LAYOUT], home_dir_buf, "layouts", sizeof(g_defaults.dirs[DEFAULT_DIR_VIDEO_LAYOUT])); 52 + diff --git a/frontend/drivers/platform_unix.c b/frontend/drivers/platform_unix.c 53 + index 722e1c595c..d87e01cf12 100644 54 + --- a/frontend/drivers/platform_unix.c 55 + +++ b/frontend/drivers/platform_unix.c 56 + @@ -1815,8 +1815,8 @@ static void frontend_unix_get_env(int *argc, 57 + strcpy_literal(base_path, "retroarch"); 58 + #endif 59 + 60 + - fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE], base_path, 61 + - "cores", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE])); 62 + + fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE], "@libretro_directory@", 63 + + "", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE])); 64 + #if defined(DINGUX) 65 + /* On platforms that require manual core installation/ 66 + * removal, placing core info files in the same directory 67 + @@ -1825,8 +1825,8 @@ static void frontend_unix_get_env(int *argc, 68 + fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE_INFO], base_path, 69 + "core_info", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE_INFO])); 70 + #else 71 + - fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE_INFO], base_path, 72 + - "cores", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE_INFO])); 73 + + fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE_INFO], "@libretro_info_path@", 74 + + "", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE_INFO])); 75 + #endif 76 + fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_AUTOCONFIG], base_path, 77 + "autoconfig", sizeof(g_defaults.dirs[DEFAULT_DIR_AUTOCONFIG])); 78 + -- 79 + 2.31.1 80 +
+8 -2
pkgs/misc/emulators/retroarch/cores.nix
··· 91 --add-flags "-L $COREDIR/${d2u core}_libretro${stdenv.hostPlatform.extensions.sharedLibrary} $@" 92 ''; 93 94 passthru = { 95 inherit core; 96 libretroCore = "/lib/retroarch/cores"; ··· 427 core = "mame"; 428 description = "Port of MAME to libretro"; 429 license = with lib.licenses; [ bsd3 gpl2Plus ]; 430 - 431 extraBuildInputs = [ alsa-lib libGLU libGL portaudio python3 xorg.libX11 ]; 432 postPatch = '' 433 # Prevent the failure during the parallel building of: ··· 443 license = "MAME"; 444 makefile = "Makefile"; 445 makeFlags = lib.optional (!stdenv.hostPlatform.isx86) "IS_X86=0"; 446 }; 447 448 mame2003 = mkLibRetroCore { ··· 450 description = "Port of MAME ~2003 to libretro"; 451 license = "MAME"; 452 makefile = "Makefile"; 453 }; 454 455 mame2003-plus = mkLibRetroCore { ··· 457 description = "Port of MAME ~2003+ to libretro"; 458 license = "MAME"; 459 makefile = "Makefile"; 460 }; 461 462 mame2010 = mkLibRetroCore { ··· 465 license = "MAME"; 466 makefile = "Makefile"; 467 makeFlags = lib.optionals stdenv.hostPlatform.isAarch64 [ "PTR64=1" "ARM_ENABLED=1" "X86_SH2DRC=0" "FORCE_DRC_C_BACKEND=1" ]; 468 }; 469 470 mame2015 = mkLibRetroCore { ··· 474 extraNativeBuildInputs = [ python27 ]; 475 extraBuildInputs = [ alsa-lib ]; 476 makefile = "Makefile"; 477 }; 478 479 mame2016 = mkLibRetroCore { ··· 494 # make -C 3rdparty/genie/build/gmake.linux -f genie.make obj/Release/src/host/lua-5.3.0/src/lgc.o 495 mkdir -p 3rdparty/genie/build/gmake.linux/obj/Release/src/host/lua-5.3.0/src 496 ''; 497 }; 498 499 mesen = mkLibRetroCore { ··· 523 src = getCoreSrc "mupen64plus"; 524 description = "Libretro port of Mupen64 Plus, GL only"; 525 license = lib.licenses.gpl3Only; 526 - 527 extraBuildInputs = [ libGLU libGL libpng nasm xorg.libX11 ]; 528 makefile = "Makefile"; 529 };
··· 91 --add-flags "-L $COREDIR/${d2u core}_libretro${stdenv.hostPlatform.extensions.sharedLibrary} $@" 92 ''; 93 94 + enableParallelBuilding = true; 95 + 96 passthru = { 97 inherit core; 98 libretroCore = "/lib/retroarch/cores"; ··· 429 core = "mame"; 430 description = "Port of MAME to libretro"; 431 license = with lib.licenses; [ bsd3 gpl2Plus ]; 432 extraBuildInputs = [ alsa-lib libGLU libGL portaudio python3 xorg.libX11 ]; 433 postPatch = '' 434 # Prevent the failure during the parallel building of: ··· 444 license = "MAME"; 445 makefile = "Makefile"; 446 makeFlags = lib.optional (!stdenv.hostPlatform.isx86) "IS_X86=0"; 447 + enableParallelBuilding = false; 448 }; 449 450 mame2003 = mkLibRetroCore { ··· 452 description = "Port of MAME ~2003 to libretro"; 453 license = "MAME"; 454 makefile = "Makefile"; 455 + enableParallelBuilding = false; 456 }; 457 458 mame2003-plus = mkLibRetroCore { ··· 460 description = "Port of MAME ~2003+ to libretro"; 461 license = "MAME"; 462 makefile = "Makefile"; 463 + enableParallelBuilding = false; 464 }; 465 466 mame2010 = mkLibRetroCore { ··· 469 license = "MAME"; 470 makefile = "Makefile"; 471 makeFlags = lib.optionals stdenv.hostPlatform.isAarch64 [ "PTR64=1" "ARM_ENABLED=1" "X86_SH2DRC=0" "FORCE_DRC_C_BACKEND=1" ]; 472 + enableParallelBuilding = false; 473 }; 474 475 mame2015 = mkLibRetroCore { ··· 479 extraNativeBuildInputs = [ python27 ]; 480 extraBuildInputs = [ alsa-lib ]; 481 makefile = "Makefile"; 482 + enableParallelBuilding = false; 483 }; 484 485 mame2016 = mkLibRetroCore { ··· 500 # make -C 3rdparty/genie/build/gmake.linux -f genie.make obj/Release/src/host/lua-5.3.0/src/lgc.o 501 mkdir -p 3rdparty/genie/build/gmake.linux/obj/Release/src/host/lua-5.3.0/src 502 ''; 503 + enableParallelBuilding = false; 504 }; 505 506 mesen = mkLibRetroCore { ··· 530 src = getCoreSrc "mupen64plus"; 531 description = "Libretro port of Mupen64 Plus, GL only"; 532 license = lib.licenses.gpl3Only; 533 extraBuildInputs = [ libGLU libGL libpng nasm xorg.libX11 ]; 534 makefile = "Makefile"; 535 };
+12 -9
pkgs/misc/emulators/retroarch/default.nix
··· 55 }; 56 57 patches = [ 58 - # FIXME: The `retroarch.cfg` file is created once in the first run and only 59 - # updated when needed. However, the file may have out-of-date paths 60 - # In case of issues (e.g.: cores are not loading), please delete the 61 - # `$XDG_CONFIG_HOME/retroarch/retroarch.cfg` file 62 - # See: https://github.com/libretro/RetroArch/issues/13251 63 - ./fix-config.patch 64 ]; 65 66 postPatch = '' 67 - substituteInPlace retroarch.cfg \ 68 --replace "@libretro_directory@" "$out/lib" \ 69 - --replace "@libretro_info_path@" "$out/share/libretro/info" \ 70 ''; 71 72 - nativeBuildInputs = [ pkg-config wayland ] ++ 73 optional withVulkan makeWrapper; 74 75 buildInputs = [ ffmpeg freetype libxml2 libGLU libGL python3 SDL2 which ] ++ ··· 110 license = licenses.gpl3Plus; 111 platforms = platforms.all; 112 maintainers = with maintainers; [ MP2E edwtjo matthewbauer kolbycrouch thiagokokada ]; 113 }; 114 }
··· 55 }; 56 57 patches = [ 58 + ./0001-Disable-menu_show_core_updater.patch 59 + ./0002-Use-fixed-paths-on-libretro_info_path.patch 60 ]; 61 62 postPatch = '' 63 + substituteInPlace "frontend/drivers/platform_unix.c" \ 64 --replace "@libretro_directory@" "$out/lib" \ 65 + --replace "@libretro_info_path@" "$out/share/libretro/info" 66 + substituteInPlace "frontend/drivers/platform_darwin.m" \ 67 + --replace "@libretro_directory@" "$out/lib" \ 68 + --replace "@libretro_info_path@" "$out/share/libretro/info" 69 ''; 70 71 + nativeBuildInputs = [ pkg-config ] ++ 72 + optional stdenv.isLinux wayland ++ 73 optional withVulkan makeWrapper; 74 75 buildInputs = [ ffmpeg freetype libxml2 libGLU libGL python3 SDL2 which ] ++ ··· 110 license = licenses.gpl3Plus; 111 platforms = platforms.all; 112 maintainers = with maintainers; [ MP2E edwtjo matthewbauer kolbycrouch thiagokokada ]; 113 + # FIXME: exits with error on macOS: 114 + # No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting 115 + broken = stdenv.isDarwin; 116 }; 117 }
+13
pkgs/misc/emulators/retroarch/disable-menu-show-core-updater.patch
···
··· 1 + diff --git a/retroarch.cfg b/retroarch.cfg 2 + index cdcb199c9f..ab72f3920f 100644 3 + --- a/retroarch.cfg 4 + +++ b/retroarch.cfg 5 + @@ -681,7 +681,7 @@ 6 + # menu_show_online_updater = true 7 + 8 + # If disabled, will hide the ability to update cores (and core info files) inside the menu. 9 + -# menu_show_core_updater = true 10 + +menu_show_core_updater = false 11 + 12 + # If disabled, the libretro core will keep running in the background when we 13 + # are in the menu.
+28
pkgs/misc/emulators/retroarch/fix-libretro-paths.patch
···
··· 1 + diff --git a/configuration.c b/configuration.c 2 + index e6a3841324..afb1d6e2ce 100644 3 + --- a/configuration.c 4 + +++ b/configuration.c 5 + @@ -1456,7 +1456,7 @@ static struct config_path_setting *populate_settings_path( 6 + SETTING_PATH("core_options_path", 7 + settings->paths.path_core_options, false, NULL, true); 8 + SETTING_PATH("libretro_info_path", 9 + - settings->paths.path_libretro_info, false, NULL, true); 10 + + settings->paths.path_libretro_info, false, NULL, false); 11 + SETTING_PATH("content_database_path", 12 + settings->paths.path_content_database, false, NULL, true); 13 + SETTING_PATH("cheat_database_path", 14 + diff --git a/frontend/drivers/platform_unix.c b/frontend/drivers/platform_unix.c 15 + index 722e1c595c..e7313ee038 100644 16 + --- a/frontend/drivers/platform_unix.c 17 + +++ b/frontend/drivers/platform_unix.c 18 + @@ -1825,8 +1825,8 @@ static void frontend_unix_get_env(int *argc, 19 + fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE_INFO], base_path, 20 + "core_info", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE_INFO])); 21 + #else 22 + - fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE_INFO], base_path, 23 + - "cores", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE_INFO])); 24 + + fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE_INFO], "@libretro_info_path@", 25 + + "", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE_INFO])); 26 + #endif 27 + fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_AUTOCONFIG], base_path, 28 + "autoconfig", sizeof(g_defaults.dirs[DEFAULT_DIR_AUTOCONFIG]));
+1 -3
pkgs/misc/emulators/retroarch/kodi-advanced-launchers.nix
··· 1 - { stdenv, pkgs, lib, cores, runtimeShell }: 2 - 3 - assert cores != []; 4 5 let 6
··· 1 + { stdenv, pkgs, lib, runtimeShell, cores ? [ ] }: 2 3 let 4
+3 -1
pkgs/top-level/aliases.nix
··· 787 qt-3 = throw "qt-3 has been removed from nixpkgs, as it's unmaintained and insecure"; # added 2021-02-15 788 rfkill = throw "rfkill has been removed, as it's included in util-linux"; # added 2020-08-23 789 riak-cs = throw "riak-cs is not maintained anymore"; # added 2020-10-14 790 - ring-daemon = jami-daemon; #added 2021-10-26 791 radare2-cutter = cutter; # added 2021-03-30 792 redkite = throw "redkite was archived by upstream"; # added 2021-04-12 793 rkt = throw "rkt was archived by upstream"; # added 2020-05-16 794 rpiboot-unstable = rpiboot; # added 2021-07-30 795 rtv = throw "rtv was archived by upstream. Consider using tuir, an actively maintained fork"; # added 2021-08-08 ··· 992 wireshark-gtk = throw "wireshark-gtk is not supported anymore. Use wireshark-qt or wireshark-cli instead."; # added 2019-11-18 993 wireguard = wireguard-tools; # added 2018-05-19 994 morituri = whipper; # added 2018-09-13 995 xp-pen-g430 = pentablet-driver; # added 2020-05-03 996 xdg_utils = xdg-utils; # added 2021-02-01 997 xfceUnstable = xfce4-14; # added 2019-09-17
··· 787 qt-3 = throw "qt-3 has been removed from nixpkgs, as it's unmaintained and insecure"; # added 2021-02-15 788 rfkill = throw "rfkill has been removed, as it's included in util-linux"; # added 2020-08-23 789 riak-cs = throw "riak-cs is not maintained anymore"; # added 2020-10-14 790 + ring-daemon = jami-daemon; # added 2021-10-26 791 radare2-cutter = cutter; # added 2021-03-30 792 redkite = throw "redkite was archived by upstream"; # added 2021-04-12 793 + retroArchCores = throw "retroArchCores has been removed. Please use overrides instead, e.g.: `retroarch.override { cores = with libretro; [ ... ]; }`"; # added 2021-11-19 794 rkt = throw "rkt was archived by upstream"; # added 2020-05-16 795 rpiboot-unstable = rpiboot; # added 2021-07-30 796 rtv = throw "rtv was archived by upstream. Consider using tuir, an actively maintained fork"; # added 2021-08-08 ··· 993 wireshark-gtk = throw "wireshark-gtk is not supported anymore. Use wireshark-qt or wireshark-cli instead."; # added 2019-11-18 994 wireguard = wireguard-tools; # added 2018-05-19 995 morituri = whipper; # added 2018-09-13 996 + xbmc-retroarch-advanced-launchers = kodi-retroarch-advanced-launchers; # added 2021-11-19 997 xp-pen-g430 = pentablet-driver; # added 2020-05-03 998 xdg_utils = xdg-utils; # added 2021-02-01 999 xfceUnstable = xfce4-14; # added 2019-09-17
+9 -92
pkgs/top-level/all-packages.nix
··· 29124 29125 wp-cli = callPackage ../development/tools/wp-cli { }; 29126 29127 - retroArchCores = 29128 - let 29129 - cfg = config.retroarch or {}; 29130 - inherit (lib) optional; 29131 - in with libretro; 29132 - ([ ] 29133 - ++ optional (cfg.enableAtari800 or false) atari800 29134 - ++ optional (cfg.enableBeetleGBA or false) beetle-gba 29135 - ++ optional (cfg.enableBeetleLynx or false) beetle-lynx 29136 - ++ optional (cfg.enableBeetleNGP or false) beetle-ngp 29137 - ++ optional (cfg.enableBeetlePCEFast or false) beetle-pce-fast 29138 - ++ optional (cfg.enableBeetlePCFX or false) beetle-pcfx 29139 - ++ optional (cfg.enableBeetlePSX or false) beetle-psx 29140 - ++ optional (cfg.enableBeetlePSXHW or false) beetle-psx-hw 29141 - ++ optional (cfg.enableBeetleSaturn or false) beetle-saturn 29142 - ++ optional (cfg.enableBeetleSaturnHW or false) beetle-saturn-hw 29143 - ++ optional (cfg.enableBeetleSNES or false) beetle-snes 29144 - ++ optional (cfg.enableBeetleSuperGrafx or false) beetle-supergrafx 29145 - ++ optional (cfg.enableBeetleWswan or false) beetle-wswan 29146 - ++ optional (cfg.enableBeetleVB or false) beetle-vb 29147 - ++ optional (cfg.enableBlueMSX or false) bluemsx 29148 - ++ optional (cfg.enableBsnesMercury or false) bsnes-mercury 29149 - ++ optional (cfg.enableCitra or false) citra 29150 - ++ optional (cfg.enableDesmume or false) desmume 29151 - ++ optional (cfg.enableDesmume2015 or false) desmume2015 29152 - ++ optional (cfg.enableDolphin or false) dolphin 29153 - ++ optional (cfg.enableDOSBox or false) dosbox 29154 - ++ optional (cfg.enableEightyOne or false) eightyone 29155 - ++ optional (cfg.enableFBAlpha2012 or false) fbalpha2012 29156 - ++ optional (cfg.enableFBNeo or false) fbneo 29157 - ++ optional (cfg.enableFceumm or false) fceumm 29158 - ++ optional (cfg.enableFlycast or false) flycast 29159 - ++ optional (cfg.enableFMSX or false) fmsx 29160 - ++ optional (cfg.enableFreeIntv or false) freeintv 29161 - ++ optional (cfg.enableGambatte or false) gambatte 29162 - ++ optional (cfg.enableGenesisPlusGX or false) genesis-plus-gx 29163 - ++ optional (cfg.enableGpsp or false) gpsp 29164 - ++ optional (cfg.enableGW or false) gw 29165 - ++ optional (cfg.enableHandy or false) handy 29166 - ++ optional (cfg.enableHatari or false) hatari 29167 - ++ optional (cfg.enableMAME or false) mame 29168 - ++ optional (cfg.enableMAME2000 or false) mame2000 29169 - ++ optional (cfg.enableMAME2003 or false) mame2003 29170 - ++ optional (cfg.enableMAME2003Plus or false) mame2003-plus 29171 - ++ optional (cfg.enableMAME2010 or false) mame2010 29172 - ++ optional (cfg.enableMAME2015 or false) mame2015 29173 - ++ optional (cfg.enableMAME2016 or false) mame2016 29174 - ++ optional (cfg.enableMesen or false) mesen 29175 - ++ optional (cfg.enableMeteor or false) meteor 29176 - ++ optional (cfg.enableMGBA or false) mgba 29177 - ++ optional (cfg.enableMupen64Plus or false) mupen64plus 29178 - ++ optional (cfg.enableNeoCD or false) neocd 29179 - ++ optional (cfg.enableNestopia or false) nestopia 29180 - ++ optional (cfg.enableNP2kai or false) np2kai 29181 - ++ optional (cfg.enableO2EM or false) o2em 29182 - ++ optional (cfg.enableOpera or false) opera 29183 - ++ optional (cfg.enableParallelN64 or false) parallel-n64 29184 - ++ optional (cfg.enablePCSXRearmed or false) pcsx_rearmed 29185 - ++ optional (cfg.enablePicodrive or false) picodrive 29186 - ++ optional (cfg.enablePlay or false) play 29187 - ++ optional (cfg.enablePPSSPP or false) ppsspp 29188 - ++ optional (cfg.enablePrboom or false) prboom 29189 - ++ optional (cfg.enableProSystem or false) prosystem 29190 - ++ optional (cfg.enableQuickNES or false) quicknes 29191 - ++ optional (cfg.enableSameBoy or false) sameboy 29192 - ++ optional (cfg.enableScummVM or false) scummvm 29193 - ++ optional (cfg.enableSMSPlusGX or false) smsplus-gx 29194 - ++ optional (cfg.enableSnes9x or false) snes9x 29195 - ++ optional (cfg.enableSnes9x2002 or false) snes9x2002 29196 - ++ optional (cfg.enableSnes9x2005 or false) snes9x2005 29197 - ++ optional (cfg.enableSnes9x2010 or false) snes9x2010 29198 - ++ optional (cfg.enableStella or false) stella 29199 - ++ optional (cfg.enableStella2014 or false) stella2014 29200 - ++ optional (cfg.enableTGBDual or false) tgbdual 29201 - ++ optional (cfg.enableThePowderToy or false) the-powder-toy 29202 - ++ optional (cfg.enableTIC80 or false) tic80 29203 - ++ optional (cfg.enableVbaNext or false) vba-next 29204 - ++ optional (cfg.enableVbaM or false) vba-m 29205 - ++ optional (cfg.enableVecx or false) vecx 29206 - ++ optional (cfg.enableVirtualJaguar or false) virtualjaguar 29207 - ++ optional (cfg.enableYabause or false) yabause 29208 - ); 29209 - 29210 - wrapRetroArch = { retroarch }: callPackage ../misc/emulators/retroarch/wrapper.nix { 29211 - inherit retroarch; 29212 - cores = retroArchCores; 29213 - }; 29214 - 29215 wsjtx = qt5.callPackage ../applications/radio/wsjtx { }; 29216 29217 wxhexeditor = callPackage ../applications/editors/wxhexeditor { ··· 29291 kodi-cli = callPackage ../tools/misc/kodi-cli { }; 29292 29293 kodi-retroarch-advanced-launchers = 29294 - callPackage ../misc/emulators/retroarch/kodi-advanced-launchers.nix { 29295 - cores = retroArchCores; 29296 - }; 29297 - xbmc-retroarch-advanced-launchers = kodi-retroarch-advanced-launchers; 29298 29299 xca = libsForQt5.callPackage ../applications/misc/xca { }; 29300 ··· 32867 inherit (darwin.apple_sdk.frameworks) AppKit Foundation; 32868 }; 32869 32870 retroarch = wrapRetroArch { retroarch = retroarchBare; }; 32871 32872 libretro = recurseIntoAttrs (callPackage ../misc/emulators/retroarch/cores.nix { 32873 retroarch = retroarchBare;
··· 29124 29125 wp-cli = callPackage ../development/tools/wp-cli { }; 29126 29127 wsjtx = qt5.callPackage ../applications/radio/wsjtx { }; 29128 29129 wxhexeditor = callPackage ../applications/editors/wxhexeditor { ··· 29203 kodi-cli = callPackage ../tools/misc/kodi-cli { }; 29204 29205 kodi-retroarch-advanced-launchers = 29206 + callPackage ../misc/emulators/retroarch/kodi-advanced-launchers.nix { }; 29207 29208 xca = libsForQt5.callPackage ../applications/misc/xca { }; 29209 ··· 32776 inherit (darwin.apple_sdk.frameworks) AppKit Foundation; 32777 }; 32778 32779 + wrapRetroArch = { retroarch }: callPackage ../misc/emulators/retroarch/wrapper.nix { 32780 + inherit retroarch; 32781 + }; 32782 + 32783 retroarch = wrapRetroArch { retroarch = retroarchBare; }; 32784 + 32785 + retroarchFull = retroarch.override { 32786 + cores = builtins.filter (c: c ? libretroCore) (builtins.attrValues libretro); 32787 + }; 32788 32789 libretro = recurseIntoAttrs (callPackage ../misc/emulators/retroarch/cores.nix { 32790 retroarch = retroarchBare;