gst_all_1.icamerasrc: init at 202212109
This commit is contained in:
parent
4269391e56
commit
c4c9f600e7
@ -25,5 +25,7 @@
|
||||
|
||||
gst-vaapi = callPackage ./vaapi { };
|
||||
|
||||
icamerasrc = callPackage ./icamerasrc { };
|
||||
|
||||
# note: gst-python is in ./python/default.nix - called under pythonPackages
|
||||
}
|
||||
|
55
pkgs/development/libraries/gstreamer/icamerasrc/default.nix
Normal file
55
pkgs/development/libraries/gstreamer/icamerasrc/default.nix
Normal file
@ -0,0 +1,55 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, autoreconfHook
|
||||
, pkg-config
|
||||
, gst_all_1
|
||||
, ipu6-camera-hal
|
||||
, libdrm
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "icamerasrc";
|
||||
version = "20221209";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "intel";
|
||||
repo = "icamerasrc";
|
||||
rev = "refs/tags/rpl_plat_${version}_pv";
|
||||
hash = "sha256-qlV363l4tUjUAa1LiZQq55byKpz1tLESKAXEmgiYHVo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
pkg-config
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
# https://github.com/intel/ipu6-camera-hal/issues/1
|
||||
export CHROME_SLIM_CAMHAL=ON
|
||||
# https://github.com/intel/icamerasrc/issues/22
|
||||
export STRIP_VIRTUAL_CHANNEL_CAMHAL=ON
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
gst_all_1.gstreamer
|
||||
gst_all_1.gst-plugins-base
|
||||
ipu6-camera-hal
|
||||
libdrm
|
||||
];
|
||||
|
||||
NIX_CFLAGS_COMPILE = [
|
||||
# gstcameradeinterlace.cpp:55:10: fatal error: gst/video/video.h: No such file or directory
|
||||
"-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0"
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "GStreamer Plugin for MIPI camera support through the IPU6/IPU6EP/IPU6SE on Intel Tigerlake/Alderlake/Jasperlake platforms";
|
||||
homepage = "https://github.com/intel/icamerasrc/tree/icamerasrc_slim_api";
|
||||
license = licenses.lgpl21Plus;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user