blob: 7fabda370d7115e4f50c57fe1bb8c906a894c1ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{
lib,
stdenv,
cmake,
fetchFromGitHub,
opencv4,
opentrack,
}:
stdenv.mkDerivation {
pname = "opentrack-aruco";
version = "0-unstable-2022-03-10";
src = fetchFromGitHub {
owner = "opentrack";
repo = "aruco";
rev = "e08d336bd2c70859efd19622582817fe8eabe714";
hash = "sha256-Wf5y//vxRWIZfOxwgZsPPTsUHliA3cbt2FOjouh4/rQ=";
};
strictDeps = true;
nativeBuildInputs = [ cmake ];
buildInputs = [ opencv4 ];
env.NIX_CFLAGS_COMPILE = "-Wall -Wextra -Wpedantic -ffast-math -O3";
installPhase = ''
runHook preInstall
install -Dt $out/include/aruco ./src/include/aruco/*
install -Dt $out/lib ./src/libaruco.a
runHook postInstall
'';
meta = {
homepage = "https://github.com/opentrack/aruco";
description = "C++ library for detection of AR markers based on OpenCV";
license = lib.licenses.isc;
maintainers = opentrack.meta.maintainers;
};
}
|