retroarch: 1.6.0 -> 1.7.1
This commit is contained in:
parent
87acdcabd1
commit
e604a3175d
@ -1,61 +1,50 @@
|
|||||||
{ stdenv, fetchFromGitHub, makeDesktopItem, coreutils, which, pkgconfig
|
{ stdenv, fetchFromGitHub, which, pkgconfig, makeWrapper
|
||||||
, ffmpeg, mesa, freetype, libxml2, python34
|
, ffmpeg, mesa, freetype, libxml2, python34
|
||||||
|
, alsaLib ? null
|
||||||
|
, libpulseaudio ? null
|
||||||
|
, libv4l ? null
|
||||||
|
, libX11 ? null
|
||||||
|
, libXdmcp ? null
|
||||||
|
, libXext ? null
|
||||||
|
, libXxf86vm ? null
|
||||||
|
, SDL2 ? null
|
||||||
|
, udev ? null
|
||||||
, enableNvidiaCgToolkit ? false, nvidia_cg_toolkit ? null
|
, enableNvidiaCgToolkit ? false, nvidia_cg_toolkit ? null
|
||||||
, alsaLib ? null, libv4l ? null
|
, withVulkan ? stdenv.isLinux, vulkan-loader ? null
|
||||||
, udev ? null, libX11 ? null, libXext ? null, libXxf86vm ? null
|
|
||||||
, libXdmcp ? null, SDL ? null, libpulseaudio ? null
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "retroarch-bare-${version}";
|
name = "retroarch-bare-${version}";
|
||||||
version = "1.6.0";
|
version = "1.7.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "libretro";
|
owner = "libretro";
|
||||||
repo = "RetroArch";
|
repo = "RetroArch";
|
||||||
sha256 = "1ym2kws58fbavkc3giz5xqaqiqqdbf7wrz7y7iw53p1bnkc3l8yi";
|
sha256 = "0qv8ci76f5kwv5b49ijgpc6jdfp6sm21fw5hq06mq6ygyiy9vdzf";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ]
|
||||||
buildInputs = [ ffmpeg mesa freetype libxml2 coreutils python34 which SDL ]
|
++ optional withVulkan [ makeWrapper ];
|
||||||
|
|
||||||
|
buildInputs = [ ffmpeg freetype libxml2 mesa python34 SDL2 which ]
|
||||||
++ optional enableNvidiaCgToolkit nvidia_cg_toolkit
|
++ optional enableNvidiaCgToolkit nvidia_cg_toolkit
|
||||||
++ optionals stdenv.isLinux [ udev alsaLib libX11 libXext libXxf86vm libXdmcp libv4l libpulseaudio ];
|
++ optional withVulkan [ vulkan-loader ]
|
||||||
|
++ optionals stdenv.isLinux [ alsaLib libpulseaudio libv4l libX11
|
||||||
configureScript = "sh configure";
|
libXdmcp libXext libXxf86vm udev ];
|
||||||
|
|
||||||
patchPhase = ''
|
|
||||||
export GLOBAL_CONFIG_DIR=$out/etc
|
|
||||||
sed -e 's#/bin/true#${coreutils}/bin/true#' -i qb/qb.libs.sh
|
|
||||||
'';
|
|
||||||
|
|
||||||
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
|
|
||||||
'';
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
postInstall = optional withVulkan ''
|
||||||
|
wrapProgram $out/bin/retroarch --prefix LD_LIBRARY_PATH ':' ${vulkan-loader}/lib
|
||||||
|
'';
|
||||||
|
|
||||||
|
preFixup = "rm $out/bin/retroarch-cg2glsl";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://libretro.org/;
|
homepage = https://libretro.com;
|
||||||
description = "Multi-platform emulator frontend for libretro cores";
|
description = "Multi-platform emulator frontend for libretro cores";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user