From 2ac4a30bba1d802351417edb9d1e4e9a64285a57 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Fri, 16 May 2025 14:56:20 +0200 Subject: [PATCH] lanelet2-core: Fix compilation with Boost 1.87 --- distros/ros2-overlay.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/distros/ros2-overlay.nix b/distros/ros2-overlay.nix index c585883dc3..519b64bbb4 100644 --- a/distros/ros2-overlay.nix +++ b/distros/ros2-overlay.nix @@ -159,6 +159,19 @@ rosSelf: rosSuper: with rosSelf.lib; { cmakeFlags = cmakeFlags ++ [ "-DDOWNLOAD_TOML_LIB=OFF" ]; }); + lanelet2-core = rosSuper.lanelet2-core.overrideAttrs ({ + patches ? [], ... + }: { + patches = patches ++ [ + # Fix compilation with Boost 1.87 + (self.fetchpatch { + url = "https://github.com/fzi-forschungszentrum-informatik/Lanelet2/pull/399/commits/cf65e2d05f30a088731128e445df6f3ea523885d.patch"; + hash = "sha256-aPO7mkS6DlSQIgcb6kJAZrwMWCkvWESM54feKtpeWO8="; + stripLen = 1; + }) + ]; + }); + libcamera = rosSuper.libcamera.overrideAttrs ({ postPatch ? "", nativeBuildInputs ? [], ...