libretro.parallel-n64: move to retroarch/cores

This commit is contained in:
Thiago Kenji Okada 2024-11-20 12:43:15 +00:00
parent e1dcc59e28
commit 1556d2c6de
2 changed files with 43 additions and 18 deletions

View File

@ -209,24 +209,7 @@ lib.makeScope newScope (self: rec {
opera = self.callPackage ./cores/opera.nix { };
parallel-n64 = mkLibretroCore {
core = "parallel-n64";
extraBuildInputs = [ libGLU libGL libpng ];
makefile = "Makefile";
makeFlags = [
"HAVE_PARALLEL=1"
"HAVE_PARALLEL_RSP=1"
"ARCH=${stdenv.hostPlatform.parsed.cpu.name}"
];
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
'';
meta = {
description = "Parallel Mupen64plus rewrite for libretro";
license = lib.licenses.gpl3Only;
};
};
parallel-n64 = self.callPackage ./cores/parallel-n64.nix { };
pcsx2 = mkLibretroCore {
core = "pcsx2";

View File

@ -0,0 +1,42 @@
{
lib,
stdenv,
fetchFromGitHub,
libGL,
libGLU,
libpng,
mkLibretroCore,
}:
mkLibretroCore {
core = "parallel-n64";
version = "unstable-2024-10-21";
src = fetchFromGitHub {
owner = "libretro";
repo = "parallel-n64";
rev = "e372c5e327dcd649e9d840ffc3d88480b6866eda";
hash = "sha256-q4octB5XDdl4PtLYVZfBgydVBNaOwzu9dPBY+Y68lVo=";
};
extraBuildInputs = [
libGLU
libGL
libpng
];
makefile = "Makefile";
makeFlags = [
"HAVE_PARALLEL=1"
"HAVE_PARALLEL_RSP=1"
"ARCH=${stdenv.hostPlatform.parsed.cpu.name}"
];
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
'';
meta = {
description = "Parallel Mupen64plus rewrite for libretro";
homepage = "https://github.com/libretro/parallel-n64";
license = lib.licenses.gpl3Only;
};
}