mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 21:33:07 +00:00
74 lines
1.3 KiB
Nix
74 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, cmake
|
|
, opencv
|
|
, pcl
|
|
, libusb1
|
|
, eigen
|
|
, wrapQtAppsHook
|
|
, qtbase
|
|
, g2o
|
|
, ceres-solver
|
|
, libpointmatcher
|
|
, octomap
|
|
, freenect
|
|
, libdc1394
|
|
, librealsense
|
|
, libGL
|
|
, libGLU
|
|
, vtkWithQt5
|
|
, wrapGAppsHook
|
|
, liblapack
|
|
, xorg
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rtabmap";
|
|
version = "0.21.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "introlab";
|
|
repo = "rtabmap";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-1xb8O3VrErldid2OgAUMG28mSUO7QBUsPuSz8p03tSI";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook wrapGAppsHook ];
|
|
buildInputs = [
|
|
## Required
|
|
opencv
|
|
pcl
|
|
liblapack
|
|
xorg.libSM
|
|
xorg.libICE
|
|
xorg.libXt
|
|
## Optional
|
|
libusb1
|
|
eigen
|
|
g2o
|
|
ceres-solver
|
|
# libpointmatcher - ABI mismatch
|
|
octomap
|
|
freenect
|
|
libdc1394
|
|
# librealsense - missing includedir
|
|
qtbase
|
|
libGL
|
|
libGLU
|
|
vtkWithQt5
|
|
];
|
|
|
|
# Disable warnings that are irrelevant to us as packagers
|
|
cmakeFlags = [ "-Wno-dev" ];
|
|
|
|
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;
|
|
};
|
|
}
|