From ae22b089e5822c6d6c9c385148cea2be76e85f22 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Wed, 31 Dec 2025 14:26:45 +0100 Subject: [PATCH] cassandra-cpp-driver: fix build with cmake4 Apply patch from https://github.com/apache/cassandra-cpp-driver/pull/580 --- .../libraries/cassandra-cpp-driver/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/libraries/cassandra-cpp-driver/default.nix b/pkgs/development/libraries/cassandra-cpp-driver/default.nix index 59b52ecfa25c..66e868fe9692 100644 --- a/pkgs/development/libraries/cassandra-cpp-driver/default.nix +++ b/pkgs/development/libraries/cassandra-cpp-driver/default.nix @@ -1,5 +1,6 @@ { fetchFromGitHub, + fetchpatch, lib, stdenv, cmake, @@ -20,6 +21,15 @@ stdenv.mkDerivation rec { sha256 = "sha256-GuvmKHJknudyn7ahrn/8+kKUA4NW5UjCfkYoX3aTE+Q="; }; + patches = [ + # https://github.com/apache/cassandra-cpp-driver/pull/580 + (fetchpatch { + name = "fix-cmake-version.patch"; + url = "https://github.com/apache/cassandra-cpp-driver/commit/a4061051bcdfa0a67117b546897552c38493d545.patch?full_index=1"; + hash = "sha256-hQhm2SYLd8uPC85/iOH3sEM2KvoIGwV+9NGIJFnZJhc="; + }) + ]; + nativeBuildInputs = [ cmake pkg-config