uri: 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 16:17:33 -07:00
parent 2d01512fa6
commit 8c20972bbd
+8
View File
@@ -41,6 +41,14 @@ stdenv.mkDerivation rec {
"-DBUILD_SHARED_LIBS=ON"
];
# 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)"
'';
postBuild = "make doc";
postInstall = ''