2018-03-03 02:09:35 +00:00
|
|
|
{ stdenv, fetchFromGitHub, which, pkgconfig, makeWrapper
|
2016-05-27 01:24:26 +01:00
|
|
|
, ffmpeg, mesa, freetype, libxml2, python34
|
2018-03-03 23:09:44 +00:00
|
|
|
, libobjc, AppKit, Foundation
|
2018-03-03 02:09:35 +00:00
|
|
|
, alsaLib ? null
|
|
|
|
, libpulseaudio ? null
|
|
|
|
, libv4l ? null
|
|
|
|
, libX11 ? null
|
|
|
|
, libXdmcp ? null
|
|
|
|
, libXext ? null
|
|
|
|
, libXxf86vm ? null
|
|
|
|
, SDL2 ? null
|
|
|
|
, udev ? null
|
2016-05-27 01:24:26 +01:00
|
|
|
, enableNvidiaCgToolkit ? false, nvidia_cg_toolkit ? null
|
2018-03-03 02:09:35 +00:00
|
|
|
, withVulkan ? stdenv.isLinux, vulkan-loader ? null
|
2016-05-27 01:24:26 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2013-06-26 12:25:09 +01: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 04:11:54 +01:00
|
|
|
name = "retroarch-bare-${version}";
|
2018-03-03 02:09:35 +00:00
|
|
|
version = "1.7.1";
|
2013-06-26 12:25:09 +01:00
|
|
|
|
2016-05-27 01:24:26 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libretro";
|
|
|
|
repo = "RetroArch";
|
2018-03-03 02:09:35 +00:00
|
|
|
sha256 = "0qv8ci76f5kwv5b49ijgpc6jdfp6sm21fw5hq06mq6ygyiy9vdzf";
|
2016-05-27 01:24:26 +01:00
|
|
|
rev = "v${version}";
|
2013-06-26 12:25:09 +01:00
|
|
|
};
|
|
|
|
|
2018-03-03 02:09:35 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ]
|
|
|
|
++ optional withVulkan [ makeWrapper ];
|
2013-06-26 12:25:09 +01:00
|
|
|
|
2018-03-03 02:09:35 +00:00
|
|
|
buildInputs = [ ffmpeg freetype libxml2 mesa python34 SDL2 which ]
|
|
|
|
++ optional enableNvidiaCgToolkit nvidia_cg_toolkit
|
|
|
|
++ optional withVulkan [ vulkan-loader ]
|
2018-03-03 23:09:44 +00:00
|
|
|
++ optionals stdenv.isDarwin [ libobjc AppKit Foundation ]
|
2018-03-03 02:09:35 +00:00
|
|
|
++ optionals stdenv.isLinux [ alsaLib libpulseaudio libv4l libX11
|
|
|
|
libXdmcp libXext libXxf86vm udev ];
|
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
|
|
|
|
2018-03-03 02:09:35 +00:00
|
|
|
enableParallelBuilding = true;
|
2016-03-13 23:56:12 +00:00
|
|
|
|
2018-03-03 02:09:35 +00:00
|
|
|
postInstall = optional withVulkan ''
|
|
|
|
wrapProgram $out/bin/retroarch --prefix LD_LIBRARY_PATH ':' ${vulkan-loader}/lib
|
2016-03-13 23:56:12 +00:00
|
|
|
'';
|
|
|
|
|
2018-03-03 02:09:35 +00:00
|
|
|
preFixup = "rm $out/bin/retroarch-cg2glsl";
|
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 04:11:54 +01:00
|
|
|
|
2016-05-27 01:24:26 +01:00
|
|
|
meta = {
|
2018-03-03 02:09:35 +00:00
|
|
|
homepage = https://libretro.com;
|
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 04:11:54 +01:00
|
|
|
description = "Multi-platform emulator frontend for libretro cores";
|
|
|
|
license = licenses.gpl3;
|
2016-05-27 01:24:26 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ MP2E edwtjo matthewbauer ];
|
2013-06-26 12:25:09 +01:00
|
|
|
};
|
|
|
|
}
|