1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
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