luabind: fix build failure with cmake 4

- CMake 4 is no longer retro compatible with versions < 3.5
- Should fix `luabind`, `luabind_luajit` & `osrm-backend`
This commit is contained in:
Clément
2025-10-16 10:30:54 -07:00
parent 71bc8fd56a
commit 10dda58229

View File

@@ -28,6 +28,14 @@ stdenv.mkDerivation {
inherit lua;
};
# CMake 2.8.3 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.3)" \
"cmake_minimum_required(VERSION 3.10)"
'';
patches = [ ./0.9.1-discover-luajit.patch ];
meta = {