2021-01-17 03:30:45 +01:00
|
|
|
{ lib, stdenv, fetchgit, fetchFromGitHub, fetchFromGitLab, fetchpatch, cmake, pkg-config, makeWrapper, python27, python37, retroarch
|
2020-03-15 06:48:14 +01:00
|
|
|
, alsaLib, fluidsynth, curl, hidapi, libGLU, gettext, glib, gtk2, portaudio, SDL, SDL_net, SDL2, SDL2_image, libGL
|
2020-06-07 14:39:09 +02:00
|
|
|
, ffmpeg_3, pcre, libevdev, libpng, libjpeg, libzip, udev, libvorbis, snappy, which, hexdump
|
2020-03-22 03:54:01 +01:00
|
|
|
, miniupnpc, sfml, xorg, zlib, nasm, libpcap, boost, icu, openssl
|
|
|
|
, buildPackages }:
|
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 19:32:35 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2021-01-15 14:21:58 +01:00
|
|
|
d2u = lib.replaceChars ["-"] ["_"];
|
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 19:32:35 +02:00
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
mkLibRetroCore = { core, src, description, license, broken ? false, ... }@a:
|
2021-01-15 14:21:58 +01:00
|
|
|
lib.makeOverridable stdenv.mkDerivation ((rec {
|
2020-03-15 06:48:14 +01:00
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
name = "libretro-${a.core}-${version}";
|
2020-03-15 06:48:14 +01:00
|
|
|
version = "2020-03-06";
|
2020-03-22 03:54:01 +01:00
|
|
|
inherit (a) src;
|
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 19:32:35 +02:00
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
buildInputs = [ zlib ] ++ a.extraBuildInputs or [];
|
|
|
|
nativeBuildInputs = [ makeWrapper ] ++ a.extraNativeBuildInputs or [];
|
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 19:32:35 +02:00
|
|
|
|
2017-11-26 21:12:23 +01:00
|
|
|
makefile = "Makefile.libretro";
|
2020-03-22 03:54:01 +01:00
|
|
|
makeFlags = [
|
|
|
|
"platform=${{
|
|
|
|
linux = "unix";
|
2020-03-31 21:07:57 +02:00
|
|
|
darwin = "osx";
|
2020-03-22 03:54:01 +01:00
|
|
|
windows = "win";
|
|
|
|
}.${stdenv.hostPlatform.parsed.kernel.name} or stdenv.hostPlatform.parsed.kernel.name}"
|
|
|
|
"ARCH=${{
|
|
|
|
armv7l = "arm";
|
|
|
|
armv6l = "arm";
|
|
|
|
i686 = "x86";
|
|
|
|
}.${stdenv.hostPlatform.parsed.cpu.name} or stdenv.hostPlatform.parsed.cpu.name}"
|
|
|
|
] ++ (a.makeFlags or []);
|
2017-11-26 21:12:23 +01:00
|
|
|
|
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 19:32:35 +02:00
|
|
|
installPhase = ''
|
|
|
|
COREDIR="$out/lib/retroarch/cores"
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $COREDIR
|
2020-03-22 03:54:01 +01:00
|
|
|
mv ${d2u a.core}_libretro${stdenv.hostPlatform.extensions.sharedLibrary} $COREDIR
|
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 19:32:35 +02:00
|
|
|
makeWrapper ${retroarch}/bin/retroarch $out/bin/retroarch-${core} \
|
2018-05-22 00:11:44 +02:00
|
|
|
--add-flags "-L $COREDIR/${d2u core}_libretro${stdenv.hostPlatform.extensions.sharedLibrary} $@"
|
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 19:32:35 +02:00
|
|
|
'';
|
|
|
|
|
2014-10-02 20:09:18 +02:00
|
|
|
passthru = {
|
2020-03-22 03:54:01 +01:00
|
|
|
inherit (a) core;
|
2014-10-02 20:09:18 +02:00
|
|
|
libretroCore = "/lib/retroarch/cores";
|
|
|
|
};
|
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 19:32:35 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-03-22 03:54:01 +01:00
|
|
|
inherit (a) description license;
|
|
|
|
broken = a.broken or false;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.libretro.com/";
|
2016-02-26 11:18:02 +01:00
|
|
|
maintainers = with maintainers; [ edwtjo hrdinka MP2E ];
|
2018-05-22 00:11:44 +02:00
|
|
|
platforms = platforms.unix;
|
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 19:32:35 +02:00
|
|
|
};
|
2020-03-22 03:54:01 +01:00
|
|
|
}) // builtins.removeAttrs a ["core" "src" "description" "license" "makeFlags"]);
|
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 19:32:35 +02:00
|
|
|
|
|
|
|
fetchRetro = { repo, rev, sha256 }:
|
|
|
|
fetchgit {
|
|
|
|
inherit rev sha256;
|
|
|
|
url = "https://github.com/libretro/${repo}.git";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2021-01-15 14:21:58 +01:00
|
|
|
in with lib.licenses;
|
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 19:32:35 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
atari800 = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "atari800";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "libretro-" + core;
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "f9bf53b864344b8bbe8d425ed2f3c628eb10519c";
|
|
|
|
sha256 = "0sgk93zs423pwiqzvj0x1gfwcn9gacnlrrdq53ps395k64lig6lk";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Port of Atari800 to libretro";
|
|
|
|
license = gpl2;
|
|
|
|
makefile = "Makefile";
|
2020-03-22 03:54:01 +01:00
|
|
|
makeFlags = [ "GIT_VERSION=" ];
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
beetle-snes = mkLibRetroCore {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "mednafen-snes";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "beetle-bsnes-libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "de22d8420ea606f1b2f72afd4dda34619cf2cc20";
|
|
|
|
sha256 = "1nd4f8frmlhp1lyxz9zpxvwwz70x0i0rrp560cn9qlm1jzdv3xvf";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Port of Mednafen's SNES core to libretro";
|
|
|
|
license = gpl2;
|
|
|
|
makefile = "Makefile";
|
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
beetle-gba = mkLibRetroCore {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "mednafen-gba";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "beetle-gba-libretro";
|
|
|
|
rev = "135afdbb9591655a3e016b75abba07e481f6d406";
|
|
|
|
sha256 = "0fc0x24qn4y7pz3mp1mm1ain31aj9pznp1irr0k7hvazyklzy9g3";
|
|
|
|
};
|
|
|
|
description = "Port of Mednafen's GameBoy Advance core to libretro";
|
|
|
|
license = gpl2;
|
|
|
|
makefile = "Makefile";
|
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
beetle-lynx = mkLibRetroCore {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "mednafen-lynx";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "beetle-lynx-libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "74dde204c0ec6c4bc4cd7821c14548387fbd9ce8";
|
|
|
|
sha256 = "05kwibjr30laalqzazswvmn9smm3mwqsz1i0z1s0pj7idfdhjfw0";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Port of Mednafen's Lynx core to libretro";
|
|
|
|
license = gpl2;
|
|
|
|
makefile = "Makefile";
|
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
beetle-ngp = mkLibRetroCore {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "mednafen-ngp";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "beetle-ngp-libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "6f15532b6ad17a2d5eb9dc8241d6af62416e796b";
|
|
|
|
sha256 = "05r8mk9rc19nzs3gpfsjr6i7pm6xx3gn3b4xs8ab7v4vcmfg4cn2";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Port of Mednafen's NeoGeo Pocket core to libretro";
|
|
|
|
license = gpl2;
|
|
|
|
makefile = "Makefile";
|
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 19:32:35 +02:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
beetle-pce-fast = let der = mkLibRetroCore {
|
2017-02-25 16:14:35 +01:00
|
|
|
core = "mednafen-pce-fast";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "beetle-pce-fast-libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "40a42b7f43f029760c92bf0b2097e7d4b90ed29c";
|
|
|
|
sha256 = "1gr6wg4bd4chm4c39w0c1b5zfzr05zd7234vvlmr1imk0v6m0wj6";
|
2017-02-25 16:14:35 +01:00
|
|
|
};
|
|
|
|
description = "Port of Mednafen's PC Engine core to libretro";
|
2018-03-02 01:11:16 +01:00
|
|
|
license = gpl2;
|
2019-11-02 12:16:10 +01:00
|
|
|
makefile = "Makefile";
|
2020-03-22 03:54:01 +01:00
|
|
|
}; in der.override {
|
2018-11-05 00:35:13 +01:00
|
|
|
name = "beetle-pce-fast-${der.version}";
|
2017-02-25 16:14:35 +01:00
|
|
|
};
|
2019-11-07 17:29:26 +01:00
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
beetle-pcfx = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "mednafen-pcfx";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "beetle-pcfx-libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "7bba6699d6f903bd701b0aa525d845de8427fee6";
|
|
|
|
sha256 = "1lh7dh96fyi005fcg3xaf7r4ssgkq840p6anldlqy52vfwmglw3p";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Port of Mednafen's PCFX core to libretro";
|
|
|
|
license = gpl2;
|
|
|
|
makefile = "Makefile";
|
|
|
|
};
|
2017-02-25 16:14:35 +01:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
beetle-psx = let der = (mkLibRetroCore {
|
2017-02-25 16:14:35 +01:00
|
|
|
core = "mednafen-psx";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "beetle-psx-libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "0f1e7e60827cad49ebba628abdc83ad97652ab89";
|
|
|
|
sha256 = "1j92jgddyl970v775d6gyb50l8md6yfym2fpqhfxcr4gj1b4ivwq";
|
2017-02-25 16:14:35 +01:00
|
|
|
};
|
|
|
|
description = "Port of Mednafen's PSX Engine core to libretro";
|
2018-03-02 01:11:16 +01:00
|
|
|
license = gpl2;
|
2019-11-02 12:16:10 +01:00
|
|
|
makefile = "Makefile";
|
2020-03-15 06:48:14 +01:00
|
|
|
makeFlags = [ "HAVE_HW=0" "HAVE_LIGHTREC=1" ];
|
2020-03-22 03:54:01 +01:00
|
|
|
}); in der.override {
|
2018-11-05 00:35:13 +01:00
|
|
|
name = "beetle-psx-${der.version}";
|
2017-02-25 16:14:35 +01:00
|
|
|
};
|
|
|
|
|
2020-03-15 06:48:14 +01:00
|
|
|
beetle-psx-hw = let der = (mkLibRetroCore {
|
|
|
|
core = "mednafen-psx-hw";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "beetle-psx-libretro";
|
|
|
|
rev = "0f1e7e60827cad49ebba628abdc83ad97652ab89";
|
|
|
|
sha256 = "1j92jgddyl970v775d6gyb50l8md6yfym2fpqhfxcr4gj1b4ivwq";
|
|
|
|
};
|
|
|
|
description = "Port of Mednafen's PSX Engine (with HW accel) core to libretro";
|
|
|
|
license = gpl2;
|
|
|
|
extraBuildInputs = [ libGL libGLU ];
|
|
|
|
makefile = "Makefile";
|
|
|
|
makeFlags = [ "HAVE_VULKAN=1" "HAVE_OPENGL=1" "HAVE_HW=1" "HAVE_LIGHTREC=1" ];
|
2020-03-22 03:54:01 +01:00
|
|
|
}); in der.override {
|
2020-03-15 06:48:14 +01:00
|
|
|
name = "beetle-psx-hw-${der.version}";
|
|
|
|
};
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
beetle-saturn = let der = (mkLibRetroCore {
|
2017-02-25 16:14:35 +01:00
|
|
|
core = "mednafen-saturn";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "beetle-saturn-libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "8a65943bb7bbc3183eeb0d57c4ac3e663f1bcc11";
|
|
|
|
sha256 = "1f0cd9wmvarsmf4jw0p6h3lbzs6515aja7krrwapja7i4xmgbrnh";
|
|
|
|
};
|
|
|
|
description = "Port of Mednafen's Saturn core to libretro";
|
|
|
|
license = gpl2;
|
|
|
|
makefile = "Makefile";
|
|
|
|
makeFlags = [ "HAVE_HW=0" ];
|
|
|
|
meta.platforms = [ "x86_64-linux" "aarch64-linux" ];
|
2020-03-22 03:54:01 +01:00
|
|
|
}); in der.override {
|
|
|
|
name = "beetle-saturn-${der.version}";
|
2020-03-15 06:48:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
beetle-saturn-hw = let der = (mkLibRetroCore {
|
|
|
|
core = "mednafen-saturn-hw";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "beetle-saturn-libretro";
|
|
|
|
rev = "8a65943bb7bbc3183eeb0d57c4ac3e663f1bcc11";
|
|
|
|
sha256 = "1f0cd9wmvarsmf4jw0p6h3lbzs6515aja7krrwapja7i4xmgbrnh";
|
2017-02-25 16:14:35 +01:00
|
|
|
};
|
|
|
|
description = "Port of Mednafen's Saturn core to libretro";
|
2018-03-02 01:11:16 +01:00
|
|
|
license = gpl2;
|
2020-03-15 06:48:14 +01:00
|
|
|
extraBuildInputs = [ libGL libGLU ];
|
2019-11-02 12:16:10 +01:00
|
|
|
makefile = "Makefile";
|
2020-03-15 06:48:14 +01:00
|
|
|
makeFlags = [ "HAVE_OPENGL=1" "HAVE_HW=1" ];
|
2019-11-02 12:16:10 +01:00
|
|
|
meta.platforms = [ "x86_64-linux" "aarch64-linux" ];
|
2020-03-22 03:54:01 +01:00
|
|
|
}); in der.override {
|
|
|
|
name = "beetle-saturn-${der.version}";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
2019-11-07 17:29:26 +01:00
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
beetle-supergrafx = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "mednafen-supergrafx";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "beetle-supergrafx-libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "fadef23d59fa5ec17bc99e1e722cfd9e10535695";
|
|
|
|
sha256 = "15rm7p5q38qy3xpyvamhphjnna8h91fsbcqnl9vhzx9cmjg0wf54";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Port of Mednafen's SuperGrafx core to libretro";
|
|
|
|
license = gpl2;
|
|
|
|
makefile = "Makefile";
|
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
beetle-wswan = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "mednafen-wswan";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "beetle-wswan-libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "5b03d1b09f70dc208387d3c8b59e12e1f0d2692f";
|
|
|
|
sha256 = "1sm6ww3y9m85lhp74dpxbs05yxdhhqqmj2022j9s0m235z29iygc";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Port of Mednafen's WonderSwan core to libretro";
|
|
|
|
license = gpl2;
|
|
|
|
makefile = "Makefile";
|
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
beetle-vb = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "mednafen-vb";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "beetle-vb-libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "9a4e604a7320a3c6ed30601989fe0bc417fa9ad3";
|
|
|
|
sha256 = "1gallwbqxn5qbmwxr1vxb41nncksai4rxc739a7vqvp65k5kl0qp";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Port of Mednafen's VirtualBoy core to libretro";
|
|
|
|
license = gpl2;
|
|
|
|
makefile = "Makefile";
|
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
bluemsx = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "bluemsx";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core + "-libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "7a1d40e750860580ab7cc21fbc244b5bc6db6586";
|
|
|
|
sha256 = "05hnkyr47djccspr8v438zimdfsgym7v0jn1hwpkqc4i5zf70981";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Port of BlueMSX to libretro";
|
|
|
|
license = gpl2;
|
2017-02-25 16:14:35 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
bsnes-mercury = let bname = "bsnes-mercury"; in mkLibRetroCore {
|
2015-11-20 15:49:45 +01:00
|
|
|
core = bname + "-accuracy";
|
2014-09-19 22:42:41 +02:00
|
|
|
src = fetchRetro {
|
2015-11-20 15:49:45 +01:00
|
|
|
repo = bname;
|
2019-11-02 12:16:10 +01:00
|
|
|
rev = "4a382621da58ae6da850f1bb003ace8b5f67968c";
|
|
|
|
sha256 = "0z8psz24nx8497vpk2wya9vs451rzzw915lkw3qiq9bzlzg9r2wv";
|
2014-09-19 22:42:41 +02:00
|
|
|
};
|
|
|
|
description = "Fork of bsnes with HLE DSP emulation restored";
|
2018-03-02 01:11:16 +01:00
|
|
|
license = gpl3;
|
2019-11-02 12:16:10 +01:00
|
|
|
makefile = "Makefile";
|
2020-03-15 06:48:14 +01:00
|
|
|
postBuild = "cd out";
|
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
citra = mkLibRetroCore rec {
|
2020-03-15 06:48:14 +01:00
|
|
|
core = "citra";
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/libretro/citra.git";
|
|
|
|
rev = "84f31e95160b029e6d614053705054ed6a34bb38";
|
|
|
|
sha256 = "0gkgxpwrh0q098cpx56hprvmazi5qi448c23svwa8ar1myh8p248";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
deepClone = true;
|
|
|
|
};
|
|
|
|
description = "Port of Citra to libretro";
|
|
|
|
license = gpl2Plus;
|
2021-01-17 03:30:45 +01:00
|
|
|
extraNativeBuildInputs = [ cmake pkg-config ];
|
2020-03-22 03:54:01 +01:00
|
|
|
extraBuildInputs = [ libGLU libGL boost ];
|
2020-03-15 06:48:14 +01:00
|
|
|
makefile = "Makefile";
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DENABLE_LIBRETRO=ON"
|
|
|
|
"-DENABLE_QT=OFF"
|
|
|
|
"-DENABLE_SDL2=OFF"
|
|
|
|
"-DENABLE_WEB_SERVICE=OFF"
|
|
|
|
"-DENABLE_DISCORD_PRESENCE=OFF"
|
|
|
|
];
|
|
|
|
preConfigure = "sed -e '77d' -i externals/cmake-modules/GetGitRevisionDescription.cmake";
|
|
|
|
postBuild = "cd src/citra_libretro";
|
2014-09-19 22:42:41 +02:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
desmume = mkLibRetroCore rec {
|
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 19:32:35 +02:00
|
|
|
core = "desmume";
|
|
|
|
src = fetchRetro {
|
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 05:11:54 +02:00
|
|
|
repo = core;
|
2019-11-02 12:16:10 +01:00
|
|
|
rev = "e8cf461f83eebb195f09e70090f57b07d1bcdd9f";
|
|
|
|
sha256 = "0rc8s5226wn39jqs5yxi30jc1snc0p106sfym7kgi98hy5na8yab";
|
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 19:32:35 +02:00
|
|
|
};
|
|
|
|
description = "libretro wrapper for desmume NDS emulator";
|
2018-03-02 01:11:16 +01:00
|
|
|
license = gpl2;
|
2019-11-07 21:31:41 +01:00
|
|
|
extraBuildInputs = [ libpcap libGLU libGL xorg.libX11 ];
|
2020-03-22 03:54:01 +01:00
|
|
|
preBuild = "cd desmume/src/frontend/libretro";
|
2021-01-15 14:21:58 +01:00
|
|
|
makeFlags = lib.optional stdenv.hostPlatform.isAarch32 "platform=armv-unix"
|
|
|
|
++ lib.optional (!stdenv.hostPlatform.isx86) "DESMUME_JIT=0";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
desmume2015 = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "desmume2015";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core;
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "93d5789d60f82436e20ccad05ce9cb43c6e3656e";
|
|
|
|
sha256 = "12nii2pbnqgh7f7jkphbwjpr2hiy2mzbwpas3xyhpf9wpy3qiasg";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "libretro wrapper for desmume NDS emulator from 2015";
|
|
|
|
license = gpl2;
|
2019-11-07 21:31:41 +01:00
|
|
|
extraBuildInputs = [ libpcap libGLU libGL xorg.libX11 ];
|
2021-01-15 14:21:58 +01:00
|
|
|
makeFlags = lib.optional stdenv.hostPlatform.isAarch32 "platform=armv-unix"
|
|
|
|
++ lib.optional (!stdenv.hostPlatform.isx86) "DESMUME_JIT=0";
|
2020-03-22 03:54:01 +01:00
|
|
|
preBuild = "cd desmume";
|
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 19:32:35 +02:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
dolphin = mkLibRetroCore {
|
2017-06-04 10:10:14 +02:00
|
|
|
core = "dolphin";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "dolphin";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "1fbd59911d1b718c142d6448dee3ede98152e395";
|
|
|
|
sha256 = "1rymsvs034l1hbxc3w8zi9lhmgka2qaj3jynjy152dccd480nnd4";
|
2017-06-04 10:10:14 +02:00
|
|
|
};
|
|
|
|
description = "Port of Dolphin to libretro";
|
2018-03-02 01:11:16 +01:00
|
|
|
license = gpl2Plus;
|
2017-06-04 10:10:14 +02:00
|
|
|
|
2021-01-17 03:30:45 +01:00
|
|
|
extraNativeBuildInputs = [ cmake curl pkg-config ];
|
2017-06-04 10:10:14 +02:00
|
|
|
extraBuildInputs = [
|
2020-03-22 03:54:01 +01:00
|
|
|
libGLU libGL pcre sfml
|
2019-11-02 12:16:10 +01:00
|
|
|
gettext hidapi
|
2018-07-17 22:11:16 +02:00
|
|
|
libevdev udev
|
2019-11-02 12:16:10 +01:00
|
|
|
] ++ (with xorg; [ libSM libX11 libXi libpthreadstubs libxcb xcbutil libXext libXrandr libXinerama libXxf86vm ]);
|
2020-03-15 06:48:14 +01:00
|
|
|
makefile = "Makefile";
|
2017-06-04 10:10:14 +02:00
|
|
|
cmakeFlags = [
|
2019-11-02 12:16:10 +01:00
|
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
|
|
"-DLIBRETRO=ON"
|
|
|
|
"-DLIBRETRO_STATIC=1"
|
|
|
|
"-DENABLE_QT=OFF"
|
|
|
|
"-DENABLE_LTO=OFF"
|
|
|
|
"-DUSE_UPNP=OFF"
|
2019-11-07 17:29:26 +01:00
|
|
|
"-DUSE_DISCORD_PRESENCE=OFF"
|
2017-06-04 10:10:14 +02:00
|
|
|
];
|
2020-03-22 03:54:01 +01:00
|
|
|
dontUseCmakeBuildDir = true;
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
dosbox = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "dosbox";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core + "-libretro";
|
|
|
|
rev = "e4ed503b14ed59d5d745396ef1cc7d52cf912328";
|
|
|
|
sha256 = "13bx0ln9hwn6hy4sv0ivqmjgjbfq8svx15dsa24hwd8lkf0kakl4";
|
|
|
|
};
|
|
|
|
description = "Port of DOSBox to libretro";
|
|
|
|
license = gpl2;
|
2017-06-04 10:10:14 +02:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
eightyone = mkLibRetroCore rec {
|
2020-03-15 06:48:14 +01:00
|
|
|
core = "81";
|
2014-09-19 22:42:41 +02:00
|
|
|
src = fetchRetro {
|
|
|
|
repo = core + "-libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "4352130bd2363954262a804b086f86b9d13d97f9";
|
|
|
|
sha256 = "057ynnv85imjqhgixrx7p28wn42v88vsm3fc1lp3mpcfi2bk266h";
|
|
|
|
};
|
|
|
|
description = "Port of EightyOne to libretro";
|
|
|
|
license = gpl3;
|
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
fbalpha2012 = mkLibRetroCore rec {
|
2020-03-15 06:48:14 +01:00
|
|
|
core = "fbalpha2012";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core;
|
|
|
|
rev = "fa97cd2784a337f8ac774c2ce8a136aee69b5f43";
|
|
|
|
sha256 = "1i75k0r6838hl77bjjmzvan33ka5qjrdpirmclzj20g5j97lmas7";
|
|
|
|
};
|
|
|
|
description = "Port of Final Burn Alpha ~2012 to libretro";
|
|
|
|
license = "Non-commercial";
|
|
|
|
makefile = "makefile.libretro";
|
2020-03-22 03:54:01 +01:00
|
|
|
preBuild = "cd svn-current/trunk";
|
2020-03-15 06:48:14 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
fbneo = mkLibRetroCore rec {
|
2020-03-15 06:48:14 +01:00
|
|
|
core = "fbneo";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core;
|
|
|
|
rev = "cf43fdb1755f9f5c886266e86ba40d339bc8f5d7";
|
|
|
|
sha256 = "13g3c6mbwhcf0rp95ga4klszh8dab2d4ahh2vzzlmd57r69lf2lv";
|
2014-09-19 22:42:41 +02:00
|
|
|
};
|
2020-03-15 06:48:14 +01:00
|
|
|
description = "Port of FBNeo to libretro";
|
2018-03-02 01:11:16 +01:00
|
|
|
license = "Non-commercial";
|
2020-03-15 06:48:14 +01:00
|
|
|
makefile = "Makefile";
|
|
|
|
postPatch = ''
|
|
|
|
sed -i -e 's:-Wall:-Wall -Wno-format-security:g' src/burner/libretro/Makefile
|
2014-09-19 22:42:41 +02:00
|
|
|
'';
|
2020-03-22 03:54:01 +01:00
|
|
|
preBuild = "cd src/burner/libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
makeFlags = [ "USE_EXPERIMENTAL_FLAGS=1" ];
|
2014-09-19 22:42:41 +02:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
fceumm = mkLibRetroCore rec {
|
2015-11-20 15:49:45 +01:00
|
|
|
core = "fceumm";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "libretro-" + core;
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "9ed22e5a9a1360a7f599a64283af9fe24b858e3d";
|
|
|
|
sha256 = "0rz6iy281jpybmsz5rh06k5xvmd9id9w2q2gd0qdv9a2ylwv7s2j";
|
2015-11-20 15:49:45 +01:00
|
|
|
};
|
|
|
|
description = "FCEUmm libretro port";
|
2018-03-02 01:11:16 +01:00
|
|
|
license = gpl2;
|
2015-11-20 15:49:45 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
flycast = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "flycast";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core;
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "b12f3726d9093acb4e441b1cdcf6cd11403c8644";
|
|
|
|
sha256 = "0nczjhdqr7svq9aflczf7rwz64bih1wqy9q0gyglb55xlslf5jqc";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Flycast libretro port";
|
|
|
|
license = gpl2;
|
2019-11-07 17:29:26 +01:00
|
|
|
extraBuildInputs = [ libGL libGLU ];
|
2019-11-02 12:16:10 +01:00
|
|
|
makefile = "Makefile";
|
2021-01-15 14:21:58 +01:00
|
|
|
makeFlags = lib.optional stdenv.hostPlatform.isAarch64 [ "platform=arm64" ];
|
2020-03-15 06:48:14 +01:00
|
|
|
meta.platforms = [ "aarch64-linux" "x86_64-linux" ];
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
fmsx = mkLibRetroCore rec {
|
2020-03-15 06:48:14 +01:00
|
|
|
core = "fmsx";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core + "-libretro";
|
|
|
|
rev = "3de916bbf15062de1ab322432d38a1fee29d5e68";
|
|
|
|
sha256 = "1krr4lmdiv0d7bxk37fqz5y412znb5bmxapv9g7ci6fp87sr69jq";
|
|
|
|
};
|
|
|
|
description = "FMSX libretro port";
|
2020-03-22 03:54:01 +01:00
|
|
|
license = "Non-commercial";
|
2020-03-15 06:48:14 +01:00
|
|
|
makefile = "Makefile";
|
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
freeintv = mkLibRetroCore rec {
|
2020-03-15 06:48:14 +01:00
|
|
|
core = "freeintv";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core;
|
|
|
|
rev = "45030e10cc1a50cf7a80c5d921aa8cba0aeaca91";
|
|
|
|
sha256 = "10lngk3p012bgrg752426701hfzsiy359h8i0vzsa64pgyjbqlag";
|
|
|
|
};
|
|
|
|
description = "FreeIntv libretro port";
|
|
|
|
license = gpl3;
|
|
|
|
makefile = "Makefile";
|
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
gambatte = mkLibRetroCore rec {
|
2014-09-19 22:42:41 +02:00
|
|
|
core = "gambatte";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core + "-libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "132f36e990dfc6effdafa6cf261373432464f9bf";
|
|
|
|
sha256 = "19w5k9yc1cl99c5hiqbp6j54g6z06xcblpvd3x6nmhxij81yqxy7";
|
2014-09-19 22:42:41 +02:00
|
|
|
};
|
|
|
|
description = "Gambatte libretro port";
|
2018-03-02 01:11:16 +01:00
|
|
|
license = gpl2;
|
2014-09-19 22:42:41 +02:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
genesis-plus-gx = mkLibRetroCore {
|
2014-09-19 22:42:41 +02:00
|
|
|
core = "genesis-plus-gx";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "Genesis-Plus-GX";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "50551066f71f8a5ea782ea3747891fd6d24ebe67";
|
|
|
|
sha256 = "150lgdrv7idcq7jbd1jj7902rcsyixd7kfjs2m5xdinjvl22kihr";
|
2014-09-19 22:42:41 +02:00
|
|
|
};
|
|
|
|
description = "Enhanced Genesis Plus libretro port";
|
2018-03-02 01:11:16 +01:00
|
|
|
license = "Non-commercial";
|
2014-09-19 22:42:41 +02:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
gpsp = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "gpsp";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core;
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "3f2f57c982ffead643957db5b26931df4913596f";
|
|
|
|
sha256 = "09fa1c623rmy1w9zx85r75viv8q1vknhbs8fn6xbss9rhpxhivwg";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Port of gpSP to libretro";
|
|
|
|
license = gpl2;
|
|
|
|
makefile = "Makefile";
|
2020-03-15 06:48:14 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
gw = mkLibRetroCore rec {
|
2020-03-15 06:48:14 +01:00
|
|
|
core = "gw";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core + "-libretro";
|
|
|
|
rev = "819b1dde560013003eeac86c2069c5be7af25c6d";
|
|
|
|
sha256 = "1jhgfys8hiipvbwq3gc48d7v6wq645d10rbr4w5m6px0fk6csshk";
|
|
|
|
};
|
|
|
|
description = "Port of Game and Watch to libretro";
|
2021-01-15 14:21:58 +01:00
|
|
|
license = lib.licenses.zlib;
|
2020-03-15 06:48:14 +01:00
|
|
|
makefile = "Makefile";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
handy = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "handy";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "libretro-" + core;
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "c9fe65d1a2df454ee11404ac27bdc9be319dd9a2";
|
|
|
|
sha256 = "1l1gi8z68mv2cpdy7a6wvhd86q55khj3mv3drf43ak4kj2ij8cvq";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Port of Handy to libretro";
|
|
|
|
license = "Handy-License";
|
|
|
|
makefile = "Makefile";
|
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
hatari = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "hatari";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core;
|
|
|
|
rev = "ec1b59c4b6c7ca7d0d23d60cfe2cb61911b11173";
|
|
|
|
sha256 = "1pm821s2cz93xr7qx7dv0imr44bi4pvdvlnjl486p83vff9yawfg";
|
|
|
|
};
|
|
|
|
description = "Port of Hatari to libretro";
|
|
|
|
license = gpl2;
|
2020-03-22 03:54:01 +01:00
|
|
|
extraBuildInputs = [ SDL zlib ];
|
|
|
|
extraNativeBuildInputs = [ cmake which ];
|
|
|
|
dontUseCmakeConfigure = true;
|
2020-03-15 06:48:14 +01:00
|
|
|
dontConfigure = true;
|
2020-03-22 03:54:01 +01:00
|
|
|
makeFlags = [ "EXTERNAL_ZLIB=1" ];
|
|
|
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
2014-09-19 22:42:41 +02:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
mame = mkLibRetroCore {
|
2016-02-26 11:18:02 +01:00
|
|
|
core = "mame";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "mame";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "ed987ad07964a938351ff3cc1ad42e02ffd2af6d";
|
|
|
|
sha256 = "0qc66mvraffx6ws972skx3wgblich17q6z42798qn13q1a264p4j";
|
2016-02-26 11:18:02 +01:00
|
|
|
};
|
|
|
|
description = "Port of MAME to libretro";
|
2018-03-02 01:11:16 +01:00
|
|
|
license = gpl2Plus;
|
2016-02-26 11:18:02 +01:00
|
|
|
|
2019-11-07 21:31:41 +01:00
|
|
|
extraBuildInputs = [ alsaLib libGLU libGL portaudio python27 xorg.libX11 ];
|
2017-11-29 11:53:01 +01:00
|
|
|
postPatch = ''
|
|
|
|
# Prevent the failure during the parallel building of:
|
|
|
|
# make -C 3rdparty/genie/build/gmake.linux -f genie.make obj/Release/src/host/lua-5.3.0/src/lgc.o
|
|
|
|
mkdir -p 3rdparty/genie/build/gmake.linux/obj/Release/src/host/lua-5.3.0/src
|
|
|
|
'';
|
2020-03-15 06:48:14 +01:00
|
|
|
makefile = "Makefile.libretro";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
mame2000 = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "mame2000";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core + "-libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "e5d4a934c60adc6d42a3f87319312aad89595a15";
|
|
|
|
sha256 = "1zn63yqyrsnsk196v5f3nm7cx41mvsm3icpis1yxbma2r3dk3f89";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Port of MAME ~2000 to libretro";
|
|
|
|
license = gpl2Plus;
|
|
|
|
makefile = "Makefile";
|
2021-01-15 14:21:58 +01:00
|
|
|
makeFlags = lib.optional (!stdenv.hostPlatform.isx86) "IS_X86=0";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
mame2003 = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "mame2003";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core + "-libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "82596014905ad38c80c9eb322ab08c625d1d92cd";
|
|
|
|
sha256 = "17dp2rz6p7q7nr0lajn3vhk9ghngxz16f7c6c87r6wgsy4y3xw0m";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Port of MAME ~2003 to libretro";
|
|
|
|
license = gpl2Plus;
|
|
|
|
makefile = "Makefile";
|
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
mame2003-plus = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "mame2003-plus";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core + "-libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "0134c428b75882aa474f78dbbf2c6ecde49b97b7";
|
|
|
|
sha256 = "0jln2ys6v9hrsrkhqd87jfslwvkca425f40mf7866g6b4pz56mwc";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Port of MAME ~2003+ to libretro";
|
|
|
|
license = gpl2Plus;
|
|
|
|
makefile = "Makefile";
|
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
mame2010 = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "mame2010";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core + "-libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "d3151837758eade73c85c28c20e7d2a8706f30c6";
|
|
|
|
sha256 = "0hj0yhc8zs32fkzn8j341ybhvrsknv0k6x0z2fv3l9ic7swgb93i";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Port of MAME ~2010 to libretro";
|
|
|
|
license = gpl2Plus;
|
|
|
|
makefile = "Makefile";
|
2021-01-15 14:21:58 +01:00
|
|
|
makeFlags = lib.optionals stdenv.hostPlatform.isAarch64 [ "PTR64=1" "ARM_ENABLED=1" "X86_SH2DRC=0" "FORCE_DRC_C_BACKEND=1" ];
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
mame2015 = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "mame2015";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core + "-libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "37333ed6fda4c798a1d6b055fe4708f9f0dcf5a7";
|
|
|
|
sha256 = "1asldlj1ywgmhabbhaagagg5hn0359122al07802q3l57ns41l64";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Port of MAME ~2015 to libretro";
|
|
|
|
license = gpl2Plus;
|
2020-03-22 03:54:01 +01:00
|
|
|
extraNativeBuildInputs = [ python27 ];
|
|
|
|
extraBuildInputs = [ alsaLib ];
|
2019-11-02 12:16:10 +01:00
|
|
|
makefile = "Makefile";
|
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
mame2016 = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "mame2016";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core + "-libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "02987af9b81a9c3294af8fb9d5a34f9826a2cf4d";
|
|
|
|
sha256 = "0gl7irmn5d8lk7kf484vgw6kb325fq4ghwsni3il4nm5n2a8yglh";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
2020-10-28 17:03:22 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix_mame_build_on_make-4.3.patch";
|
|
|
|
url = "https://github.com/libretro/mame2016-libretro/commit/5874fae3d124f5e7c8a91634f5473a8eac902e47.patch";
|
|
|
|
sha256 = "061f1lcm72glksf475ikl8w10pnbgqa7049ylw06nikis2qdjlfn";
|
|
|
|
})
|
|
|
|
];
|
2019-11-02 12:16:10 +01:00
|
|
|
description = "Port of MAME ~2016 to libretro";
|
|
|
|
license = gpl2Plus;
|
2020-03-22 03:54:01 +01:00
|
|
|
extraNativeBuildInputs = [ python27 ];
|
|
|
|
extraBuildInputs = [ alsaLib ];
|
2019-11-02 12:16:10 +01:00
|
|
|
postPatch = ''
|
|
|
|
# Prevent the failure during the parallel building of:
|
|
|
|
# make -C 3rdparty/genie/build/gmake.linux -f genie.make obj/Release/src/host/lua-5.3.0/src/lgc.o
|
|
|
|
mkdir -p 3rdparty/genie/build/gmake.linux/obj/Release/src/host/lua-5.3.0/src
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
mesen = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "mesen";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SourMesen";
|
|
|
|
repo = core;
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "cfc5bf6976f62ebd42ea30d5a803c138fc357509";
|
|
|
|
sha256 = "0ihlgvzvni1yqcyi5yxdvg36q20fsqd6n67zavwfb2ph09cqv7kz";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Port of Mesen to libretro";
|
|
|
|
license = gpl3;
|
2020-03-15 06:48:14 +01:00
|
|
|
makefile = "Makefile";
|
2020-03-22 03:54:01 +01:00
|
|
|
preBuild = "cd Libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
meteor = mkLibRetroCore rec {
|
2020-03-15 06:48:14 +01:00
|
|
|
core = "meteor";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core + "-libretro";
|
|
|
|
rev = "3d21e3b5a7596918bee0fcaca5752ae76624c05e";
|
|
|
|
sha256 = "0fghnxxbdrkdz6zswkd06w2r3dvr4ikvcp8jbr7nb9fc5yzn0avw";
|
|
|
|
};
|
|
|
|
description = "Port of Meteor to libretro";
|
|
|
|
license = gpl3;
|
|
|
|
makefile = "Makefile";
|
2020-03-22 03:54:01 +01:00
|
|
|
preBuild = "cd libretro";
|
2017-02-11 13:49:33 +01:00
|
|
|
};
|
|
|
|
|
2017-02-10 12:03:14 +01:00
|
|
|
mgba = mkLibRetroCore rec {
|
|
|
|
core = "mgba";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core;
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "f87f9ef6cb38537e07dcaedeb82aecac6537d42e";
|
|
|
|
sha256 = "0yixvnzgk7qvcfz12r5y8i85czqxbxx6bvl1c7yms8riqn9ssvb7";
|
2017-02-10 12:03:14 +01:00
|
|
|
};
|
|
|
|
description = "Port of mGBA to libretro";
|
2018-03-02 01:11:16 +01:00
|
|
|
license = mpl20;
|
2017-02-10 12:03:14 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
mupen64plus = mkLibRetroCore {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "mupen64plus-next";
|
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 19:32:35 +02:00
|
|
|
src = fetchRetro {
|
2020-03-15 06:48:14 +01:00
|
|
|
repo = "mupen64plus-libretro-nx";
|
|
|
|
rev = "81a58df0263c90b10b7fc11b6deee04d47e3aa40";
|
|
|
|
sha256 = "1brqyrsdzdq53a68q7ph01q2bx5y4m8b3ymvpp25229imm88lgkn";
|
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 19:32:35 +02:00
|
|
|
};
|
|
|
|
description = "Libretro port of Mupen64 Plus, GL only";
|
2018-03-02 01:11:16 +01:00
|
|
|
license = gpl2;
|
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 19:32:35 +02:00
|
|
|
|
2019-11-07 21:31:41 +01:00
|
|
|
extraBuildInputs = [ libGLU libGL libpng nasm xorg.libX11 ];
|
2019-11-02 12:16:10 +01:00
|
|
|
makefile = "Makefile";
|
2020-03-15 06:48:14 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
neocd = mkLibRetroCore rec {
|
2020-03-15 06:48:14 +01:00
|
|
|
core = "neocd";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core + "_libretro";
|
|
|
|
rev = "3825848fe7dd7e0ef859729eefcb29e2ea2956b7";
|
|
|
|
sha256 = "018vfmjsx62zk45yx3pwisp4j133yxjbm7fnwwr244gnyms57711";
|
|
|
|
};
|
|
|
|
description = "NeoCD libretro port";
|
|
|
|
license = gpl3;
|
|
|
|
makefile = "Makefile";
|
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 19:32:35 +02:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
nestopia = mkLibRetroCore rec {
|
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 05:11:54 +02:00
|
|
|
core = "nestopia";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core;
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "70c53f08c0cc92e90d095d6558ab737ce20431ac";
|
|
|
|
sha256 = "1hlfqml66wy6fn40f1iiy892vq9y9fj20vv3ynd2s3b3qxhwfx73";
|
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 05:11:54 +02:00
|
|
|
};
|
2020-03-15 06:48:14 +01:00
|
|
|
description = "Nestopia libretro port";
|
2018-03-02 01:11:16 +01:00
|
|
|
license = gpl2;
|
2020-03-15 06:48:14 +01:00
|
|
|
makefile = "Makefile";
|
2020-03-22 03:54:01 +01:00
|
|
|
preBuild = "cd libretro";
|
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 05:11:54 +02:00
|
|
|
};
|
2019-11-07 17:29:26 +01:00
|
|
|
|
2020-04-08 17:41:37 +02:00
|
|
|
np2kai = mkLibRetroCore rec {
|
|
|
|
core = "np2kai";
|
|
|
|
src = fetchFromGitHub rec {
|
|
|
|
owner = "AZO234";
|
|
|
|
repo = "NP2kai";
|
|
|
|
rev = "4a317747724669343e4c33ebdd34783fb7043221";
|
|
|
|
sha256 = "0kxysxhx6jyk82mx30ni0ydzmwdcbnlxlnarrlq018rsnwb4md72";
|
|
|
|
};
|
|
|
|
description = "Neko Project II kai libretro port";
|
|
|
|
license = mit;
|
|
|
|
makefile = "Makefile.libretro";
|
|
|
|
preBuild = ''
|
|
|
|
cd sdl2
|
|
|
|
substituteInPlace ${makefile} \
|
|
|
|
--replace 'GIT_VERSION :=' 'GIT_VERSION ?='
|
|
|
|
export GIT_VERSION=${builtins.substring 0 7 src.rev}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
o2em = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "o2em";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "libretro-" + core;
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "b23a796dd3490e979ff43710317df6d43bd661e1";
|
|
|
|
sha256 = "1pkbq7nig394zdjdic0mzdsvx8xhzamsh53xh2hzznipyj46b7z0";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Port of O2EM to libretro";
|
|
|
|
license = artistic1;
|
|
|
|
makefile = "Makefile";
|
2020-03-15 06:48:14 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
opera = mkLibRetroCore rec {
|
2020-03-15 06:48:14 +01:00
|
|
|
core = "opera";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core + "-libretro";
|
|
|
|
rev = "27bc2653ed469072a6a95102a8212a35fbb1e590";
|
|
|
|
sha256 = "10cxjpsd35rb4fjc5ycs1h00gvshpn2mxxvwb6xzrfrzva0kjw1l";
|
|
|
|
};
|
|
|
|
description = "Opera is a port of 4DO/libfreedo to libretro";
|
|
|
|
license = "Non-commercial";
|
|
|
|
makefile = "Makefile";
|
2020-03-22 03:54:01 +01:00
|
|
|
makeFlags = [ "CC_PREFIX=${stdenv.cc.targetPrefix}" ];
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
2019-11-07 17:29:26 +01:00
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
parallel-n64 = mkLibRetroCore rec {
|
2017-06-07 23:30:40 +02:00
|
|
|
core = "parallel-n64";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core;
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "8fe07c62a364d0af1e22b7f75e839d42872dae7f";
|
|
|
|
sha256 = "0p3fpldw6w4n4l60bv55c17vhqwq4q39fp36h8iqmnj7c32c61kf";
|
2017-06-07 23:30:40 +02:00
|
|
|
};
|
|
|
|
description = "Parallel Mupen64plus rewrite for libretro.";
|
2018-03-02 01:11:16 +01:00
|
|
|
license = gpl2;
|
2019-11-07 21:31:41 +01:00
|
|
|
extraBuildInputs = [ libGLU libGL libpng ];
|
2019-11-02 12:16:10 +01:00
|
|
|
makefile = "Makefile";
|
2021-01-15 14:21:58 +01:00
|
|
|
postPatch = lib.optionalString stdenv.hostPlatform.isAarch64 ''
|
2020-03-15 06:48:14 +01:00
|
|
|
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
|
|
|
|
'';
|
2017-06-07 23:30:40 +02:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
pcsx_rearmed = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "pcsx_rearmed";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core;
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "8fda5dd0e28fe46621fb1ab57781c316143017da";
|
|
|
|
sha256 = "0k371d0xqzqwy8ishvxssgasm36q83qj7ksn2av110n879n4knwb";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
2020-03-15 06:48:14 +01:00
|
|
|
description = "Port of PCSX ReARMed with GNU lightning to libretro";
|
2019-11-02 12:16:10 +01:00
|
|
|
license = gpl2;
|
2020-03-15 06:48:14 +01:00
|
|
|
dontConfigure = true;
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
2019-11-07 17:29:26 +01:00
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
picodrive = mkLibRetroCore rec {
|
2014-09-19 22:42:41 +02:00
|
|
|
core = "picodrive";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core;
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "600894ec6eb657586a972a9ecd268f50907a279c";
|
|
|
|
sha256 = "1bxphwnq4b80ssmairy8sfc5cp4m6jyvrcjcj63q1vk7cs6qls7p";
|
2014-09-19 22:42:41 +02:00
|
|
|
};
|
|
|
|
description = "Fast MegaDrive/MegaCD/32X emulator";
|
2018-03-02 01:11:16 +01:00
|
|
|
license = "MAME";
|
2014-09-19 22:42:41 +02:00
|
|
|
|
|
|
|
extraBuildInputs = [ libpng SDL ];
|
2020-03-22 03:54:01 +01:00
|
|
|
SDL_CONFIG = "${SDL.dev}/bin/sdl-config";
|
|
|
|
dontAddPrefix = true;
|
|
|
|
configurePlatforms = [];
|
2021-01-15 14:21:58 +01:00
|
|
|
makeFlags = lib.optional stdenv.hostPlatform.isAarch64 [ "platform=aarch64" ];
|
2014-09-19 22:42:41 +02:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
play = mkLibRetroCore {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "play";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "play-";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "884ae3b96c631f235cd18b2643d1f318fa6951fb";
|
|
|
|
sha256 = "0m9pk20jh4y02visgzfw64bpbw93bzs15x3a3bnd19yivm34dbfc";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Port of Play! to libretro";
|
|
|
|
license = bsd2;
|
2020-03-22 03:54:01 +01:00
|
|
|
extraBuildInputs = [ boost ];
|
|
|
|
extraNativeBuildInputs = [ cmake openssl curl icu libGL libGLU xorg.libX11 ];
|
2020-03-15 06:48:14 +01:00
|
|
|
makefile = "Makefile";
|
2019-11-02 12:16:10 +01:00
|
|
|
cmakeFlags = [ "-DBUILD_PLAY=OFF -DBUILD_LIBRETRO_CORE=ON" ];
|
2020-03-15 06:48:14 +01:00
|
|
|
postBuild = "mv Source/ui_libretro/play_libretro${stdenv.hostPlatform.extensions.sharedLibrary} play_libretro${stdenv.hostPlatform.extensions.sharedLibrary}";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
ppsspp = mkLibRetroCore {
|
2015-11-20 15:49:45 +01:00
|
|
|
core = "ppsspp";
|
2019-11-02 12:16:10 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/hrydgard/ppsspp";
|
|
|
|
rev = "bf1777f7d3702e6a0f71c7ec1fc51976e23c2327";
|
|
|
|
sha256 = "17sym0vk72lzbh9a1501mhw98c78x1gq7k1fpy69nvvb119j37wa";
|
2014-09-19 22:42:41 +02:00
|
|
|
};
|
2015-11-20 15:49:45 +01:00
|
|
|
description = "ppsspp libretro port";
|
2018-03-02 01:11:16 +01:00
|
|
|
license = gpl2;
|
2021-01-17 03:30:45 +01:00
|
|
|
extraNativeBuildInputs = [ cmake pkg-config ];
|
2020-06-07 14:39:09 +02:00
|
|
|
extraBuildInputs = [ libGLU libGL libzip ffmpeg_3 python37 snappy xorg.libX11 ];
|
2019-11-02 12:16:10 +01:00
|
|
|
makefile = "Makefile";
|
2020-03-15 06:48:14 +01:00
|
|
|
cmakeFlags = [ "-DLIBRETRO=ON -DUSE_SYSTEM_FFMPEG=ON -DUSE_SYSTEM_SNAPPY=ON -DUSE_SYSTEM_LIBZIP=ON -DOpenGL_GL_PREFERENCE=GLVND" ];
|
|
|
|
postBuild = "mv lib/ppsspp_libretro${stdenv.hostPlatform.extensions.sharedLibrary} ppsspp_libretro${stdenv.hostPlatform.extensions.sharedLibrary}";
|
2014-09-19 22:42:41 +02:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
prboom = mkLibRetroCore rec {
|
2015-11-20 15:49:45 +01:00
|
|
|
core = "prboom";
|
2014-09-19 22:42:41 +02:00
|
|
|
src = fetchRetro {
|
|
|
|
repo = "libretro-" + core;
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "991016b3c7a9c8b0e49b2bc9c72f68c60800fc7b";
|
|
|
|
sha256 = "1abv9qgfvh3x84shgyl3y90bjz77mjj17vibag7bg6i8hgjikjgq";
|
2014-09-19 22:42:41 +02:00
|
|
|
};
|
2015-11-20 15:49:45 +01:00
|
|
|
description = "Prboom libretro port";
|
2018-03-02 01:11:16 +01:00
|
|
|
license = gpl2;
|
2020-03-15 06:48:14 +01:00
|
|
|
makefile = "Makefile";
|
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 05:11:54 +02:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
prosystem = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "prosystem";
|
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 05:11:54 +02:00
|
|
|
src = fetchRetro {
|
2019-11-02 12:16:10 +01:00
|
|
|
repo = core + "-libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "6f7e34aea89db5ba2fbf674e5ff0ad6fc68a198e";
|
|
|
|
sha256 = "0pqkb0f51s8ma0l4m9xk2y85z2kh3fgay9g4g8fingbgqq1klvzs";
|
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 05:11:54 +02:00
|
|
|
};
|
2019-11-02 12:16:10 +01:00
|
|
|
description = "Port of ProSystem to libretro";
|
|
|
|
license = gpl2;
|
|
|
|
makefile = "Makefile";
|
2014-09-19 22:42:41 +02:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
quicknes = mkLibRetroCore {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "quicknes";
|
2017-02-10 12:11:29 +01:00
|
|
|
src = fetchRetro {
|
2019-11-02 12:16:10 +01:00
|
|
|
repo = "QuickNES_Core";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "31654810b9ebf8b07f9c4dc27197af7714364ea7";
|
|
|
|
sha256 = "15fr5a9hv7wgndb0fpmr6ws969him41jidzir2ix9xkb0mmvcm86";
|
2017-02-10 12:11:29 +01:00
|
|
|
};
|
2019-11-02 12:16:10 +01:00
|
|
|
description = "QuickNES libretro port";
|
|
|
|
license = lgpl21Plus;
|
|
|
|
makefile = "Makefile";
|
2020-03-15 06:48:14 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
sameboy = mkLibRetroCore rec {
|
2020-03-15 06:48:14 +01:00
|
|
|
core = "sameboy";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "sameboy";
|
|
|
|
rev = "c9e547c1063fd62c40a4b7a86e7db99dc9089051";
|
|
|
|
sha256 = "0bff6gicm24d7h270aqvgd8il6mi7j689nj5zl9ij0wc77hrrpmq";
|
|
|
|
};
|
|
|
|
description = "SameBoy libretro port";
|
|
|
|
license = mit;
|
2020-03-22 03:54:01 +01:00
|
|
|
extraNativeBuildInputs = [ which hexdump ];
|
|
|
|
preBuild = "cd libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
makefile = "Makefile";
|
2017-02-10 12:11:29 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
scummvm = mkLibRetroCore rec {
|
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 19:32:35 +02:00
|
|
|
core = "scummvm";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core;
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "de91bf9bcbf4449f91e2f50fde173496a2b52ee0";
|
|
|
|
sha256 = "06h9xaf2b1cjk85nbslpjj0fm9iy9b2lxr1wf3i09hgs4sh6x464";
|
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 19:32:35 +02:00
|
|
|
};
|
|
|
|
description = "Libretro port of ScummVM";
|
2018-03-02 01:11:16 +01:00
|
|
|
license = gpl2;
|
2019-11-07 21:31:41 +01:00
|
|
|
extraBuildInputs = [ fluidsynth libjpeg libvorbis libGLU libGL SDL ];
|
2020-03-15 06:48:14 +01:00
|
|
|
makefile = "Makefile";
|
2020-03-22 03:54:01 +01:00
|
|
|
preConfigure = "cd backends/platform/libretro/build";
|
2020-03-15 06:48:14 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
smsplus-gx = mkLibRetroCore rec {
|
2020-03-15 06:48:14 +01:00
|
|
|
core = "smsplus";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core + "-gx";
|
|
|
|
rev = "36c82768c03d889f1cf4b66369edac2297acba32";
|
|
|
|
sha256 = "1f9waikyp7kp2abb76wlv9hmf2jpc76zjmfqyc7wk2pc70ljm3l4";
|
|
|
|
};
|
|
|
|
description = "SMS Plus GX libretro port";
|
|
|
|
license = 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 05:11:54 +02:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
snes9x = mkLibRetroCore rec {
|
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 05:11:54 +02:00
|
|
|
core = "snes9x";
|
2020-01-11 14:56:01 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "snes9xgit";
|
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 05:11:54 +02:00
|
|
|
repo = core;
|
2021-01-26 14:53:53 +01:00
|
|
|
rev = "bd9246ddd75a5e9f78d6189c8c57754d843630f7";
|
|
|
|
sha256 = "10fm7ah3aha9lf4k9hgw0dlhdvshzpig2d0ylcb12gf9zz0i22ns";
|
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 05:11:54 +02:00
|
|
|
};
|
2015-11-20 15:49:45 +01:00
|
|
|
description = "Port of SNES9x git to libretro";
|
2018-03-02 01:11:16 +01:00
|
|
|
license = "Non-commercial";
|
2020-03-15 06:48:14 +01:00
|
|
|
makefile = "Makefile";
|
2020-03-22 03:54:01 +01:00
|
|
|
preBuild = "cd libretro";
|
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 19:32:35 +02:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
snes9x2002 = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "snes9x2002";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core;
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "a869da7f22c63ee1cb316f79c6dd7691a369da3e";
|
|
|
|
sha256 = "11lcwscnxg6sk9as2xlr4nai051qhidbsymyis4nz3r4dmgzf8j8";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Optimized port/rewrite of SNES9x 1.39 to Libretro";
|
|
|
|
license = "Non-commercial";
|
|
|
|
makefile = "Makefile";
|
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
snes9x2005 = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "snes9x2005";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core;
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "c216559b9e0dc3d7f059dcf31b813402ad47fea5";
|
|
|
|
sha256 = "19b2rpj6i32c34ryvlna4yca84y5ypza78w4x9l17qlhp021h9pv";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Optimized port/rewrite of SNES9x 1.43 to Libretro";
|
|
|
|
license = "Non-commercial";
|
|
|
|
makefile = "Makefile";
|
2020-03-15 06:48:14 +01:00
|
|
|
makeFlags = [ "USE_BLARGG_APU=1" ];
|
|
|
|
postBuild = "mv snes9x2005_plus_libretro${stdenv.hostPlatform.extensions.sharedLibrary} snes9x2005_libretro${stdenv.hostPlatform.extensions.sharedLibrary}";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
snes9x2010 = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "snes9x2010";
|
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 19:32:35 +02:00
|
|
|
src = fetchRetro {
|
|
|
|
repo = core;
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "ba9f2240360f8db270fb6ba5465c79c317070560";
|
|
|
|
sha256 = "00y53sjrsp8sccpp1qqw88iawsz30g6d370cbqcxs4ya1r6awn5x";
|
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 19:32:35 +02:00
|
|
|
};
|
|
|
|
description = "Optimized port/rewrite of SNES9x 1.52+ to Libretro";
|
2018-03-02 01:11:16 +01:00
|
|
|
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 19:32:35 +02:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
stella = mkLibRetroCore rec {
|
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 19:32:35 +02:00
|
|
|
core = "stella";
|
2020-03-15 06:48:14 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stella-emu";
|
|
|
|
repo = core;
|
|
|
|
rev = "506bb0bd0618e676b1959931dcc00a9d0f5f0f3d";
|
|
|
|
sha256 = "09nclx0ksixngnxkkjjcyhf3d0vl4ykm8fx7m307lvag8nxj7z03";
|
|
|
|
};
|
|
|
|
description = "Port of Stella to libretro";
|
|
|
|
license = gpl2;
|
2021-01-17 03:30:45 +01:00
|
|
|
extraBuildInputs = [ libpng pkg-config SDL ];
|
2020-03-15 06:48:14 +01:00
|
|
|
makefile = "Makefile";
|
2020-03-22 03:54:01 +01:00
|
|
|
preBuild = "cd src/libretro";
|
|
|
|
dontConfigure = true;
|
2020-03-15 06:48:14 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
stella2014 = mkLibRetroCore rec {
|
2020-03-15 06:48:14 +01:00
|
|
|
core = "stella2014";
|
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 19:32:35 +02:00
|
|
|
src = fetchRetro {
|
2020-03-15 06:48:14 +01:00
|
|
|
repo = core + "-libretro";
|
|
|
|
rev = "fc87f2c78d3b177f4b9b19698557dce452ac3ce7";
|
|
|
|
sha256 = "0yqzavk1w0d0ngpls32c4wlihii97fz2g6zsgadhm48apwjvn3xx";
|
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 19:32:35 +02:00
|
|
|
};
|
|
|
|
description = "Port of Stella to libretro";
|
2018-03-02 01:11:16 +01:00
|
|
|
license = gpl2;
|
2019-11-02 12:16:10 +01:00
|
|
|
makefile = "Makefile";
|
2020-03-15 06:48:14 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
tgbdual = mkLibRetroCore rec {
|
2020-03-15 06:48:14 +01:00
|
|
|
core = "tgbdual";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core + "-libretro";
|
|
|
|
rev = "9be31d373224cbf288db404afc785df41e61b213";
|
|
|
|
sha256 = "19m3f3hj3jyg711z1xq8qn1hgsr593krl6s6hi0r6vf8p5x0zbzw";
|
|
|
|
};
|
|
|
|
description = "Port of TGBDual to libretro";
|
|
|
|
license = gpl2;
|
|
|
|
makefile = "Makefile";
|
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
tic80 = mkLibRetroCore {
|
2020-03-15 06:48:14 +01:00
|
|
|
core = "tic80";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "tic-80";
|
|
|
|
rev = "f43bad908d5f05f2a66d5cd1d6f21b234d4abd2c";
|
|
|
|
sha256 = "0bp34r8qqyw52alws1z4ib9j7bs4d641q6nvqszd07snp9lpvwym";
|
|
|
|
};
|
|
|
|
description = "Port of TIC-80 to libretro";
|
|
|
|
license = mit;
|
2021-01-17 03:30:45 +01:00
|
|
|
extraNativeBuildInputs = [ cmake pkg-config ];
|
2020-03-15 06:48:14 +01:00
|
|
|
makefile = "Makefile";
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_LIBRETRO=ON"
|
|
|
|
"-DBUILD_DEMO_CARTS=OFF"
|
|
|
|
"-DBUILD_PRO=OFF"
|
|
|
|
"-DBUILD_PLAYER=OFF"
|
|
|
|
"-DBUILD_SDL=OFF"
|
|
|
|
"-DBUILD_SOKOL=OFF"
|
|
|
|
];
|
|
|
|
postBuild = "cd lib";
|
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 19:32:35 +02:00
|
|
|
};
|
|
|
|
|
2015-11-20 15:49:45 +01:00
|
|
|
vba-next = mkLibRetroCore rec {
|
|
|
|
core = "vba-next";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core;
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "019132daf41e33a9529036b8728891a221a8ce2e";
|
|
|
|
sha256 = "0hab4rhvvcg30jifd9h9jq5q2vqk2hz5i1q456w6v2d10hl1lf15";
|
2015-11-20 15:49:45 +01:00
|
|
|
};
|
|
|
|
description = "VBA-M libretro port with modifications for speed";
|
2018-03-02 01:11:16 +01:00
|
|
|
license = gpl2;
|
2015-11-20 15:49:45 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
vba-m = mkLibRetroCore rec {
|
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 05:11:54 +02:00
|
|
|
core = "vbam";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core + "-libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "7d88e045a2fe44e56b3f84846beec446b4c4b2d9";
|
|
|
|
sha256 = "04f8adg99a36qkqhij54vkw5z18m5ld33p78lbmv8cxk7k7g7yhy";
|
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 05:11:54 +02:00
|
|
|
};
|
|
|
|
description = "vanilla VBA-M libretro port";
|
2018-03-02 01:11:16 +01:00
|
|
|
license = gpl2;
|
2020-03-15 06:48:14 +01:00
|
|
|
makefile = "Makefile";
|
2020-03-22 03:54:01 +01:00
|
|
|
preBuild = "cd src/libretro";
|
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 05:11:54 +02:00
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
vecx = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "vecx";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = "libretro-" + core;
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "321205271b1c6be5dbdb8d309097a5b5c2032dbd";
|
|
|
|
sha256 = "1w54394yhf2yqmq1b8wi5y7lvixc5hpjxpyiancrdbjd0af7pdvd";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Port of Vecx to libretro";
|
|
|
|
license = gpl3;
|
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
virtualjaguar = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "virtualjaguar";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core + "-libretro";
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "a162fb75926f5509f187e9bfc69958bced40b0a6";
|
|
|
|
sha256 = "06k8xpn5y9rzmi2lwfw0v9v9pz4wvmpalycc608bw9cl39lmz10h";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Port of VirtualJaguar to libretro";
|
|
|
|
license = gpl3;
|
|
|
|
makefile = "Makefile";
|
|
|
|
};
|
|
|
|
|
2020-03-22 03:54:01 +01:00
|
|
|
yabause = mkLibRetroCore rec {
|
2019-11-02 12:16:10 +01:00
|
|
|
core = "yabause";
|
|
|
|
src = fetchRetro {
|
|
|
|
repo = core;
|
2020-03-15 06:48:14 +01:00
|
|
|
rev = "9be109f9032afa793d2a79b837c4cc232cea5929";
|
|
|
|
sha256 = "0aj862bs4dmnldy62wdssj5l63ibfkbzqvkxcqa3wyvdz4i367jc";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
description = "Port of Yabause to libretro";
|
|
|
|
license = gpl2;
|
2020-03-15 06:48:14 +01:00
|
|
|
makefile = "Makefile";
|
|
|
|
# Disable SSE for non-x86. DYNAREC doesn't build on either Aarch64 or x86_64.
|
2021-01-15 14:21:58 +01:00
|
|
|
makeFlags = lib.optional (!stdenv.hostPlatform.isx86) "HAVE_SSE=0";
|
2020-03-22 03:54:01 +01:00
|
|
|
preBuild = "cd yabause/src/libretro";
|
2019-11-02 12:16:10 +01:00
|
|
|
};
|
|
|
|
|
2014-10-28 10:08:43 +01:00
|
|
|
}
|