2016-05-27 02:24:26 +02:00
|
|
|
{ stdenv, fetchFromGitHub, makeDesktopItem, coreutils, which, pkgconfig
|
|
|
|
, ffmpeg, mesa, freetype, libxml2, python34
|
|
|
|
, enableNvidiaCgToolkit ? false, nvidia_cg_toolkit ? null
|
|
|
|
, alsaLib ? null, libv4l ? null
|
|
|
|
, udev ? null, libX11 ? null, libXext ? null, libXxf86vm ? null
|
|
|
|
, libXdmcp ? null, SDL ? null, libpulseaudio ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2013-06-26 13:25:09 +02:00
|
|
|
|
2016-03-14 00:56:12 +01:00
|
|
|
let
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "retroarch";
|
|
|
|
exec = "retroarch";
|
|
|
|
icon = "retroarch";
|
|
|
|
comment = "Multi-Engine Platform";
|
|
|
|
desktopName = "RetroArch";
|
2016-05-27 02:24:26 +02:00
|
|
|
genericName = "Libretro Frontend";
|
2016-03-14 00:56:12 +01:00
|
|
|
categories = "Game;Emulator;";
|
|
|
|
#keywords = "multi;engine;emulator;xmb;";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
|
2013-06-26 13:25:09 +02:00
|
|
|
stdenv.mkDerivation 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
|
|
|
name = "retroarch-bare-${version}";
|
2017-06-04 03:20:30 +02:00
|
|
|
version = "1.6.0";
|
2013-06-26 13:25:09 +02:00
|
|
|
|
2016-05-27 02:24:26 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libretro";
|
|
|
|
repo = "RetroArch";
|
2017-06-04 03:20:30 +02:00
|
|
|
sha256 = "1ym2kws58fbavkc3giz5xqaqiqqdbf7wrz7y7iw53p1bnkc3l8yi";
|
2016-05-27 02:24:26 +02:00
|
|
|
rev = "v${version}";
|
2013-06-26 13:25:09 +02:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ ffmpeg mesa freetype libxml2 coreutils python34 which SDL ]
|
2016-05-27 02:24:26 +02:00
|
|
|
++ optional enableNvidiaCgToolkit nvidia_cg_toolkit
|
|
|
|
++ optionals stdenv.isLinux [ udev alsaLib libX11 libXext libXxf86vm libXdmcp libv4l libpulseaudio ];
|
|
|
|
|
|
|
|
configureScript = "sh configure";
|
2013-06-26 13:25:09 +02:00
|
|
|
|
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
|
|
|
patchPhase = ''
|
|
|
|
export GLOBAL_CONFIG_DIR=$out/etc
|
|
|
|
sed -e 's#/bin/true#${coreutils}/bin/true#' -i qb/qb.libs.sh
|
2013-06-26 13:25:09 +02: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
|
|
|
|
2016-03-14 00:56:12 +01:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/icons/hicolor/scalable/apps
|
|
|
|
cp -p -T ./media/retroarch.svg $out/share/icons/hicolor/scalable/apps/retroarch.svg
|
|
|
|
|
|
|
|
mkdir -p "$out/share/applications"
|
|
|
|
cp ${desktopItem}/share/applications/* $out/share/applications
|
|
|
|
'';
|
|
|
|
|
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
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-05-27 02:24:26 +02:00
|
|
|
meta = {
|
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
|
|
|
homepage = http://libretro.org/;
|
|
|
|
description = "Multi-platform emulator frontend for libretro cores";
|
|
|
|
license = licenses.gpl3;
|
2016-05-27 02:24:26 +02:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ MP2E edwtjo matthewbauer ];
|
2013-06-26 13:25:09 +02:00
|
|
|
};
|
|
|
|
}
|