Merge pull request #36237 from DarkScythe97/retroarch

retroarch: 1.6.0 -> 1.7.1

authored by Daiderd Jordan and committed by GitHub 95eb92a2 691307e4

+31 -37
+27 -36
pkgs/misc/emulators/retroarch/default.nix
··· 1 - { stdenv, fetchFromGitHub, makeDesktopItem, coreutils, which, pkgconfig 1 + { stdenv, fetchFromGitHub, which, pkgconfig, makeWrapper 2 2 , ffmpeg, mesa, freetype, libxml2, python34 3 + , libobjc, AppKit, Foundation 4 + , alsaLib ? null 5 + , libpulseaudio ? null 6 + , libv4l ? null 7 + , libX11 ? null 8 + , libXdmcp ? null 9 + , libXext ? null 10 + , libXxf86vm ? null 11 + , SDL2 ? null 12 + , udev ? null 3 13 , enableNvidiaCgToolkit ? false, nvidia_cg_toolkit ? null 4 - , alsaLib ? null, libv4l ? null 5 - , udev ? null, libX11 ? null, libXext ? null, libXxf86vm ? null 6 - , libXdmcp ? null, SDL ? null, libpulseaudio ? null 14 + , withVulkan ? stdenv.isLinux, vulkan-loader ? null 7 15 }: 8 16 9 17 with stdenv.lib; 10 18 11 - let 12 - desktopItem = makeDesktopItem { 13 - name = "retroarch"; 14 - exec = "retroarch"; 15 - icon = "retroarch"; 16 - comment = "Multi-Engine Platform"; 17 - desktopName = "RetroArch"; 18 - genericName = "Libretro Frontend"; 19 - categories = "Game;Emulator;"; 20 - #keywords = "multi;engine;emulator;xmb;"; 21 - }; 22 - in 23 - 24 19 stdenv.mkDerivation rec { 25 20 name = "retroarch-bare-${version}"; 26 - version = "1.6.0"; 21 + version = "1.7.1"; 27 22 28 23 src = fetchFromGitHub { 29 24 owner = "libretro"; 30 25 repo = "RetroArch"; 31 - sha256 = "1ym2kws58fbavkc3giz5xqaqiqqdbf7wrz7y7iw53p1bnkc3l8yi"; 26 + sha256 = "0qv8ci76f5kwv5b49ijgpc6jdfp6sm21fw5hq06mq6ygyiy9vdzf"; 32 27 rev = "v${version}"; 33 28 }; 34 29 35 - nativeBuildInputs = [ pkgconfig ]; 36 - buildInputs = [ ffmpeg mesa freetype libxml2 coreutils python34 which SDL ] 30 + nativeBuildInputs = [ pkgconfig ] 31 + ++ optional withVulkan [ makeWrapper ]; 32 + 33 + buildInputs = [ ffmpeg freetype libxml2 mesa python34 SDL2 which ] 37 34 ++ optional enableNvidiaCgToolkit nvidia_cg_toolkit 38 - ++ optionals stdenv.isLinux [ udev alsaLib libX11 libXext libXxf86vm libXdmcp libv4l libpulseaudio ]; 35 + ++ optional withVulkan [ vulkan-loader ] 36 + ++ optionals stdenv.isDarwin [ libobjc AppKit Foundation ] 37 + ++ optionals stdenv.isLinux [ alsaLib libpulseaudio libv4l libX11 38 + libXdmcp libXext libXxf86vm udev ]; 39 39 40 - configureScript = "sh configure"; 40 + enableParallelBuilding = true; 41 41 42 - patchPhase = '' 43 - export GLOBAL_CONFIG_DIR=$out/etc 44 - sed -e 's#/bin/true#${coreutils}/bin/true#' -i qb/qb.libs.sh 42 + postInstall = optional withVulkan '' 43 + wrapProgram $out/bin/retroarch --prefix LD_LIBRARY_PATH ':' ${vulkan-loader}/lib 45 44 ''; 46 45 47 - postInstall = '' 48 - mkdir -p $out/share/icons/hicolor/scalable/apps 49 - cp -p -T ./media/retroarch.svg $out/share/icons/hicolor/scalable/apps/retroarch.svg 50 - 51 - mkdir -p "$out/share/applications" 52 - cp ${desktopItem}/share/applications/* $out/share/applications 53 - ''; 54 - 55 - enableParallelBuilding = true; 46 + preFixup = "rm $out/bin/retroarch-cg2glsl"; 56 47 57 48 meta = { 58 - homepage = http://libretro.org/; 49 + homepage = https://libretro.com; 59 50 description = "Multi-platform emulator frontend for libretro cores"; 60 51 license = licenses.gpl3; 61 52 platforms = platforms.all;
+4 -1
pkgs/top-level/all-packages.nix
··· 20367 20367 20368 20368 redprl = callPackage ../applications/science/logic/redprl { }; 20369 20369 20370 - retroarchBare = callPackage ../misc/emulators/retroarch { }; 20370 + retroarchBare = callPackage ../misc/emulators/retroarch { 20371 + inherit (darwin) libobjc; 20372 + inherit (darwin.apple_sdk.frameworks) AppKit Foundation; 20373 + }; 20371 20374 20372 20375 retroarch = wrapRetroArch { retroarch = retroarchBare; }; 20373 20376