Skip to content

Commit 5c589d8

Browse files
committed
libretro: fix core platforms
1 parent 7ff536e commit 5c589d8

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

pkgs/misc/emulators/retroarch/cores.nix

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ let
5959
, src ? null
6060
, broken ? false
6161
, version ? "unstable-2021-11-22"
62+
, platforms ? retroarch.meta.platforms
6263
, ...
6364
}@args:
6465
lib.makeOverridable stdenv.mkDerivation (
@@ -109,10 +110,9 @@ let
109110
};
110111

111112
meta = with lib; {
112-
inherit broken description license;
113+
inherit broken description license platforms;
113114
homepage = "https://www.libretro.com/";
114115
maintainers = with maintainers; [ edwtjo hrdinka MP2E thiagokokada ];
115-
platforms = platforms.unix;
116116
};
117117
}) // builtins.removeAttrs args [ "core" "src" "description" "license" "makeFlags" ]
118118
);
@@ -193,7 +193,7 @@ in
193193
description = "Port of Mednafen's Saturn core to libretro";
194194
license = lib.licenses.gpl2Only;
195195
makefile = "Makefile";
196-
meta.platforms = [ "x86_64-linux" "aarch64-linux" ];
196+
platforms = [ "x86_64-linux" "aarch64-linux" ];
197197
};
198198

199199
beetle-snes = mkLibRetroCore {
@@ -423,7 +423,7 @@ in
423423
extraBuildInputs = [ libGL libGLU ];
424424
makefile = "Makefile";
425425
makeFlags = lib.optional stdenv.hostPlatform.isAarch64 [ "platform=arm64" ];
426-
meta.platforms = [ "aarch64-linux" "x86_64-linux" ];
426+
platforms = [ "aarch64-linux" "x86_64-linux" ];
427427
};
428428

429429
fmsx = mkLibRetroCore {
@@ -701,6 +701,7 @@ in
701701
substituteInPlace CMakeLists.txt --replace "ccache" ""
702702
'';
703703
postBuild = "cd /build/source/build/pcsx2";
704+
platforms = lib.platforms.x86;
704705
};
705706

706707
pcsx_rearmed = mkLibRetroCore {

pkgs/misc/emulators/retroarch/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ stdenv.mkDerivation rec {
110110
homepage = "https://libretro.com";
111111
description = "Multi-platform emulator frontend for libretro cores";
112112
license = licenses.gpl3Plus;
113-
platforms = platforms.all;
113+
platforms = platforms.unix;
114114
maintainers = with maintainers; [ MP2E edwtjo matthewbauer kolbycrouch thiagokokada ];
115115
# FIXME: exits with error on macOS:
116116
# No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting

0 commit comments

Comments
 (0)