File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-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+ 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+ } )
You can’t perform that action at this time.
0 commit comments