Skip to content

Commit e5102e8

Browse files
committed
rtabmap: cleanup
1 parent c7e6aa5 commit e5102e8

File tree

1 file changed

+28
-15
lines changed

1 file changed

+28
-15
lines changed

pkgs/by-name/rt/rtabmap/package.nix

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,53 @@
22
lib,
33
stdenv,
44
fetchFromGitHub,
5-
pkg-config,
5+
6+
# nativeBuildInputs
67
cmake,
8+
libsForQt5,
9+
pkg-config,
10+
wrapGAppsHook3,
11+
12+
# buildInputs
713
opencv,
814
pcl,
15+
liblapack,
16+
xorg,
917
libusb1,
1018
eigen,
1119
g2o,
1220
ceres-solver,
13-
zed-open-capture,
14-
hidapi,
1521
octomap,
1622
freenect,
1723
libdc1394,
18-
libsForQt5,
1924
libGL,
2025
libGLU,
2126
vtkWithQt5,
22-
wrapGAppsHook3,
23-
liblapack,
24-
xorg,
27+
zed-open-capture,
28+
hidapi,
29+
30+
# passthru
31+
gitUpdater,
2532
}:
2633

27-
stdenv.mkDerivation rec {
34+
stdenv.mkDerivation (finalAttrs: {
2835
pname = "rtabmap";
2936
version = "0.21.4.1";
3037

3138
src = fetchFromGitHub {
3239
owner = "introlab";
3340
repo = "rtabmap";
34-
tag = version;
41+
tag = finalAttrs.version;
3542
hash = "sha256-y/p1uFSxVQNXO383DLGCg4eWW7iu1esqpWlyPMF3huk=";
3643
};
3744

3845
nativeBuildInputs = [
3946
cmake
40-
pkg-config
4147
libsForQt5.wrapQtAppsHook
48+
pkg-config
4249
wrapGAppsHook3
4350
];
51+
4452
buildInputs = [
4553
## Required
4654
opencv
@@ -71,11 +79,16 @@ stdenv.mkDerivation rec {
7179
# Disable warnings that are irrelevant to us as packagers
7280
cmakeFlags = [ "-Wno-dev" ];
7381

74-
meta = with lib; {
82+
passthru = {
83+
updateScript = gitUpdater { };
84+
};
85+
86+
meta = {
7587
description = "Real-Time Appearance-Based 3D Mapping";
7688
homepage = "https://introlab.github.io/rtabmap/";
77-
license = licenses.bsd3;
78-
maintainers = with maintainers; [ marius851000 ];
79-
platforms = with platforms; linux;
89+
changelog = "https://github.com/introlab/rtabmap/releases/tag/${finalAttrs.version}";
90+
license = lib.licenses.bsd3;
91+
maintainers = with lib.maintainers; [ marius851000 ];
92+
platforms = with lib.platforms; linux;
8093
};
81-
}
94+
})

0 commit comments

Comments
 (0)