rtabmap: fix boost 1.89 compatibility

This commit is contained in:
Gaetan Lepage 2026-03-01 10:55:46 +00:00
parent 18e9d6ba19
commit 6efeb534b1

View file

@ -2,7 +2,6 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
# nativeBuildInputs
cmake,
@ -51,6 +50,14 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-u9wswlFkGpPgJaBwSddnpv49wBAmkKRwWFO5jQ9/twA=";
};
# Fix boost 1.89 compatibility
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail \
"find_package(Boost COMPONENTS thread filesystem system program_options date_time chrono timer serialization REQUIRED)" \
"find_package(Boost COMPONENTS thread filesystem program_options date_time chrono timer serialization REQUIRED)"
'';
nativeBuildInputs = [
cmake
qt6.wrapQtAppsHook