From 4c1a14fe5c58ab4fe7e9b957a1ea2b4f670d2ece Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Sat, 20 Jan 2024 22:49:51 -0300 Subject: [PATCH] mgba: 0.10.2 -> 0.10.3 Including-but-disabling discord-rpc, because the upstream includes it however it doesn't work. --- pkgs/applications/emulators/mgba/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/emulators/mgba/default.nix b/pkgs/applications/emulators/mgba/default.nix index 47b2c17819a0..93ee78a70c8c 100644 --- a/pkgs/applications/emulators/mgba/default.nix +++ b/pkgs/applications/emulators/mgba/default.nix @@ -3,6 +3,7 @@ , cmake , fetchFromGitHub , ffmpeg +, discord-rpc , libedit , libelf , libepoxy @@ -13,6 +14,7 @@ , pkg-config , stdenv , wrapGAppsHook +, enableDiscordRpc ? false }: let @@ -25,13 +27,13 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "mgba"; - version = "0.10.2"; + version = "0.10.3"; src = fetchFromGitHub { owner = "mgba-emu"; repo = "mgba"; rev = finalAttrs.version; - hash = "sha256-+AwIYhnqp984Banwb7zmB5yzenExfLLU1oGJSxeTl/M="; + hash = "sha256-wSt3kyjRxKBnDOVY10jq4cpv7uIaBUIcsZr6aU7XnMA="; }; outputs = [ "out" "dev" "doc" "lib" "man" ]; @@ -56,6 +58,11 @@ stdenv.mkDerivation (finalAttrs: { qtbase qtmultimedia qttools + ] + ++ lib.optionals enableDiscordRpc [ discord-rpc ]; + + cmakeFlags = [ + (lib.cmakeBool "USE_DISCORD_RPC" enableDiscordRpc) ]; strictDeps = true; @@ -88,5 +95,6 @@ stdenv.mkDerivation (finalAttrs: { mainProgram = "mgba"; maintainers = with lib.maintainers; [ MP2E AndersonTorres ]; platforms = lib.platforms.linux; + broken = enableDiscordRpc; # Some obscure `ld` error }; })