11 , avx2Support ? stdenv.hostPlatform.avx2Support
14 stdenv.mkDerivation rec {
18 outputs = [ "lib" "dev" "out" ];
20 src = fetchFromGitHub {
21 owner = "alicevision";
24 hash = "sha256-foB+e7BCuUucyhN8FsI6BIT3/fsNLTjY6QmjkMWZu6A=";
28 # Feel free to create a PR to add CUDA support
29 "-DCCTAG_WITH_CUDA=OFF"
31 "-DCCTAG_ENABLE_SIMD_AVX2=${if avx2Support then "ON" else "OFF"}"
33 "-DCCTAG_BUILD_TESTS=${if doCheck then "ON" else "OFF"}"
34 "-DCCTAG_BUILD_APPS=OFF"
38 ./cmake-install-include-dir.patch
45 propagatedBuildInputs = [
55 # Tests are broken on Darwin (linking issue)
56 doCheck = !stdenv.hostPlatform.isDarwin;
59 description = "Detection of CCTag markers made up of concentric circles";
60 homepage = "https://cctag.readthedocs.io";
61 downloadPage = "https://github.com/alicevision/CCTag";
62 license = licenses.mpl20;
63 platforms = platforms.all;
64 maintainers = with maintainers; [ tmarkus ];