cpp-netlib: fix build failure with cmake 4 (#453360)

This commit is contained in:
Yohann Boniface
2025-10-20 00:51:21 +00:00
committed by GitHub
+8
View File
@@ -28,6 +28,14 @@ stdenvForCppNetlib.mkDerivation rec {
./0001-Compatibility-with-boost-1.83.patch
];
# CMake 2.8 is deprecated and is no longer supported by CMake > 4
# https://github.com/NixOS/nixpkgs/issues/445447
postPatch = ''
substituteInPlace CMakeLists.txt --replace-fail \
"cmake_minimum_required(VERSION 2.8)" \
"cmake_minimum_required(VERSION 3.10)"
'';
nativeBuildInputs = [ cmake ];
buildInputs = [
# io_service.hpp has been removed in boost 1.87+