Skip to content

Commit f9df9fc

Browse files
authored
apriltag: init at v3.4.3 (#392308)
2 parents c57720a + 502cf1e commit f9df9fc

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchFromGitHub,
5+
cmake,
6+
python3Packages,
7+
nix-update-script,
8+
}:
9+
10+
let
11+
opencv4WithGtk = python3Packages.opencv4.override {
12+
enableGtk2 = true; # For GTK2 support
13+
enableGtk3 = true; # For GTK3 support
14+
};
15+
in
16+
stdenv.mkDerivation (finalAttrs: {
17+
pname = "apriltags";
18+
version = "3.4.3";
19+
20+
src = fetchFromGitHub {
21+
owner = "AprilRobotics";
22+
repo = "AprilTags";
23+
tag = "v${finalAttrs.version}";
24+
hash = "sha256-1XbsyyadUvBZSpIc9KPGiTcp+3G7YqHepWoORob01Ss=";
25+
};
26+
27+
nativeBuildInputs = [
28+
cmake
29+
];
30+
31+
buildInputs = [ opencv4WithGtk ];
32+
33+
cmakeFlags = [ (lib.cmakeBool "BUILD_EXAMPLES" true) ];
34+
35+
doCheck = true;
36+
37+
passthru.updateScript = nix-update-script { };
38+
39+
meta = {
40+
description = "Visual fiducial system popular for robotics research";
41+
homepage = "https://april.eecs.umich.edu/software/apriltag";
42+
license = lib.licenses.bsd2;
43+
platforms = lib.platforms.all;
44+
maintainers = with lib.maintainers; [ phodina ];
45+
};
46+
})

0 commit comments

Comments
 (0)