-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrpicam-apps.nix
More file actions
82 lines (72 loc) · 1.38 KB
/
Copy pathrpicam-apps.nix
File metadata and controls
82 lines (72 loc) · 1.38 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
{ stdenv
, fetchgit
, lib
, meson
, ninja
, libcamera
, libpisp
, python3
, python3Packages
, pkg-config
, boost
, cmake
, libav
, ffmpeg
, libexif
, libjpeg
, libtiff
, libpng
, libdrm
, opencv
}:
stdenv.mkDerivation rec {
pname = "rpicam-apps";
version = "1.5.1";
src = fetchgit {
url = "https://github.com/raspberrypi/rpicam-apps";
rev = "v${version}";
hash = "sha256-rl5GVigiZWXkpfIteRWUMjtCaPweXRWrBrZOjQ1hiU8=";
# hash = "sha256-KH30jmHfxXq4j2CL7kv18DYECJRp9ECuWNPnqPZajPA=";
};
outputs = [ "out" "dev" ];
postPatch = ''
patchShebangs utils/
'';
strictDeps = true;
buildInputs = [
libcamera
libpisp
libav
ffmpeg
libexif
libjpeg
libtiff
libpng
libdrm
opencv
];
nativeBuildInputs = [
meson
ninja
pkg-config
python3
cmake
boost.dev
];
mesonFlags = [
"-Denable_libav=disabled"
"-Ddownload_hailo_models=false"
"-Denable_egl=disabled"
"-Denable_qt=disabled"
"-Denable_hailo=disabled"
"-Denable_opencv=enabled"
# "-Ddownload_imx500_models=false"
# "-Denable_imx500=false"
];
env = {
# Fixes error on a deprecated declaration
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations -I${lib.getDev boost}/include -L${lib.getDev boost}/lib";
BOOST_INCLUDEDIR = "${lib.getDev boost}/include";
BOOST_LIBRARYDIR = "${lib.getLib boost}/lib";
};
}