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 17:32:35 +00:00
|
|
|
{ stdenv, lib, makeWrapper, retroarch, cores }:
|
|
|
|
|
|
|
|
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 17:32:35 +00:00
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out/lib
|
|
|
|
$(for coreDir in $cores
|
|
|
|
do
|
2018-05-21 22:11:44 +00:00
|
|
|
$(ln -s $coreDir/* $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 17:32:35 +00:00
|
|
|
done)
|
2016-03-13 23:56:12 +00:00
|
|
|
|
|
|
|
ln -s -t $out ${retroarch}/share
|
|
|
|
|
2018-05-11 01:07:11 +00: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 17:32:35 +00: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 17:32:35 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
cores = map (x: x + x.libretroCore) cores;
|
|
|
|
preferLocalBuild = true;
|
|
|
|
|
|
|
|
meta = with retroarch.meta; {
|
2016-08-02 16:38:28 +00:00
|
|
|
inherit license homepage platforms maintainers;
|
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 17:32:35 +00:00
|
|
|
description = description
|
|
|
|
+ " (with cores: "
|
|
|
|
+ lib.concatStrings (lib.intersperse ", " (map (x: ""+x.name) cores))
|
|
|
|
+ ")";
|
|
|
|
};
|
|
|
|
}
|