Merge pull request #289867 from qubitnano/origin-cemu-imgui

cemu: 2.0-65 -> 2.0-66, pin imgui 1.90.1

authored by Mario Rodas and committed by GitHub ad46e10c 52fd6a49

+18 -13
+18 -13
pkgs/applications/emulators/cemu/default.nix
··· 1 { lib, stdenv, fetchFromGitHub 2 - , fetchpatch 3 , addOpenGLRunpath 4 , wrapGAppsHook 5 , cmake ··· 32 , nix-update-script 33 }: 34 35 - stdenv.mkDerivation rec { 36 pname = "cemu"; 37 - version = "2.0-65"; 38 39 src = fetchFromGitHub { 40 owner = "cemu-project"; 41 repo = "Cemu"; 42 rev = "v${version}"; 43 - hash = "sha256-jsDmxol3zZMmpo4whDeUXTzfO+QVK/h6lItXTyJyoak="; 44 }; 45 46 patches = [ ··· 48 # > The following imported targets are referenced, but are missing: 49 # > SPIRV-Tools-opt 50 ./cmakelists.patch 51 - 52 - # Remove on next release 53 - # https://github.com/cemu-project/Cemu/pull/1076 54 - (fetchpatch { 55 - url = "https://github.com/cemu-project/Cemu/commit/72aacbdcecc064ea7c3b158c433e4803496ac296.patch"; 56 - hash = "sha256-x+ZVqXgGRSv0VYwJAX35C1p7PnmCHS7iEO+4k8j0/ug="; 57 - }) 58 ]; 59 60 nativeBuildInputs = [ ··· 75 glm 76 gtk3 77 hidapi 78 - imgui 79 libpng 80 libusb1 81 libzip ··· 103 tag = last (splitString "-" version); 104 in '' 105 rm -rf dependencies/imgui 106 - ln -s ${imgui}/include/imgui dependencies/imgui 107 substituteInPlace src/Common/version.h --replace " (experimental)" "-${tag} (experimental)" 108 substituteInPlace dependencies/gamemode/lib/gamemode_client.h --replace "libgamemode.so.0" "${gamemode.lib}/lib/libgamemode.so.0" 109 '';
··· 1 { lib, stdenv, fetchFromGitHub 2 , addOpenGLRunpath 3 , wrapGAppsHook 4 , cmake ··· 31 , nix-update-script 32 }: 33 34 + let 35 + # cemu doesn't build with imgui 1.90.2 or newer: 36 + # error: 'struct ImGuiIO' has no member named 'ImeWindowHandle' 37 + imgui' = imgui.overrideAttrs rec { 38 + version = "1.90.1"; 39 + src = fetchFromGitHub { 40 + owner = "ocornut"; 41 + repo = "imgui"; 42 + rev = "v${version}"; 43 + sha256 = "sha256-gf47uLeNiXQic43buB5ZnMqiotlUfIyAsP+3H7yJuFg="; 44 + }; 45 + }; 46 + 47 + in stdenv.mkDerivation rec { 48 pname = "cemu"; 49 + version = "2.0-66"; 50 51 src = fetchFromGitHub { 52 owner = "cemu-project"; 53 repo = "Cemu"; 54 rev = "v${version}"; 55 + hash = "sha256-1s1H2rJuN9lRNanKXxKWMLBOFg5z3IwpJCZCmymAH9Y="; 56 }; 57 58 patches = [ ··· 60 # > The following imported targets are referenced, but are missing: 61 # > SPIRV-Tools-opt 62 ./cmakelists.patch 63 ]; 64 65 nativeBuildInputs = [ ··· 80 glm 81 gtk3 82 hidapi 83 + imgui' 84 libpng 85 libusb1 86 libzip ··· 108 tag = last (splitString "-" version); 109 in '' 110 rm -rf dependencies/imgui 111 + ln -s ${imgui'}/include/imgui dependencies/imgui 112 substituteInPlace src/Common/version.h --replace " (experimental)" "-${tag} (experimental)" 113 substituteInPlace dependencies/gamemode/lib/gamemode_client.h --replace "libgamemode.so.0" "${gamemode.lib}/lib/libgamemode.so.0" 114 '';