From 19f2603c1c1780abf02af433adaa146bae2a3fdd Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sun, 16 Apr 2023 22:18:58 +0800 Subject: [PATCH] mediaelch: add patch to fix build with qt 6.5 Reference: https://github.com/Komet/MediaElch/issues/1557 --- pkgs/applications/misc/mediaelch/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/applications/misc/mediaelch/default.nix b/pkgs/applications/misc/mediaelch/default.nix index 533e05264bc..1024ba8d9a0 100644 --- a/pkgs/applications/misc/mediaelch/default.nix +++ b/pkgs/applications/misc/mediaelch/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch , cmake , qttools @@ -33,6 +34,15 @@ stdenv.mkDerivation rec { fetchSubmodules = true; }; + patches = [ + # https://github.com/Komet/MediaElch/issues/1557 + # build: Fix build issue with Qt 6.5 on macOS (also other platforms) + (fetchpatch { + url = "https://github.com/Komet/MediaElch/commit/872b21decf95d70073400bedbe1ad183a8267791.patch"; + hash = "sha256-D1Ui5xg5cpvNX4IHfXQ7wN9I7Y3SuPFOWxWidcAlLEA="; + }) + ]; + nativeBuildInputs = [ cmake qttools