From 75e1954f63ee8d89051fc2ffe6bf2b2e40949ced Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Tue, 16 Nov 2021 20:37:52 -0300 Subject: [PATCH] retroarch: 1.9.13.2 -> 1.9.2 From retroarch 1.9.3 and above, it stops loading the cores. This probably can be fixed, but for now at least this brings the retroarch to a newer (working) version. --- pkgs/misc/emulators/retroarch/default.nix | 5 +++-- pkgs/misc/emulators/retroarch/wrapper.nix | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/misc/emulators/retroarch/default.nix b/pkgs/misc/emulators/retroarch/default.nix index 6752ec8720a6..ac1998901ef6 100644 --- a/pkgs/misc/emulators/retroarch/default.nix +++ b/pkgs/misc/emulators/retroarch/default.nix @@ -22,12 +22,13 @@ with lib; stdenv.mkDerivation rec { pname = "retroarch-bare"; - version = "1.9.13.2"; + # FIXME: retroarch >=1.9.3 doesn't load the cores + version = "1.9.2"; src = fetchFromGitHub { owner = "libretro"; repo = "RetroArch"; - sha256 = "sha256-fehHchn+o9QM2wIK6zYamnbFvQda32Gw0rJk8Orx00U="; + sha256 = "sha256-Dwv0hl+d99FbVMG4KnkjO1aYfAw0m4x+zvrbyb/wOX8="; rev = "v${version}"; }; diff --git a/pkgs/misc/emulators/retroarch/wrapper.nix b/pkgs/misc/emulators/retroarch/wrapper.nix index 4cc7ad404be0..b8fbd70ecc46 100644 --- a/pkgs/misc/emulators/retroarch/wrapper.nix +++ b/pkgs/misc/emulators/retroarch/wrapper.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, makeWrapper, retroarch, cores }: +{ stdenv, lib, makeWrapper, retroarch, cores ? [ ] }: stdenv.mkDerivation { pname = "retroarch"; @@ -8,10 +8,10 @@ stdenv.mkDerivation { buildCommand = '' mkdir -p $out/lib - $(for coreDir in $cores + for coreDir in $cores do - $(ln -s $coreDir/* $out/lib/.) - done) + ln -s $coreDir/* $out/lib/. + done ln -s -t $out ${retroarch}/share