From 10dda58229fddb6ac849c95b70bb48148bb355b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Thu, 16 Oct 2025 10:30:54 -0700 Subject: [PATCH] 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` --- pkgs/development/libraries/luabind/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/libraries/luabind/default.nix b/pkgs/development/libraries/luabind/default.nix index eb002cf895a6..d79515d18ded 100644 --- a/pkgs/development/libraries/luabind/default.nix +++ b/pkgs/development/libraries/luabind/default.nix @@ -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 = {