From 5265b295f489a47a8d4110e2704b13071025b012 Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Mon, 13 Oct 2025 05:39:47 +0200 Subject: [PATCH] qcomicbook: fix build issue with CMake 4 Co-authored-by: dotlambda # This is a combination of 2 commits. --- pkgs/by-name/qc/qcomicbook/package.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/by-name/qc/qcomicbook/package.nix b/pkgs/by-name/qc/qcomicbook/package.nix index 80be53583a9c..946905c34f0b 100644 --- a/pkgs/by-name/qc/qcomicbook/package.nix +++ b/pkgs/by-name/qc/qcomicbook/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, cmake, pkg-config, libsForQt5, @@ -18,6 +19,15 @@ stdenv.mkDerivation rec { sha256 = "1b769lp6gfwds4jb2g7ymhdm9c06zg57zpyz3zpdb40w07zfsjzv"; }; + patches = [ + # https://github.com/stolowski/QComicBook/pull/45 + (fetchpatch { + name = "cmake-4-compatibility.patch"; + url = "https://github.com/stolowski/QComicBook/commit/424a188f63171842ce8fad86fa85c4e03e405618.patch?full_index=1"; + hash = "sha256-q0X2i21JgtBfRfyMGpuUyB9GtIiWiFo6IWME6EBMSwk="; + }) + ]; + nativeBuildInputs = [ cmake pkg-config