cpp-redis: fix build failure with cmake 4

- CMake 4 is no longer retro compatible with versions < 3.5
This commit is contained in:
Clément
2025-10-18 15:56:21 -07:00
parent 2d01512fa6
commit 9b7a288947
+8
View File
@@ -27,6 +27,14 @@ stdenv.mkDerivation rec {
./01-fix-sleep_for.patch
];
# CMake 2.8.7 is deprecated and is no longer supported by CMake > 4
# https://github.com/NixOS/nixpkgs/issues/445447
postPatch = ''
substituteInPlace CMakeLists.txt tacopie/CMakeLists.txt --replace-fail \
"cmake_minimum_required(VERSION 2.8.7)" \
"cmake_minimum_required(VERSION 3.10)"
'';
meta = with lib; {
description = "C++11 Lightweight Redis client: async, thread-safe, no dependency, pipelining, multi-platform";
homepage = "https://github.com/cpp-redis/cpp_redis";