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