From 079c31833c17e703909bc0f836db0d80c34ba32c Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Wed, 29 May 2024 15:11:52 +0200 Subject: [PATCH] punes-qt6: Fetch patch to fix Qt 6.7.1 compat --- pkgs/applications/emulators/punes/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/applications/emulators/punes/default.nix b/pkgs/applications/emulators/punes/default.nix index ba5f1205a58b..a7b435c3a0ae 100644 --- a/pkgs/applications/emulators/punes/default.nix +++ b/pkgs/applications/emulators/punes/default.nix @@ -1,6 +1,7 @@ { stdenv , lib , fetchFromGitHub +, fetchpatch , gitUpdater , cmake , pkg-config @@ -27,6 +28,16 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-TIXjYkInWV3yVnvXrdHcmeWYeps5TcvkG2Xjg4roIds="; }; + patches = [ + # Fix FTBFS with Qt 6.7.1 + # Remove when https://github.com/punesemu/puNES/pull/403 merged & in release + (fetchpatch { + name = "0001-punes-Fix-compatibility-with-Qt-6.7.1.patch"; + url = "https://github.com/punesemu/puNES/commit/78c72d2dfcd570e7463a78da10904cebae6127f5.patch"; + hash = "sha256-xRalKIOb1qWgqJsFLcm7uUOblEfHDYbkukmcr4/+4Qc="; + }) + ]; + nativeBuildInputs = [ cmake pkg-config