-
Notifications
You must be signed in to change notification settings - Fork 309
Expand file tree
/
Copy pathdefault.nix
More file actions
82 lines (76 loc) · 1.31 KB
/
default.nix
File metadata and controls
82 lines (76 loc) · 1.31 KB
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
79
80
81
82
{
cmake,
coin3d,
darwin,
doxygen,
eigen,
#fetchFromGitHub,
lapack,
lib,
libdc1394,
libdmtx,
libglvnd,
libjpeg, # this is libjpeg-turbo
libpng,
librealsense,
libxml2,
libX11,
nix-gitignore,
nlohmann_json,
ogre,
openblas,
opencv,
pkg-config,
python3Packages,
stdenv,
texliveSmall,
v4l-utils,
xorg,
zbar,
zlib,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "visp";
version = "3.6.0";
src = nix-gitignore.gitignoreSource [ ./.nixignore ] ./.;
nativeBuildInputs = [
cmake
doxygen
pkg-config
texliveSmall
];
buildInputs =
[
eigen
lapack
libdc1394
libdmtx
libglvnd
libjpeg
libpng
librealsense
libX11
libxml2
nlohmann_json
ogre
openblas
opencv
python3Packages.numpy
xorg.libpthreadstubs
zbar
zlib
]
++ lib.optionals stdenv.isLinux [
coin3d
v4l-utils
]
++ lib.optionals stdenv.isDarwin [ darwin.IOKit ];
doCheck = true;
meta = {
description = "Open Source Visual Servoing Platform";
homepage = "https://visp.inria.fr";
changelog = "https://github.com/lagadic/visp/blob/v${finalAttrs.version}/ChangeLog.txt";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ nim65s ];
};
})