diff --git a/pkgs/by-name/rt/rtabmap/package.nix b/pkgs/by-name/rt/rtabmap/package.nix index fadba4004586..37d9f03fa53f 100644 --- a/pkgs/by-name/rt/rtabmap/package.nix +++ b/pkgs/by-name/rt/rtabmap/package.nix @@ -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