Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
107 lines
1.8 KiB
Nix
107 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
|
|
# nativeBuildInputs
|
|
cmake,
|
|
qt6,
|
|
pkg-config,
|
|
wrapGAppsHook3,
|
|
|
|
# buildInputs
|
|
opencv,
|
|
pcl,
|
|
liblapack,
|
|
xorg,
|
|
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.22.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "introlab";
|
|
repo = "rtabmap";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-6kDjIfUgyaqrsVAWO6k0h1qIDN/idMOJJxLpqMQ6DFY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
qt6.wrapQtAppsHook
|
|
pkg-config
|
|
wrapGAppsHook3
|
|
];
|
|
buildInputs = [
|
|
## Required
|
|
opencv
|
|
opencv.cxxdev
|
|
pcl'
|
|
liblapack
|
|
xorg.libSM
|
|
xorg.libICE
|
|
xorg.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
|
|
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.version}";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ marius851000 ];
|
|
platforms = with lib.platforms; linux;
|
|
};
|
|
})
|