b4e278209f
Fixes the documentation build with sphinx 5.0
97 lines
1.7 KiB
Nix
97 lines
1.7 KiB
Nix
{ stdenv
|
|
, fetchgit
|
|
, lib
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, makeFontsConf
|
|
, boost
|
|
, gnutls
|
|
, openssl
|
|
, libdrm
|
|
, libevent
|
|
, libyaml
|
|
, lttng-ust
|
|
, gst_all_1
|
|
, gtest
|
|
, graphviz
|
|
, doxygen
|
|
, python3
|
|
, python3Packages
|
|
, systemd # for libudev
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "libcamera";
|
|
version = "unstable-2022-07-15";
|
|
|
|
src = fetchgit {
|
|
url = "https://git.libcamera.org/libcamera/libcamera.git";
|
|
rev = "e9b6b362820338d0546563444e7b1767f5c7044c";
|
|
hash = "sha256-geqFcMBHcVe7dPdVOal8V2pVItYUdoC+5isISqRG4Wc=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs utils/
|
|
'';
|
|
|
|
strictDeps = true;
|
|
|
|
buildInputs = [
|
|
# IPA and signing
|
|
gnutls
|
|
boost
|
|
|
|
# gstreamer integration
|
|
gst_all_1.gstreamer
|
|
gst_all_1.gst-plugins-base
|
|
|
|
# cam integration
|
|
libevent
|
|
libdrm
|
|
|
|
# hotplugging
|
|
systemd
|
|
|
|
# lttng tracing
|
|
lttng-ust
|
|
|
|
# yamlparser
|
|
libyaml
|
|
|
|
gtest
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
python3
|
|
python3Packages.jinja2
|
|
python3Packages.pyyaml
|
|
python3Packages.ply
|
|
python3Packages.sphinx
|
|
graphviz
|
|
doxygen
|
|
openssl
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dv4l2=true"
|
|
"-Dqcam=disabled"
|
|
"-Dlc-compliance=disabled" # tries unconditionally to download gtest when enabled
|
|
];
|
|
|
|
# Fixes error on a deprecated declaration
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
|
|
|
|
# Silence fontconfig warnings about missing config
|
|
FONTCONFIG_FILE = makeFontsConf { fontDirectories = []; };
|
|
|
|
meta = with lib; {
|
|
description = "An open source camera stack and framework for Linux, Android, and ChromeOS";
|
|
homepage = "https://libcamera.org";
|
|
license = licenses.lgpl2Plus;
|
|
maintainers = with maintainers; [ citadelcore ];
|
|
};
|
|
}
|