From d166e477c8cda378ea04ee68dea0cdd4f4889a2a Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Sat, 8 Mar 2025 12:49:50 +0100 Subject: [PATCH] noetic: Make laser-geometry compile against new Boost --- distros/noetic/overrides.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/distros/noetic/overrides.nix b/distros/noetic/overrides.nix index 9b60b36701..7ab17e4823 100644 --- a/distros/noetic/overrides.nix +++ b/distros/noetic/overrides.nix @@ -52,6 +52,16 @@ in { nativeBuildInputs = nativeBuildInputs ++ [ self.pkg-config ]; }); + laser-geometry = rosSuper.laser-geometry.overrideAttrs ({ + postPatch ? "", ... + }: { + # Boost.Math 1.87 requires C++14 + postPatch = postPatch + '' + substituteInPlace CMakeLists.txt \ + --replace-fail 'set(CMAKE_CXX_STANDARD 11)' 'set(CMAKE_CXX_STANDARD 14)' + ''; + }); + libfranka = rosSuper.libfranka.overrideAttrs ({ cmakeFlags ? [], ... }: {