2021-11-16 23:37:52 +00:00
|
|
|
{ stdenv, lib, makeWrapper, 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 18:32:35 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2019-11-24 17:22:28 +00:00
|
|
|
pname = "retroarch";
|
|
|
|
version = lib.getVersion retroarch;
|
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
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
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
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out/lib
|
2021-11-16 23:37:52 +00:00
|
|
|
for coreDir in $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 18:32:35 +01:00
|
|
|
do
|
2021-11-16 23:37:52 +00:00
|
|
|
ln -s $coreDir/* $out/lib/.
|
|
|
|
done
|
2016-03-13 23:56:12 +00:00
|
|
|
|
|
|
|
ln -s -t $out ${retroarch}/share
|
|
|
|
|
2018-05-11 02:07:11 +01:00
|
|
|
if [ -d ${retroarch}/Applications ]; then
|
|
|
|
ln -s -t $out ${retroarch}/Applications
|
|
|
|
fi
|
|
|
|
|
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
|
|
|
makeWrapper ${retroarch}/bin/retroarch $out/bin/retroarch \
|
|
|
|
--suffix-each LD_LIBRARY_PATH ':' "$cores" \
|
2018-12-13 10:20:31 +00:00
|
|
|
--add-flags "-L $out/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 18:32:35 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
cores = map (x: x + x.libretroCore) cores;
|
|
|
|
preferLocalBuild = true;
|
|
|
|
|
|
|
|
meta = with retroarch.meta; {
|
2022-02-19 16:53:20 +00:00
|
|
|
inherit changelog description homepage license maintainers platforms;
|
|
|
|
longDescription =
|
|
|
|
"RetroArch is the reference frontend for the libretro API. The following cores are included: "
|
2022-01-22 14:01:48 +00:00
|
|
|
+ lib.concatStringsSep ", " (map (x: "${x.name}") cores)
|
2022-02-19 16:53:20 +00: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 18:32:35 +01:00
|
|
|
};
|
|
|
|
}
|