-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
78 lines (72 loc) · 1.4 KB
/
default.nix
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
autoPatchelfHook,
boost,
bzip2,
cereal,
cmake,
eigen,
extra-cmake-modules,
fetchFromGitLab,
fmt,
freeglut,
glew,
lib,
libepoxy,
libGL,
lz4,
magic-enum,
nix-update-script,
opencv,
pkg-config,
stdenv,
tbb,
xorg,
}:
stdenv.mkDerivation {
pname = "basalt-monado";
version = "0-unstable-2024-06-21";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "mateosss";
repo = "basalt";
rev = "385c161f35720df3a6c606054565f9d49a1c5787";
hash = "sha256-+2/pc2OWDwE04xPcfHL5GGyhQ1ZTN6o7cCNAilDgd2Y=";
fetchSubmodules = true;
};
nativeBuildInputs = [
autoPatchelfHook
cmake
extra-cmake-modules
pkg-config
];
buildInputs = [
boost
bzip2
cereal
eigen
fmt
freeglut
glew
libepoxy
libGL
lz4
magic-enum
opencv
tbb
xorg.libX11
];
cmakeFlags = [
(lib.cmakeBool "BASALT_INSTANTIATIONS_DOUBLE" false)
(lib.cmakeBool "BUILD_TESTS" false)
(lib.cmakeFeature "EIGEN_ROOT" "${eigen}/include/eigen3")
];
passthru.updateScript = nix-update-script { };
meta = {
description = "A fork of Basalt improved for tracking XR devices with Monado";
homepage = "https://gitlab.freedesktop.org/mateosss/basalt";
license = lib.licenses.bsd3;
mainProgram = "basalt_vio";
maintainers = [ lib.maintainers.locochoco ];
platforms = lib.platforms.linux;
};
}