-
Notifications
You must be signed in to change notification settings - Fork 0
/
icamerasrc.nix
50 lines (43 loc) · 1.19 KB
/
icamerasrc.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
{ stdenv
, lib
, pkgs
, icamerasrc-src
, ipu6-camera-hal
, pkg-config
, gst_all_1
, autoreconfHook
, glib
, ...
}:
stdenv.mkDerivation {
name = "icamerasrc";
version = "0.0.0";
src = icamerasrc-src;
# Fix missing def
CHROME_SLIM_CAMHAL = "ON";
STRIP_VIRTUAL_CHANNEL_CAMHAL = "ON";
# I think their autoconf settings assume the plugs will be in the same directory as the main gstreamer headers
# which isn't true in Nix. I don't know autotools enough to patch it, so I'm just gonna hack this onto the end.
CPPFLAGS = "-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0";
nativeBuildInputs = [
autoreconfHook
pkg-config
gst_all_1.gst-plugins-base.dev
];
buildInputs = with pkgs; [
libdrm
];
propagatedBuildInputs = [
ipu6-camera-hal
];
meta = with lib; {
maintainers = [ maintainers.mitame ];
license = [ licenses.lgpl21 ];
platforms = [ "i686-linux" "x86_64-linux" ];
description = "Gstreamer src plugin 'icamerasrc'";
homepage = "https://github.com/intel/icamerasrc/tree/icamerasrc_slim_api";
longDescription = ''
Support for MIPI cameras throughdd the IPU6 on Intel Tiger Lake and Alder Lake platforms.
'';
};
}