2021-11-15 17:07:07 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, alsa-lib
|
|
|
|
, boost
|
2021-12-06 21:10:30 +00:00
|
|
|
, bzip2
|
2021-11-15 17:07:07 +00:00
|
|
|
, cmake
|
|
|
|
, curl
|
|
|
|
, fetchFromGitHub
|
2022-10-28 13:12:12 +01:00
|
|
|
, fetchpatch
|
2021-11-15 17:07:07 +00:00
|
|
|
, ffmpeg
|
|
|
|
, fluidsynth
|
|
|
|
, gettext
|
|
|
|
, hexdump
|
|
|
|
, hidapi
|
|
|
|
, icu
|
2021-11-27 19:05:34 +00:00
|
|
|
, libaio
|
2022-04-08 18:10:28 +01:00
|
|
|
, libevdev
|
2021-11-15 17:07:07 +00:00
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, libjpeg
|
|
|
|
, libpcap
|
|
|
|
, libpng
|
|
|
|
, libvorbis
|
2021-11-27 19:05:34 +00:00
|
|
|
, libxml2
|
2021-11-15 17:07:07 +00:00
|
|
|
, libzip
|
|
|
|
, makeWrapper
|
|
|
|
, nasm
|
|
|
|
, openssl
|
|
|
|
, pcre
|
|
|
|
, pkg-config
|
|
|
|
, portaudio
|
|
|
|
, python3
|
|
|
|
, retroarch
|
|
|
|
, sfml
|
|
|
|
, snappy
|
|
|
|
, udev
|
|
|
|
, which
|
|
|
|
, xorg
|
2021-11-27 19:05:34 +00:00
|
|
|
, xxd
|
|
|
|
, xz
|
2021-11-15 17:07:07 +00:00
|
|
|
, zlib
|
|
|
|
}:
|
libretro-cores:
- adding: 4do, desmume, fceumm, mame, mupen64plus, scummvm,
snes9x, stella, picodrive, ppsspp and vba
retroarch:
- added retroarch wrapper for configured cores
- changed attributes, old retroarch is now retroarchBare*
2014-08-26 18:32:35 +01:00
|
|
|
|
|
|
|
let
|
2021-11-17 14:06:26 +00:00
|
|
|
hashesFile = builtins.fromJSON (builtins.readFile ./hashes.json);
|
|
|
|
|
|
|
|
getCoreSrc = core:
|
|
|
|
fetchFromGitHub (builtins.getAttr core hashesFile);
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
mkLibretroCore =
|
2021-11-15 17:07:07 +00:00
|
|
|
{ core
|
2022-01-02 20:50:52 +00:00
|
|
|
, src ? (getCoreSrc core)
|
2022-10-18 18:14:23 +01:00
|
|
|
, version ? "unstable-2022-10-18"
|
2021-11-15 17:07:07 +00:00
|
|
|
, ...
|
|
|
|
}@args:
|
2022-10-28 13:12:12 +01:00
|
|
|
import ./mkLibretroCore.nix ({
|
|
|
|
inherit lib stdenv core src version makeWrapper retroarch zlib;
|
|
|
|
} // args);
|
2021-11-15 17:07:07 +00:00
|
|
|
in
|
libretro-cores:
- adding: 4do, desmume, fceumm, mame, mupen64plus, scummvm,
snes9x, stella, picodrive, ppsspp and vba
retroarch:
- added retroarch wrapper for configured cores
- changed attributes, old retroarch is now retroarchBare*
2014-08-26 18:32:35 +01:00
|
|
|
{
|
2022-10-28 13:12:12 +01:00
|
|
|
inherit mkLibretroCore;
|
2021-11-22 02:23:39 +00:00
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
atari800 = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "atari800";
|
|
|
|
makefile = "Makefile";
|
2020-03-22 02:54:01 +00:00
|
|
|
makeFlags = [ "GIT_VERSION=" ];
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Atari800 to libretro";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
beetle-gba = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "mednafen-gba";
|
2021-11-15 17:07:07 +00:00
|
|
|
src = getCoreSrc "beetle-gba";
|
2019-11-02 11:16:10 +00:00
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Mednafen's GameBoy Advance core to libretro";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
beetle-lynx = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "mednafen-lynx";
|
2021-11-15 17:07:07 +00:00
|
|
|
src = getCoreSrc "beetle-lynx";
|
2019-11-02 11:16:10 +00:00
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Mednafen's Lynx core to libretro";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
beetle-ngp = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "mednafen-ngp";
|
2021-11-15 17:07:07 +00:00
|
|
|
src = getCoreSrc "beetle-ngp";
|
2019-11-02 11:16:10 +00:00
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Mednafen's NeoGeo Pocket core to libretro";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
libretro-cores:
- adding: 4do, desmume, fceumm, mame, mupen64plus, scummvm,
snes9x, stella, picodrive, ppsspp and vba
retroarch:
- added retroarch wrapper for configured cores
- changed attributes, old retroarch is now retroarchBare*
2014-08-26 18:32:35 +01:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
beetle-pce-fast = mkLibretroCore {
|
2021-11-17 12:56:08 +00:00
|
|
|
core = "mednafen-pce-fast";
|
|
|
|
src = getCoreSrc "beetle-pce-fast";
|
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Mednafen's PC Engine core to libretro";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2021-11-17 12:56:08 +00:00
|
|
|
};
|
2019-11-07 16:29:26 +00:00
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
beetle-pcfx = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "mednafen-pcfx";
|
2021-11-15 17:07:07 +00:00
|
|
|
src = getCoreSrc "beetle-pcfx";
|
2019-11-02 11:16:10 +00:00
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Mednafen's PCFX core to libretro";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
2017-02-25 15:14:35 +00:00
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
beetle-psx = mkLibretroCore {
|
2017-02-25 15:14:35 +00:00
|
|
|
core = "mednafen-psx";
|
2021-11-15 17:07:07 +00:00
|
|
|
src = getCoreSrc "beetle-psx";
|
2019-11-02 11:16:10 +00:00
|
|
|
makefile = "Makefile";
|
2020-03-15 05:48:14 +00:00
|
|
|
makeFlags = [ "HAVE_HW=0" "HAVE_LIGHTREC=1" ];
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Mednafen's PSX Engine core to libretro";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2021-11-17 12:56:08 +00:00
|
|
|
};
|
2017-02-25 15:14:35 +00:00
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
beetle-psx-hw = mkLibretroCore {
|
2020-03-15 05:48:14 +00:00
|
|
|
core = "mednafen-psx-hw";
|
2021-11-15 17:07:07 +00:00
|
|
|
src = getCoreSrc "beetle-psx";
|
2020-03-15 05:48:14 +00:00
|
|
|
extraBuildInputs = [ libGL libGLU ];
|
|
|
|
makefile = "Makefile";
|
|
|
|
makeFlags = [ "HAVE_VULKAN=1" "HAVE_OPENGL=1" "HAVE_HW=1" "HAVE_LIGHTREC=1" ];
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Mednafen's PSX Engine (with HW accel) core to libretro";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2021-11-17 12:56:08 +00:00
|
|
|
};
|
2020-03-15 05:48:14 +00:00
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
beetle-saturn = mkLibretroCore {
|
2017-02-25 15:14:35 +00:00
|
|
|
core = "mednafen-saturn";
|
2021-11-15 17:07:07 +00:00
|
|
|
src = getCoreSrc "beetle-saturn";
|
2020-03-15 05:48:14 +00:00
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Mednafen's Saturn core to libretro";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
platforms = [ "aarch64-linux" "x86_64-linux" ];
|
|
|
|
};
|
2021-11-17 12:56:08 +00:00
|
|
|
};
|
2019-11-07 16:29:26 +00:00
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
beetle-snes = mkLibretroCore {
|
2021-11-22 02:14:17 +00:00
|
|
|
core = "mednafen-snes";
|
|
|
|
src = getCoreSrc "beetle-snes";
|
2019-11-02 11:16:10 +00:00
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Mednafen's SNES core to libretro";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2022-10-06 23:29:38 +01:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
beetle-supafaust = mkLibretroCore {
|
2022-10-06 23:29:38 +01:00
|
|
|
core = "mednafen-supafaust";
|
|
|
|
src = getCoreSrc "beetle-supafaust";
|
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Mednafen's experimental snes_faust core to libretro";
|
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
beetle-supergrafx = mkLibretroCore {
|
2021-11-22 02:14:17 +00:00
|
|
|
core = "mednafen-supergrafx";
|
|
|
|
src = getCoreSrc "beetle-supergrafx";
|
2019-11-02 11:16:10 +00:00
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Mednafen's SuperGrafx core to libretro";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
beetle-vb = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "mednafen-vb";
|
2021-11-15 17:07:07 +00:00
|
|
|
src = getCoreSrc "beetle-vb";
|
2019-11-02 11:16:10 +00:00
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Mednafen's VirtualBoy core to libretro";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
beetle-wswan = mkLibretroCore {
|
2021-11-22 02:14:17 +00:00
|
|
|
core = "mednafen-wswan";
|
|
|
|
src = getCoreSrc "beetle-wswan";
|
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Mednafen's WonderSwan core to libretro";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2021-11-22 02:14:17 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
blastem = mkLibretroCore {
|
2021-11-23 00:14:04 +00:00
|
|
|
core = "blastem";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of BlastEm to libretro";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
platforms = lib.platforms.x86;
|
|
|
|
};
|
2021-11-23 00:14:04 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
bluemsx = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "bluemsx";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of BlueMSX to libretro";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2017-02-25 15:14:35 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
bsnes = mkLibretroCore {
|
2021-11-22 21:14:27 +00:00
|
|
|
core = "bsnes";
|
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of bsnes to libretro";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
};
|
2021-11-22 21:14:27 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
bsnes-hd = mkLibretroCore {
|
|
|
|
core = "bsnes-hd-beta";
|
|
|
|
src = getCoreSrc "bsnes-hd";
|
|
|
|
makefile = "GNUmakefile";
|
|
|
|
makeFlags =
|
|
|
|
let
|
|
|
|
# linux = bsd
|
|
|
|
# https://github.com/DerKoun/bsnes-hd/blob/f0b6cf34e9780d53516977ed2de64137a8bcc3c5/bsnes/GNUmakefile#L37
|
|
|
|
platform = if stdenv.isDarwin then "macos" else "linux";
|
|
|
|
in
|
|
|
|
[
|
2021-11-22 21:50:00 +00:00
|
|
|
"-C"
|
|
|
|
"bsnes"
|
|
|
|
"target=libretro"
|
|
|
|
"platform=${platform}"
|
|
|
|
];
|
2022-10-28 13:12:12 +01:00
|
|
|
extraBuildInputs = [ xorg.libX11 xorg.libXext ];
|
|
|
|
postBuild = "cd bsnes/out";
|
|
|
|
meta = {
|
|
|
|
description = "Port of bsnes-hd to libretro";
|
|
|
|
license = lib.licenses.gpl3Only;
|
2021-11-22 21:50:00 +00:00
|
|
|
};
|
2022-10-28 13:12:12 +01:00
|
|
|
};
|
2021-11-22 21:50:00 +00:00
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
bsnes-mercury = mkLibretroCore {
|
2021-11-17 12:56:08 +00:00
|
|
|
core = "bsnes-mercury-accuracy";
|
|
|
|
src = getCoreSrc "bsnes-mercury";
|
|
|
|
makefile = "Makefile";
|
|
|
|
makeFlags = [ "PROFILE=accuracy" ];
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Fork of bsnes with HLE DSP emulation restored (accuracy profile)";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
};
|
2021-11-17 12:56:08 +00:00
|
|
|
};
|
2020-03-15 05:48:14 +00:00
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
bsnes-mercury-balanced = mkLibretroCore {
|
2021-11-22 03:02:04 +00:00
|
|
|
core = "bsnes-mercury-balanced";
|
|
|
|
src = getCoreSrc "bsnes-mercury";
|
|
|
|
makefile = "Makefile";
|
|
|
|
makeFlags = [ "PROFILE=balanced" ];
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Fork of bsnes with HLE DSP emulation restored (balanced profile)";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
};
|
2021-11-22 03:02:04 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
bsnes-mercury-performance = mkLibretroCore {
|
2021-11-22 03:02:04 +00:00
|
|
|
core = "bsnes-mercury-performance";
|
|
|
|
src = getCoreSrc "bsnes-mercury";
|
|
|
|
makefile = "Makefile";
|
|
|
|
makeFlags = [ "PROFILE=performance" ];
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Fork of bsnes with HLE DSP emulation restored (performance profile)";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
};
|
2021-11-22 03:02:04 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
citra = mkLibretroCore {
|
2020-03-15 05:48:14 +00:00
|
|
|
core = "citra";
|
2022-04-08 18:10:28 +01:00
|
|
|
extraBuildInputs = [ libGLU libGL boost ffmpeg nasm ];
|
2020-03-15 05:48:14 +00:00
|
|
|
makefile = "Makefile";
|
2022-04-08 18:10:28 +01:00
|
|
|
makeFlags = [ "HAVE_FFMPEG_STATIC=0" ];
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Citra to libretro";
|
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
};
|
2014-09-19 21:42:41 +01:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
desmume = mkLibretroCore {
|
libretro-cores:
- adding: 4do, desmume, fceumm, mame, mupen64plus, scummvm,
snes9x, stella, picodrive, ppsspp and vba
retroarch:
- added retroarch wrapper for configured cores
- changed attributes, old retroarch is now retroarchBare*
2014-08-26 18:32:35 +01:00
|
|
|
core = "desmume";
|
2020-03-22 02:54:01 +00:00
|
|
|
preBuild = "cd desmume/src/frontend/libretro";
|
2022-10-28 13:12:12 +01:00
|
|
|
extraBuildInputs = [ libpcap libGLU libGL xorg.libX11 ];
|
2021-01-15 13:21:58 +00:00
|
|
|
makeFlags = lib.optional stdenv.hostPlatform.isAarch32 "platform=armv-unix"
|
2021-11-15 17:07:07 +00:00
|
|
|
++ lib.optional (!stdenv.hostPlatform.isx86) "DESMUME_JIT=0";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of DeSmuME to libretro";
|
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
desmume2015 = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "desmume2015";
|
2019-11-07 20:31:41 +00:00
|
|
|
extraBuildInputs = [ libpcap libGLU libGL xorg.libX11 ];
|
2021-01-15 13:21:58 +00:00
|
|
|
makeFlags = lib.optional stdenv.hostPlatform.isAarch32 "platform=armv-unix"
|
2021-11-15 17:07:07 +00:00
|
|
|
++ lib.optional (!stdenv.hostPlatform.isx86) "DESMUME_JIT=0";
|
2020-03-22 02:54:01 +00:00
|
|
|
preBuild = "cd desmume";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of DeSmuME ~2015 to libretro";
|
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
};
|
libretro-cores:
- adding: 4do, desmume, fceumm, mame, mupen64plus, scummvm,
snes9x, stella, picodrive, ppsspp and vba
retroarch:
- added retroarch wrapper for configured cores
- changed attributes, old retroarch is now retroarchBare*
2014-08-26 18:32:35 +01:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
dolphin = mkLibretroCore {
|
2017-06-04 09:10:14 +01:00
|
|
|
core = "dolphin";
|
2021-01-17 02:30:45 +00:00
|
|
|
extraNativeBuildInputs = [ cmake curl pkg-config ];
|
2017-06-04 09:10:14 +01:00
|
|
|
extraBuildInputs = [
|
2021-11-15 17:07:07 +00:00
|
|
|
libGLU
|
|
|
|
libGL
|
|
|
|
pcre
|
|
|
|
sfml
|
|
|
|
gettext
|
|
|
|
hidapi
|
|
|
|
libevdev
|
|
|
|
udev
|
2019-11-02 11:16:10 +00:00
|
|
|
] ++ (with xorg; [ libSM libX11 libXi libpthreadstubs libxcb xcbutil libXext libXrandr libXinerama libXxf86vm ]);
|
2020-03-15 05:48:14 +00:00
|
|
|
makefile = "Makefile";
|
2017-06-04 09:10:14 +01:00
|
|
|
cmakeFlags = [
|
2019-11-02 11:16:10 +00:00
|
|
|
"-DLIBRETRO=ON"
|
|
|
|
"-DLIBRETRO_STATIC=1"
|
|
|
|
"-DENABLE_QT=OFF"
|
|
|
|
"-DENABLE_LTO=OFF"
|
|
|
|
"-DUSE_UPNP=OFF"
|
2019-11-07 16:29:26 +00:00
|
|
|
"-DUSE_DISCORD_PRESENCE=OFF"
|
2017-06-04 09:10:14 +01:00
|
|
|
];
|
2020-03-22 02:54:01 +00:00
|
|
|
dontUseCmakeBuildDir = true;
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Dolphin to libretro";
|
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
dosbox = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "dosbox";
|
2022-10-01 18:28:09 +01:00
|
|
|
CXXFLAGS = "-std=gnu++11";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of DOSBox to libretro";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2017-06-04 09:10:14 +01:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
eightyone = mkLibretroCore {
|
2020-03-15 05:48:14 +00:00
|
|
|
core = "81";
|
2021-11-15 17:07:07 +00:00
|
|
|
src = getCoreSrc "eightyone";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of EightyOne to libretro";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
};
|
2020-03-15 05:48:14 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
fbalpha2012 = mkLibretroCore {
|
2020-03-15 05:48:14 +00:00
|
|
|
core = "fbalpha2012";
|
|
|
|
makefile = "makefile.libretro";
|
2020-03-22 02:54:01 +00:00
|
|
|
preBuild = "cd svn-current/trunk";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Final Burn Alpha ~2012 to libretro";
|
|
|
|
license = "Non-commercial";
|
|
|
|
};
|
2020-03-15 05:48:14 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
fbneo = mkLibretroCore {
|
2020-03-15 05:48:14 +00:00
|
|
|
core = "fbneo";
|
|
|
|
makefile = "Makefile";
|
2020-03-22 02:54:01 +00:00
|
|
|
preBuild = "cd src/burner/libretro";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of FBNeo to libretro";
|
|
|
|
license = "Non-commercial";
|
|
|
|
};
|
2014-09-19 21:42:41 +01:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
fceumm = mkLibretroCore {
|
2015-11-20 14:49:45 +00:00
|
|
|
core = "fceumm";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "FCEUmm libretro port";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2015-11-20 14:49:45 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
flycast = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "flycast";
|
2019-11-07 16:29:26 +00:00
|
|
|
extraBuildInputs = [ libGL libGLU ];
|
2019-11-02 11:16:10 +00:00
|
|
|
makefile = "Makefile";
|
2022-10-02 21:52:28 +01:00
|
|
|
makeFlags = lib.optionals stdenv.hostPlatform.isAarch64 [ "platform=arm64" ];
|
|
|
|
patches = [ ./fix-flycast-makefile.patch ];
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Flycast libretro port";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
platforms = [ "aarch64-linux" "x86_64-linux" ];
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
fmsx = mkLibretroCore {
|
2020-03-15 05:48:14 +00:00
|
|
|
core = "fmsx";
|
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "FMSX libretro port";
|
|
|
|
license = "Non-commercial";
|
|
|
|
};
|
2020-03-15 05:48:14 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
freeintv = mkLibretroCore {
|
2020-03-15 05:48:14 +00:00
|
|
|
core = "freeintv";
|
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "FreeIntv libretro port";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
};
|
2020-03-15 05:48:14 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
gambatte = mkLibretroCore {
|
2014-09-19 21:42:41 +01:00
|
|
|
core = "gambatte";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Gambatte libretro port";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2014-09-19 21:42:41 +01:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
genesis-plus-gx = mkLibretroCore {
|
2014-09-19 21:42:41 +01:00
|
|
|
core = "genesis-plus-gx";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Enhanced Genesis Plus libretro port";
|
|
|
|
license = "Non-commercial";
|
|
|
|
};
|
2014-09-19 21:42:41 +01:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
gpsp = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "gpsp";
|
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of gpSP to libretro";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2020-03-15 05:48:14 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
gw = mkLibretroCore {
|
2020-03-15 05:48:14 +00:00
|
|
|
core = "gw";
|
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Game and Watch to libretro";
|
|
|
|
license = lib.licenses.zlib;
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
handy = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "handy";
|
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Handy to libretro";
|
|
|
|
license = lib.licenses.zlib;
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
hatari = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "hatari";
|
2022-04-08 18:10:51 +01:00
|
|
|
extraNativeBuildInputs = [ which ];
|
2020-03-15 05:48:14 +00:00
|
|
|
dontConfigure = true;
|
2022-10-28 13:12:12 +01:00
|
|
|
# zlib is already included in mkLibretroCore as buildInputs
|
2020-03-22 02:54:01 +00:00
|
|
|
makeFlags = [ "EXTERNAL_ZLIB=1" ];
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Hatari to libretro";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2014-09-19 21:42:41 +01:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
mame = mkLibretroCore {
|
2016-02-26 10:18:02 +00:00
|
|
|
core = "mame";
|
2021-11-15 17:07:07 +00:00
|
|
|
extraBuildInputs = [ alsa-lib libGLU libGL portaudio python3 xorg.libX11 ];
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of MAME to libretro";
|
|
|
|
license = with lib.licenses; [ bsd3 gpl2Plus ];
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
mame2000 = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "mame2000";
|
|
|
|
makefile = "Makefile";
|
2021-01-15 13:21:58 +00:00
|
|
|
makeFlags = lib.optional (!stdenv.hostPlatform.isx86) "IS_X86=0";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of MAME ~2000 to libretro, compatible with MAME 0.37b5 sets";
|
|
|
|
license = "MAME";
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
mame2003 = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "mame2003";
|
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of MAME ~2003 to libretro, compatible with MAME 0.78 sets";
|
|
|
|
license = "MAME";
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
mame2003-plus = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "mame2003-plus";
|
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of MAME ~2003+ to libretro, compatible with MAME 0.78 sets";
|
|
|
|
license = "MAME";
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
mame2010 = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "mame2010";
|
|
|
|
makefile = "Makefile";
|
2021-01-15 13:21:58 +00:00
|
|
|
makeFlags = lib.optionals stdenv.hostPlatform.isAarch64 [ "PTR64=1" "ARM_ENABLED=1" "X86_SH2DRC=0" "FORCE_DRC_C_BACKEND=1" ];
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of MAME ~2010 to libretro, compatible with MAME 0.139 sets";
|
|
|
|
license = "MAME";
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
mame2015 = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "mame2015";
|
2021-12-06 14:02:25 +00:00
|
|
|
makeFlags = [ "PYTHON=python3" ];
|
|
|
|
extraNativeBuildInputs = [ python3 ];
|
2021-06-10 03:57:09 +01:00
|
|
|
extraBuildInputs = [ alsa-lib ];
|
2019-11-02 11:16:10 +00:00
|
|
|
makefile = "Makefile";
|
2022-10-02 21:56:38 +01:00
|
|
|
enableParallelBuilding = false;
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of MAME ~2015 to libretro, compatible with MAME 0.160 sets";
|
|
|
|
license = "MAME";
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
mame2016 = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "mame2016";
|
2021-12-06 14:02:25 +00:00
|
|
|
extraNativeBuildInputs = [ python3 ];
|
2021-06-10 03:57:09 +01:00
|
|
|
extraBuildInputs = [ alsa-lib ];
|
2021-12-06 14:02:25 +00:00
|
|
|
makeFlags = [ "PYTHON_EXECUTABLE=python3" ];
|
2022-10-02 21:56:38 +01:00
|
|
|
enableParallelBuilding = false;
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of MAME ~2016 to libretro, compatible with MAME 0.174 sets";
|
|
|
|
license = with lib.licenses; [ bsd3 gpl2Plus ];
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
melonds = mkLibretroCore {
|
2021-11-22 16:45:32 +00:00
|
|
|
core = "melonds";
|
|
|
|
extraBuildInputs = [ libGL libGLU ];
|
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of MelonDS to libretro";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
};
|
2021-11-22 16:45:32 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
mesen = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "mesen";
|
2020-03-15 05:48:14 +00:00
|
|
|
makefile = "Makefile";
|
2020-03-22 02:54:01 +00:00
|
|
|
preBuild = "cd Libretro";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Mesen to libretro";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
};
|
2020-03-15 05:48:14 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
mesen-s = mkLibretroCore {
|
2021-12-06 21:10:30 +00:00
|
|
|
core = "mesen-s";
|
2021-11-22 17:02:42 +00:00
|
|
|
makefile = "Makefile";
|
|
|
|
preBuild = "cd Libretro";
|
2021-12-06 21:10:30 +00:00
|
|
|
normalizeCore = false;
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Mesen-S to libretro";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
};
|
2021-11-22 17:02:42 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
meteor = mkLibretroCore {
|
2020-03-15 05:48:14 +00:00
|
|
|
core = "meteor";
|
|
|
|
makefile = "Makefile";
|
2020-03-22 02:54:01 +00:00
|
|
|
preBuild = "cd libretro";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Meteor to libretro";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
};
|
2017-02-11 12:49:33 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
mgba = mkLibretroCore {
|
2017-02-10 11:03:14 +00:00
|
|
|
core = "mgba";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of mGBA to libretro";
|
|
|
|
license = lib.licenses.mpl20;
|
|
|
|
};
|
2017-02-10 11:03:14 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
mupen64plus = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "mupen64plus-next";
|
2021-11-15 17:07:07 +00:00
|
|
|
src = getCoreSrc "mupen64plus";
|
2019-11-07 20:31:41 +00:00
|
|
|
extraBuildInputs = [ libGLU libGL libpng nasm xorg.libX11 ];
|
2019-11-02 11:16:10 +00:00
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Libretro port of Mupen64 Plus, GL only";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
};
|
2020-03-15 05:48:14 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
neocd = mkLibretroCore {
|
2020-03-15 05:48:14 +00:00
|
|
|
core = "neocd";
|
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "NeoCD libretro port";
|
|
|
|
license = lib.licenses.lgpl3Only;
|
|
|
|
};
|
libretro-cores:
- adding: 4do, desmume, fceumm, mame, mupen64plus, scummvm,
snes9x, stella, picodrive, ppsspp and vba
retroarch:
- added retroarch wrapper for configured cores
- changed attributes, old retroarch is now retroarchBare*
2014-08-26 18:32:35 +01:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
nestopia = mkLibretroCore {
|
Replaced retroarchBare with retroarchBareMaster, also added a few new libretro cores
retroarchBare was too old for any practical use at this point, so it was removed in favor
of fetching releases from git. RetroArch often recommends checkout out the latest git master
if you are on a desktop platform, so we are conforming with their recommendation. I plan on
bumping the git of retroarch and each core every month, and I plan on adding more libretro
cores in the future.
The libretro cores that were added are nestopia, quicknes, snes9x, and vba-m
planned next are : bsnes-accuracy, bsnes-balanced, bsnes-performance, a few libretro mame ports
Closes #4448
2014-10-10 04:11:54 +01:00
|
|
|
core = "nestopia";
|
2020-03-15 05:48:14 +00:00
|
|
|
makefile = "Makefile";
|
2020-03-22 02:54:01 +00:00
|
|
|
preBuild = "cd libretro";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Nestopia libretro port";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
Replaced retroarchBare with retroarchBareMaster, also added a few new libretro cores
retroarchBare was too old for any practical use at this point, so it was removed in favor
of fetching releases from git. RetroArch often recommends checkout out the latest git master
if you are on a desktop platform, so we are conforming with their recommendation. I plan on
bumping the git of retroarch and each core every month, and I plan on adding more libretro
cores in the future.
The libretro cores that were added are nestopia, quicknes, snes9x, and vba-m
planned next are : bsnes-accuracy, bsnes-balanced, bsnes-performance, a few libretro mame ports
Closes #4448
2014-10-10 04:11:54 +01:00
|
|
|
};
|
2019-11-07 16:29:26 +00:00
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
nxengine = mkLibretroCore {
|
2022-07-15 15:55:45 +01:00
|
|
|
core = "nxengine";
|
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "NXEngine libretro port";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
};
|
2022-07-15 15:55:45 +01:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
np2kai = mkLibretroCore rec {
|
2020-04-08 16:41:37 +01:00
|
|
|
core = "np2kai";
|
2021-11-15 17:07:07 +00:00
|
|
|
src = getCoreSrc core;
|
|
|
|
makeFlags = [
|
|
|
|
# See https://github.com/AZO234/NP2kai/tags
|
|
|
|
"NP2KAI_VERSION=rev.22"
|
|
|
|
"NP2KAI_HASH=${src.rev}"
|
|
|
|
];
|
|
|
|
preBuild = "cd sdl";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Neko Project II kai libretro port";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
2020-04-08 16:41:37 +01:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
o2em = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "o2em";
|
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of O2EM to libretro";
|
|
|
|
license = lib.licenses.artistic1;
|
|
|
|
};
|
2020-03-15 05:48:14 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
opera = mkLibretroCore {
|
2020-03-15 05:48:14 +00:00
|
|
|
core = "opera";
|
|
|
|
makefile = "Makefile";
|
2020-03-22 02:54:01 +00:00
|
|
|
makeFlags = [ "CC_PREFIX=${stdenv.cc.targetPrefix}" ];
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Opera is a port of 4DO/libfreedo to libretro";
|
|
|
|
license = "Non-commercial";
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
2019-11-07 16:29:26 +00:00
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
parallel-n64 = mkLibretroCore {
|
2017-06-07 22:30:40 +01:00
|
|
|
core = "parallel-n64";
|
2019-11-07 20:31:41 +00:00
|
|
|
extraBuildInputs = [ libGLU libGL libpng ];
|
2019-11-02 11:16:10 +00:00
|
|
|
makefile = "Makefile";
|
2022-10-02 19:56:48 +01:00
|
|
|
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
|
|
|
|
'';
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Parallel Mupen64plus rewrite for libretro.";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
};
|
2017-06-07 22:30:40 +01:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
pcsx2 = mkLibretroCore {
|
2021-11-27 19:05:34 +00:00
|
|
|
core = "pcsx2";
|
|
|
|
extraNativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
gettext
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
extraBuildInputs = [
|
|
|
|
libaio
|
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
libpcap
|
|
|
|
libpng
|
|
|
|
libxml2
|
|
|
|
xz
|
|
|
|
xxd
|
|
|
|
];
|
|
|
|
makefile = "Makefile";
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DLIBRETRO=ON"
|
|
|
|
];
|
|
|
|
postPatch = ''
|
|
|
|
# remove ccache
|
|
|
|
substituteInPlace CMakeLists.txt --replace "ccache" ""
|
|
|
|
'';
|
|
|
|
postBuild = "cd /build/source/build/pcsx2";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of PCSX2 to libretro";
|
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
platforms = lib.platforms.x86;
|
|
|
|
};
|
2021-11-27 19:05:34 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
pcsx-rearmed = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "pcsx_rearmed";
|
2020-03-15 05:48:14 +00:00
|
|
|
dontConfigure = true;
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of PCSX ReARMed with GNU lightning to libretro";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
2019-11-07 16:29:26 +00:00
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
picodrive = mkLibretroCore {
|
2014-09-19 21:42:41 +01:00
|
|
|
core = "picodrive";
|
2022-10-01 13:23:58 +01:00
|
|
|
dontConfigure = true;
|
2022-10-06 17:38:53 +01:00
|
|
|
makeFlags = lib.optionals stdenv.hostPlatform.isAarch64 [ "platform=aarch64" ];
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Fast MegaDrive/MegaCD/32X emulator";
|
|
|
|
license = "MAME";
|
|
|
|
};
|
2014-09-19 21:42:41 +01:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
play = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "play";
|
2021-12-06 21:10:30 +00:00
|
|
|
extraBuildInputs = [ boost bzip2 curl openssl icu libGL libGLU xorg.libX11 ];
|
|
|
|
extraNativeBuildInputs = [ cmake ];
|
2020-03-15 05:48:14 +00:00
|
|
|
makefile = "Makefile";
|
2021-12-06 21:10:30 +00:00
|
|
|
cmakeFlags = [ "-DBUILD_PLAY=OFF" "-DBUILD_LIBRETRO_CORE=ON" ];
|
|
|
|
postBuild = "cd Source/ui_libretro";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Play! to libretro";
|
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
ppsspp = mkLibretroCore {
|
2015-11-20 14:49:45 +00:00
|
|
|
core = "ppsspp";
|
2021-05-20 22:51:05 +01:00
|
|
|
extraNativeBuildInputs = [ cmake pkg-config python3 ];
|
|
|
|
extraBuildInputs = [ libGLU libGL libzip ffmpeg snappy xorg.libX11 ];
|
2019-11-02 11:16:10 +00:00
|
|
|
makefile = "Makefile";
|
2021-12-06 21:10:30 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DLIBRETRO=ON"
|
|
|
|
"-DUSE_SYSTEM_FFMPEG=ON"
|
|
|
|
"-DUSE_SYSTEM_SNAPPY=ON"
|
|
|
|
"-DUSE_SYSTEM_LIBZIP=ON"
|
|
|
|
"-DOpenGL_GL_PREFERENCE=GLVND"
|
|
|
|
];
|
|
|
|
postBuild = "cd lib";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "ppsspp libretro port";
|
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
};
|
2014-09-19 21:42:41 +01:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
prboom = mkLibretroCore {
|
2015-11-20 14:49:45 +00:00
|
|
|
core = "prboom";
|
2020-03-15 05:48:14 +00:00
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Prboom libretro port";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
Replaced retroarchBare with retroarchBareMaster, also added a few new libretro cores
retroarchBare was too old for any practical use at this point, so it was removed in favor
of fetching releases from git. RetroArch often recommends checkout out the latest git master
if you are on a desktop platform, so we are conforming with their recommendation. I plan on
bumping the git of retroarch and each core every month, and I plan on adding more libretro
cores in the future.
The libretro cores that were added are nestopia, quicknes, snes9x, and vba-m
planned next are : bsnes-accuracy, bsnes-balanced, bsnes-performance, a few libretro mame ports
Closes #4448
2014-10-10 04:11:54 +01:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
prosystem = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "prosystem";
|
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of ProSystem to libretro";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2014-09-19 21:42:41 +01:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
puae = mkLibretroCore {
|
2022-10-03 17:30:21 +01:00
|
|
|
core = "puae";
|
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
# https://github.com/libretro/libretro-uae/pull/529
|
2022-10-03 17:30:21 +01:00
|
|
|
patches = fetchpatch {
|
2022-10-28 13:12:12 +01:00
|
|
|
url = "https://github.com/libretro/libretro-uae/commit/90ba4c9bb940e566781c3590553270ad69cf212e.patch";
|
|
|
|
sha256 = "sha256-9xkRravvyFZc0xsIj0OSm2ux5BqYogfQ1TDnH9l6jKw=";
|
|
|
|
};
|
|
|
|
meta = {
|
|
|
|
description = "Amiga emulator based on WinUAE";
|
|
|
|
license = lib.licenses.gpl2Only;
|
2022-10-03 17:30:21 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
quicknes = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "quicknes";
|
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "QuickNES libretro port";
|
|
|
|
license = lib.licenses.lgpl21Plus;
|
|
|
|
};
|
2020-03-15 05:48:14 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
sameboy = mkLibretroCore {
|
2020-03-15 05:48:14 +00:00
|
|
|
core = "sameboy";
|
2020-03-22 02:54:01 +00:00
|
|
|
extraNativeBuildInputs = [ which hexdump ];
|
|
|
|
preBuild = "cd libretro";
|
2020-03-15 05:48:14 +00:00
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "SameBoy libretro port";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
2017-02-10 11:11:29 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
scummvm = mkLibretroCore {
|
libretro-cores:
- adding: 4do, desmume, fceumm, mame, mupen64plus, scummvm,
snes9x, stella, picodrive, ppsspp and vba
retroarch:
- added retroarch wrapper for configured cores
- changed attributes, old retroarch is now retroarchBare*
2014-08-26 18:32:35 +01:00
|
|
|
core = "scummvm";
|
2022-10-01 13:23:58 +01:00
|
|
|
extraBuildInputs = [ fluidsynth libjpeg libvorbis libGLU libGL ];
|
2020-03-15 05:48:14 +00:00
|
|
|
makefile = "Makefile";
|
2020-03-22 02:54:01 +00:00
|
|
|
preConfigure = "cd backends/platform/libretro/build";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Libretro port of ScummVM";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2020-03-15 05:48:14 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
smsplus-gx = mkLibretroCore {
|
2020-03-15 05:48:14 +00:00
|
|
|
core = "smsplus";
|
2021-11-15 17:07:07 +00:00
|
|
|
src = getCoreSrc "smsplus-gx";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "SMS Plus GX libretro port";
|
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
};
|
Replaced retroarchBare with retroarchBareMaster, also added a few new libretro cores
retroarchBare was too old for any practical use at this point, so it was removed in favor
of fetching releases from git. RetroArch often recommends checkout out the latest git master
if you are on a desktop platform, so we are conforming with their recommendation. I plan on
bumping the git of retroarch and each core every month, and I plan on adding more libretro
cores in the future.
The libretro cores that were added are nestopia, quicknes, snes9x, and vba-m
planned next are : bsnes-accuracy, bsnes-balanced, bsnes-performance, a few libretro mame ports
Closes #4448
2014-10-10 04:11:54 +01:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
snes9x = mkLibretroCore {
|
Replaced retroarchBare with retroarchBareMaster, also added a few new libretro cores
retroarchBare was too old for any practical use at this point, so it was removed in favor
of fetching releases from git. RetroArch often recommends checkout out the latest git master
if you are on a desktop platform, so we are conforming with their recommendation. I plan on
bumping the git of retroarch and each core every month, and I plan on adding more libretro
cores in the future.
The libretro cores that were added are nestopia, quicknes, snes9x, and vba-m
planned next are : bsnes-accuracy, bsnes-balanced, bsnes-performance, a few libretro mame ports
Closes #4448
2014-10-10 04:11:54 +01:00
|
|
|
core = "snes9x";
|
2020-03-15 05:48:14 +00:00
|
|
|
makefile = "Makefile";
|
2020-03-22 02:54:01 +00:00
|
|
|
preBuild = "cd libretro";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of SNES9x git to libretro";
|
|
|
|
license = "Non-commercial";
|
|
|
|
};
|
libretro-cores:
- adding: 4do, desmume, fceumm, mame, mupen64plus, scummvm,
snes9x, stella, picodrive, ppsspp and vba
retroarch:
- added retroarch wrapper for configured cores
- changed attributes, old retroarch is now retroarchBare*
2014-08-26 18:32:35 +01:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
snes9x2002 = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "snes9x2002";
|
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Optimized port/rewrite of SNES9x 1.39 to Libretro";
|
|
|
|
license = "Non-commercial";
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
snes9x2005 = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "snes9x2005";
|
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Optimized port/rewrite of SNES9x 1.43 to Libretro";
|
|
|
|
license = "Non-commercial";
|
|
|
|
};
|
2021-12-06 20:34:36 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
snes9x2005-plus = mkLibretroCore {
|
2021-12-06 20:34:36 +00:00
|
|
|
core = "snes9x2005-plus";
|
|
|
|
src = getCoreSrc "snes9x2005";
|
|
|
|
makefile = "Makefile";
|
2020-03-15 05:48:14 +00:00
|
|
|
makeFlags = [ "USE_BLARGG_APU=1" ];
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Optimized port/rewrite of SNES9x 1.43 to Libretro, with Blargg's APU";
|
|
|
|
license = "Non-commercial";
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
snes9x2010 = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "snes9x2010";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Optimized port/rewrite of SNES9x 1.52+ to Libretro";
|
|
|
|
license = "Non-commercial";
|
|
|
|
};
|
libretro-cores:
- adding: 4do, desmume, fceumm, mame, mupen64plus, scummvm,
snes9x, stella, picodrive, ppsspp and vba
retroarch:
- added retroarch wrapper for configured cores
- changed attributes, old retroarch is now retroarchBare*
2014-08-26 18:32:35 +01:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
stella = mkLibretroCore {
|
libretro-cores:
- adding: 4do, desmume, fceumm, mame, mupen64plus, scummvm,
snes9x, stella, picodrive, ppsspp and vba
retroarch:
- added retroarch wrapper for configured cores
- changed attributes, old retroarch is now retroarchBare*
2014-08-26 18:32:35 +01:00
|
|
|
core = "stella";
|
2020-03-15 05:48:14 +00:00
|
|
|
makefile = "Makefile";
|
2022-10-01 13:23:58 +01:00
|
|
|
preBuild = "cd src/os/libretro";
|
2020-03-22 02:54:01 +00:00
|
|
|
dontConfigure = true;
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Stella to libretro";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2020-03-15 05:48:14 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
stella2014 = mkLibretroCore {
|
2020-03-15 05:48:14 +00:00
|
|
|
core = "stella2014";
|
2019-11-02 11:16:10 +00:00
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Stella ~2014 to libretro";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2020-03-15 05:48:14 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
swanstation = mkLibretroCore {
|
2021-11-22 02:14:17 +00:00
|
|
|
core = "swanstation";
|
|
|
|
extraNativeBuildInputs = [ cmake ];
|
|
|
|
makefile = "Makefile";
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_LIBRETRO_CORE=ON"
|
|
|
|
];
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of SwanStation (a fork of DuckStation) to libretro";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
};
|
2021-11-22 02:14:17 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
tgbdual = mkLibretroCore {
|
2020-03-15 05:48:14 +00:00
|
|
|
core = "tgbdual";
|
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of TGBDual to libretro";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2020-03-15 05:48:14 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
thepowdertoy = mkLibretroCore {
|
2021-04-20 01:19:36 +01:00
|
|
|
core = "thepowdertoy";
|
|
|
|
extraNativeBuildInputs = [ cmake ];
|
|
|
|
makefile = "Makefile";
|
2021-12-06 21:10:30 +00:00
|
|
|
postBuild = "cd src";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of The Powder Toy to libretro";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
};
|
2021-04-20 01:19:36 +01:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
tic80 = mkLibretroCore {
|
2020-03-15 05:48:14 +00:00
|
|
|
core = "tic80";
|
2022-10-01 13:23:58 +01:00
|
|
|
extraNativeBuildInputs = [ cmake pkg-config ];
|
2020-03-15 05:48:14 +00:00
|
|
|
makefile = "Makefile";
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_LIBRETRO=ON"
|
|
|
|
"-DBUILD_DEMO_CARTS=OFF"
|
|
|
|
"-DBUILD_PRO=OFF"
|
|
|
|
"-DBUILD_PLAYER=OFF"
|
|
|
|
"-DBUILD_SDL=OFF"
|
|
|
|
"-DBUILD_SOKOL=OFF"
|
|
|
|
];
|
2022-01-21 21:40:38 +00:00
|
|
|
preConfigure = "cd core";
|
2020-03-15 05:48:14 +00:00
|
|
|
postBuild = "cd lib";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of TIC-80 to libretro";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
libretro-cores:
- adding: 4do, desmume, fceumm, mame, mupen64plus, scummvm,
snes9x, stella, picodrive, ppsspp and vba
retroarch:
- added retroarch wrapper for configured cores
- changed attributes, old retroarch is now retroarchBare*
2014-08-26 18:32:35 +01:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
vba-m = mkLibretroCore {
|
Replaced retroarchBare with retroarchBareMaster, also added a few new libretro cores
retroarchBare was too old for any practical use at this point, so it was removed in favor
of fetching releases from git. RetroArch often recommends checkout out the latest git master
if you are on a desktop platform, so we are conforming with their recommendation. I plan on
bumping the git of retroarch and each core every month, and I plan on adding more libretro
cores in the future.
The libretro cores that were added are nestopia, quicknes, snes9x, and vba-m
planned next are : bsnes-accuracy, bsnes-balanced, bsnes-performance, a few libretro mame ports
Closes #4448
2014-10-10 04:11:54 +01:00
|
|
|
core = "vbam";
|
2021-11-15 17:07:07 +00:00
|
|
|
src = getCoreSrc "vba-m";
|
2020-03-15 05:48:14 +00:00
|
|
|
makefile = "Makefile";
|
2020-03-22 02:54:01 +00:00
|
|
|
preBuild = "cd src/libretro";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "vanilla VBA-M libretro port";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
Replaced retroarchBare with retroarchBareMaster, also added a few new libretro cores
retroarchBare was too old for any practical use at this point, so it was removed in favor
of fetching releases from git. RetroArch often recommends checkout out the latest git master
if you are on a desktop platform, so we are conforming with their recommendation. I plan on
bumping the git of retroarch and each core every month, and I plan on adding more libretro
cores in the future.
The libretro cores that were added are nestopia, quicknes, snes9x, and vba-m
planned next are : bsnes-accuracy, bsnes-balanced, bsnes-performance, a few libretro mame ports
Closes #4448
2014-10-10 04:11:54 +01:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
vba-next = mkLibretroCore {
|
2021-11-22 02:14:17 +00:00
|
|
|
core = "vba-next";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "VBA-M libretro port with modifications for speed";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2021-11-22 02:14:17 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
vecx = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "vecx";
|
2021-11-15 17:07:07 +00:00
|
|
|
extraBuildInputs = [ libGL libGLU ];
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Vecx to libretro";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
virtualjaguar = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "virtualjaguar";
|
|
|
|
makefile = "Makefile";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of VirtualJaguar to libretro";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 13:12:12 +01:00
|
|
|
yabause = mkLibretroCore {
|
2019-11-02 11:16:10 +00:00
|
|
|
core = "yabause";
|
2020-03-15 05:48:14 +00:00
|
|
|
makefile = "Makefile";
|
2021-12-06 21:10:30 +00:00
|
|
|
# Disable SSE for non-x86. DYNAREC doesn't build on aarch64.
|
2021-01-15 13:21:58 +00:00
|
|
|
makeFlags = lib.optional (!stdenv.hostPlatform.isx86) "HAVE_SSE=0";
|
2020-03-22 02:54:01 +00:00
|
|
|
preBuild = "cd yabause/src/libretro";
|
2022-10-28 13:12:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Port of Yabause to libretro";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
};
|
2019-11-02 11:16:10 +00:00
|
|
|
};
|
2014-10-28 09:08:43 +00:00
|
|
|
}
|