2016-03-14 00:56:12 +01:00
|
|
|
{ stdenv, fetchgit, makeDesktopItem, pkgconfig, ffmpeg, mesa, nvidia_cg_toolkit
|
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
|
|
|
, freetype, libxml2, libv4l, coreutils, python34, which, udev, alsaLib
|
2015-05-27 21:42:15 +02:00
|
|
|
, libX11, libXext, libXxf86vm, libXdmcp, SDL, libpulseaudio ? null }:
|
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";
|
|
|
|
genericName = "Libretro Frontend";
|
|
|
|
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}";
|
2015-11-20 15:49:45 +01:00
|
|
|
version = "2015-11-20";
|
2013-06-26 13:25:09 +02:00
|
|
|
|
2013-12-15 16:47:25 +01:00
|
|
|
src = fetchgit {
|
2015-11-20 15:49:45 +01:00
|
|
|
url = https://github.com/libretro/RetroArch.git;
|
|
|
|
rev = "09dda14549fc13231311fd522a07a75e923889aa";
|
|
|
|
sha256 = "1f7w4i0idc4n0sqc5pcrsxsljk3f614sfdqhdgjb1l4xj16g37cg";
|
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
|
|
|
buildInputs = [ pkgconfig ffmpeg mesa nvidia_cg_toolkit freetype libxml2 libv4l coreutils
|
2015-05-27 21:42:15 +02:00
|
|
|
python34 which udev alsaLib libX11 libXext libXxf86vm libXdmcp SDL libpulseaudio ];
|
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;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://libretro.org/;
|
|
|
|
description = "Multi-platform emulator frontend for libretro cores";
|
|
|
|
license = licenses.gpl3;
|
2014-11-19 12:03:00 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2015-11-20 15:49:45 +01:00
|
|
|
maintainers = with maintainers; [ MP2E edwtjo ];
|
2013-06-26 13:25:09 +02:00
|
|
|
};
|
|
|
|
}
|