Skip to content

Commit 1fe2880

Browse files
author
Petr Hodina
committedMar 23, 2025
apriltag: init at v3.4.3
1 parent 3864232 commit 1fe2880

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
 

‎pkgs/by-name/ap/apriltag/package.nix

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

0 commit comments

Comments
 (0)
Failed to load comments.