mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
libretro.parallel-n64: move to retroarch/cores
This commit is contained in:
parent
e1dcc59e28
commit
1556d2c6de
@ -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";
|
||||
|
42
pkgs/applications/emulators/retroarch/cores/parallel-n64.nix
Normal file
42
pkgs/applications/emulators/retroarch/cores/parallel-n64.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user