944635bbad
Diff: https://github.com/introlab/rtabmap/compare/0.23.2...0.23.8 Changelog: https://github.com/introlab/rtabmap/releases/tag/0.23.8
119 lines
2.2 KiB
Nix
119 lines
2.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
|
|
# nativeBuildInputs
|
|
cmake,
|
|
qt6,
|
|
pkg-config,
|
|
wrapGAppsHook3,
|
|
|
|
# buildInputs
|
|
opencv,
|
|
pcl,
|
|
liblapack,
|
|
libxt,
|
|
libsm,
|
|
libice,
|
|
libusb1,
|
|
yaml-cpp,
|
|
libnabo,
|
|
libpointmatcher,
|
|
eigen,
|
|
g2o,
|
|
ceres-solver,
|
|
octomap,
|
|
freenect,
|
|
libdc1394,
|
|
libGL,
|
|
libGLU,
|
|
librealsense,
|
|
vtkWithQt6,
|
|
zed-open-capture,
|
|
hidapi,
|
|
|
|
# passthru
|
|
gitUpdater,
|
|
}:
|
|
let
|
|
pcl' = pcl.override { vtk = vtkWithQt6; };
|
|
in
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "rtabmap";
|
|
version = "0.23.8";
|
|
|
|
__structuredAttrs = true;
|
|
strictDeps = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "introlab";
|
|
repo = "rtabmap";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-bVy/C6ZQdY7LmMW3vxxM5PCEtY/hBqrNsIdGcEulagU=";
|
|
};
|
|
|
|
# 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
|
|
pkg-config
|
|
wrapGAppsHook3
|
|
];
|
|
buildInputs = [
|
|
## Required
|
|
opencv
|
|
opencv.cxxdev
|
|
pcl'
|
|
liblapack
|
|
libsm
|
|
libice
|
|
libxt
|
|
|
|
## Optional
|
|
libusb1
|
|
eigen
|
|
g2o
|
|
ceres-solver
|
|
yaml-cpp
|
|
libnabo
|
|
libpointmatcher
|
|
octomap
|
|
freenect
|
|
libdc1394
|
|
librealsense
|
|
qt6.qtbase
|
|
libGL
|
|
libGLU
|
|
zed-open-capture
|
|
hidapi
|
|
];
|
|
|
|
# Configure environment variables
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-c++20-extensions";
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeFeature "CMAKE_INCLUDE_PATH" "${pcl'}/include/pcl-${lib.versions.majorMinor pcl'.version}")
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = gitUpdater { };
|
|
};
|
|
|
|
meta = {
|
|
description = "Real-Time Appearance-Based 3D Mapping";
|
|
homepage = "https://introlab.github.io/rtabmap/";
|
|
changelog = "https://github.com/introlab/rtabmap/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ marius851000 ];
|
|
platforms = with lib.platforms; linux;
|
|
};
|
|
})
|