From ad01a42c44560581b9e52ed3bdf26a39d67c787b Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 31 Oct 2025 21:10:56 +0000 Subject: [PATCH] biblesync: fix `cmake-4` build Without the change the build fails as https://hydra.nixos.org/build/310527048: CMake Error at CMakeLists.txt:11 (CMAKE_MINIMUM_REQUIRED): Compatibility with CMake < 3.5 has been removed from CMake. THe change pulls upstream fix as is. --- pkgs/by-name/bi/biblesync/package.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/by-name/bi/biblesync/package.nix b/pkgs/by-name/bi/biblesync/package.nix index 486244f71329..58201c9ea269 100644 --- a/pkgs/by-name/bi/biblesync/package.nix +++ b/pkgs/by-name/bi/biblesync/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, pkg-config, cmake, libuuid, @@ -19,6 +20,15 @@ stdenv.mkDerivation rec { sha256 = "0prmd12jq2cjdhsph5v89y38j7hhd51dr3r1hivgkhczr3m5hf4s"; }; + patches = [ + # Fix cmake-4 support + (fetchpatch { + name = "cmake-4.patch"; + url = "https://github.com/karlkleinpaste/biblesync/commit/4b00f9fd3d0c858947eee18206ef44f9f6bd2283.patch?full_index=1"; + hash = "sha256-CVYhYBDneLN3Ogvye01EQCc9zxjSwaKBzk1fBaKINug="; + }) + ]; + nativeBuildInputs = [ pkg-config cmake