From f3313e870c74cb2406b1605cf0843eb58e78b5fb Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Sun, 2 Oct 2022 19:56:48 +0100 Subject: [PATCH] libretro.parallel-n64: return aarch64 patch --- pkgs/applications/emulators/retroarch/cores.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/emulators/retroarch/cores.nix b/pkgs/applications/emulators/retroarch/cores.nix index b06e3f7e1a50..d1ef6521594c 100644 --- a/pkgs/applications/emulators/retroarch/cores.nix +++ b/pkgs/applications/emulators/retroarch/cores.nix @@ -619,6 +619,10 @@ in license = lib.licenses.gpl3Only; extraBuildInputs = [ libGLU libGL libpng ]; makefile = "Makefile"; + postPatch = lib.optionalString stdenv.hostPlatform.isAarch64 '' + sed -i -e '1 i\CPUFLAGS += -DARM_FIX -DNO_ASM -DARM_ASM -DDONT_WANT_ARM_OPTIMIZATIONS -DARM64' Makefile \ + && sed -i -e 's,CPUFLAGS :=,,g' Makefile + ''; }; pcsx2 = mkLibRetroCore {