1 { lib, stdenv, cmake, fetchFromGitHub, opencv4 }:
4 pname = "opentrack-aruco";
5 version = "unstable-20190303";
7 src = fetchFromGitHub {
10 rev = "12dc60efd61149227bd05c805208d9bcce308f6d";
11 sha256 = "0gkrixgfbpg8pls4qqilphbz4935mg5z4p18a0vv6kclmfccw9ad";
14 nativeBuildInputs = [ cmake ];
16 buildInputs = [ opencv4 ];
18 env.NIX_CFLAGS_COMPILE = "-Wall -Wextra -Wpedantic -ffast-math -O3";
21 mkdir -p $out/include/aruco
24 # copy headers required by main package
26 cp $src/src/*.h $out/include/aruco
30 homepage = "https://github.com/opentrack/aruco";
31 description = "C++ library for detection of AR markers based on OpenCV";
32 license = licenses.isc;
33 maintainers = with maintainers; [ zaninime ];