retroarch: 2015-11-20 -> 1.3.4

also: remove nvidia-cg-toolkit as input for retroarch.
see #15707

darwin is also building but you have to trick it into
thinking it's a desktop app for the GUI to load

platforms is set to "platforms.all".
This commit is contained in:
Matthew Bauer 2016-05-26 19:24:26 -05:00
parent c3d5a0a7df
commit e37bb985a3
1 changed files with 24 additions and 15 deletions

View File

@ -1,6 +1,12 @@
{ stdenv, fetchgit, makeDesktopItem, pkgconfig, ffmpeg, mesa, nvidia_cg_toolkit { stdenv, fetchFromGitHub, makeDesktopItem, coreutils, which, pkgconfig
, freetype, libxml2, libv4l, coreutils, python34, which, udev, alsaLib , ffmpeg, mesa, freetype, libxml2, python34
, libX11, libXext, libXxf86vm, libXdmcp, SDL, libpulseaudio ? null }: , 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;
let let
desktopItem = makeDesktopItem { desktopItem = makeDesktopItem {
@ -9,25 +15,28 @@ let
icon = "retroarch"; icon = "retroarch";
comment = "Multi-Engine Platform"; comment = "Multi-Engine Platform";
desktopName = "RetroArch"; desktopName = "RetroArch";
genericName = "Libretro Frontend"; genericName = "Libretro Frontend";
categories = "Game;Emulator;"; categories = "Game;Emulator;";
#keywords = "multi;engine;emulator;xmb;"; #keywords = "multi;engine;emulator;xmb;";
}; };
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "retroarch-bare-${version}"; name = "retroarch-bare-${version}";
version = "2015-11-20"; version = "1.3.4";
src = fetchgit { src = fetchFromGitHub {
url = https://github.com/libretro/RetroArch.git; owner = "libretro";
rev = "09dda14549fc13231311fd522a07a75e923889aa"; repo = "RetroArch";
sha256 = "0yrisl61iaa70ahswzgb505bvm5cxq8ndnv2bw7gqrlm5qrh54qy"; sha256 = "0ccp17580w0884baxj5kcynlm03jgd7i62dprz1ajxbi2s7b3mi3";
rev = "v${version}";
}; };
buildInputs = [ pkgconfig ffmpeg mesa nvidia_cg_toolkit freetype libxml2 libv4l coreutils buildInputs = [ pkgconfig ffmpeg mesa freetype libxml2 coreutils python34 which SDL ]
python34 which udev alsaLib libX11 libXext libXxf86vm libXdmcp SDL libpulseaudio ]; ++ optional enableNvidiaCgToolkit nvidia_cg_toolkit
++ optionals stdenv.isLinux [ udev alsaLib libX11 libXext libXxf86vm libXdmcp libv4l libpulseaudio ];
configureScript = "sh configure";
patchPhase = '' patchPhase = ''
export GLOBAL_CONFIG_DIR=$out/etc export GLOBAL_CONFIG_DIR=$out/etc
@ -44,11 +53,11 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
meta = with stdenv.lib; { meta = {
homepage = http://libretro.org/; homepage = http://libretro.org/;
description = "Multi-platform emulator frontend for libretro cores"; description = "Multi-platform emulator frontend for libretro cores";
license = licenses.gpl3; license = licenses.gpl3;
platforms = stdenv.lib.platforms.linux; platforms = platforms.all;
maintainers = with maintainers; [ MP2E edwtjo ]; maintainers = with maintainers; [ MP2E edwtjo matthewbauer ];
}; };
} }