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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user