cpp-redis: fix build with cmake 4 (#453353)

This commit is contained in:
Yohann Boniface
2025-10-23 21:28:09 +00:00
committed by GitHub
+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";