nixpkgs/pkgs/applications/video/rtabmap/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

76 lines
1.3 KiB
Nix
Raw Permalink Normal View History

{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, pkg-config
, cmake
, opencv
, pcl
, libusb1
, eigen
, wrapQtAppsHook
, qtbase
, g2o
, ceres-solver
, libpointmatcher
, octomap
, freenect
, libdc1394
, librealsense
, libGL
, libGLU
, vtkWithQt5
, wrapGAppsHook3
, liblapack
, xorg
}:
2022-02-09 12:03:43 +01:00
stdenv.mkDerivation rec {
pname = "rtabmap";
2024-03-10 09:20:09 +01:00
version = "0.21.4";
2022-02-09 12:03:43 +01:00
src = fetchFromGitHub {
owner = "introlab";
repo = "rtabmap";
rev = "refs/tags/${version}";
2024-03-10 09:20:09 +01:00
hash = "sha256-HrIATYRuhFfTlO4oTRZo7CM30LFVyatZJON31Fe4HTQ=";
2022-02-09 12:03:43 +01:00
};
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook wrapGAppsHook3 ];
2022-02-09 12:03:43 +01:00
buildInputs = [
## Required
opencv
opencv.cxxdev
2022-02-09 12:03:43 +01:00
pcl
liblapack
xorg.libSM
xorg.libICE
xorg.libXt
2022-02-09 12:03:43 +01:00
## Optional
libusb1
eigen
g2o
ceres-solver
# libpointmatcher - ABI mismatch
octomap
freenect
libdc1394
# librealsense - missing includedir
qtbase
libGL
libGLU
vtkWithQt5
2022-02-09 12:03:43 +01:00
];
# Disable warnings that are irrelevant to us as packagers
cmakeFlags = [ "-Wno-dev" ];
2022-02-09 12:03:43 +01:00
meta = with lib; {
description = "Real-Time Appearance-Based 3D Mapping";
homepage = "https://introlab.github.io/rtabmap/";
license = licenses.bsd3;
maintainers = with maintainers; [ ckie ];
platforms = with platforms; linux;
};
}