about summary refs log tree commit diff
path: root/pkgs/applications/emulators/retroarch/wrapper.nix
diff options
context:
space:
mode:
authorThiago Kenji Okada <thiagokokada@gmail.com>2022-03-05 01:00:30 +0000
committerThiago Kenji Okada <thiagokokada@gmail.com>2022-04-08 17:27:10 +0100
commit6b4c7368fa83180853063373a5b7e332fe44363c (patch)
treed715168bbc19b6e64e8745cbbde0083d3b634267 /pkgs/applications/emulators/retroarch/wrapper.nix
parent503c8093be41b0225b0dd1b1fabba5656b6b1615 (diff)
retroarchBare: re-add support to Darwin
This still doesn't fix our wrapped retroarch binary, but should be
sufficient to build retroarch+cores in Darwin.
Diffstat (limited to 'pkgs/applications/emulators/retroarch/wrapper.nix')
-rw-r--r--pkgs/applications/emulators/retroarch/wrapper.nix16
1 files changed, 10 insertions, 6 deletions
diff --git a/pkgs/applications/emulators/retroarch/wrapper.nix b/pkgs/applications/emulators/retroarch/wrapper.nix
index b3797c9e9e368..6adcb8ffd8b44 100644
--- a/pkgs/applications/emulators/retroarch/wrapper.nix
+++ b/pkgs/applications/emulators/retroarch/wrapper.nix
@@ -8,8 +8,7 @@ stdenv.mkDerivation {
 
   buildCommand = ''
     mkdir -p $out/lib
-    for coreDir in $cores
-    do
+    for coreDir in $cores; do
       ln -s $coreDir/* $out/lib/.
     done
 
@@ -29,9 +28,14 @@ stdenv.mkDerivation {
 
   meta = with retroarch.meta; {
     inherit changelog description homepage license maintainers platforms;
-    longDescription =
-      "RetroArch is the reference frontend for the libretro API. The following cores are included: "
-      + lib.concatStringsSep ", " (map (x: "${x.name}") cores)
-      + ".";
+    longDescription = ''
+      RetroArch is the reference frontend for the libretro API.
+
+      The following cores are included:
+      ${lib.concatStringsSep "\n" (map (x: "  - ${x.name}") cores)}
+    '';
+    # FIXME: exits with error on macOS:
+    # No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting
+    broken = stdenv.isDarwin;
   };
 }