mirror of
https://github.com/nix-community/raspberry-pi-nix.git
synced 2025-12-24 09:50:56 +01:00
bump kernel, firmware, and libcamera/libcamera-apps
This commit is contained in:
parent
409f6368c6
commit
9c8a4fc486
4 changed files with 64 additions and 20 deletions
|
|
@ -1,22 +1,38 @@
|
|||
{ libcamera-apps-src, lib, stdenv, fetchFromGitHub, fetchpatch, cmake
|
||||
, pkg-config, libjpeg, libtiff, libpng, libcamera, libepoxy, boost, libexif }:
|
||||
{ libcamera-apps-src
|
||||
, lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, meson
|
||||
, pkg-config
|
||||
, libjpeg
|
||||
, libtiff
|
||||
, libpng
|
||||
, libcamera
|
||||
, libepoxy
|
||||
, boost
|
||||
, libexif
|
||||
, ninja
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libcamera-apps";
|
||||
version = "v1.1.2";
|
||||
version = "v1.4.1";
|
||||
|
||||
src = libcamera-apps-src;
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
buildInputs = [ libjpeg libtiff libcamera libepoxy boost libexif libpng ];
|
||||
cmakeFlags = [
|
||||
"-DENABLE_QT=0"
|
||||
"-DENABLE_OPENCV=0"
|
||||
"-DENABLE_TFLITE=0"
|
||||
"-DENABLE_X11=1"
|
||||
"-DENABLE_DRM=1"
|
||||
(if (stdenv.hostPlatform.isAarch64) then "-DARM64=ON" else "-DARM64=OFF")
|
||||
nativeBuildInputs = [ meson pkg-config ];
|
||||
buildInputs = [ libjpeg libtiff libcamera libepoxy boost libexif libpng ninja ];
|
||||
mesonFlags = [
|
||||
"-Denable_qt=false"
|
||||
"-Denable_opencv=false"
|
||||
"-Denable_tflite=false"
|
||||
"-Denable_drm=true"
|
||||
];
|
||||
# Meson is no longer able to pick up Boost automatically.
|
||||
# https://github.com/NixOS/nixpkgs/issues/86131
|
||||
BOOST_INCLUDEDIR = "${lib.getDev boost}/include";
|
||||
BOOST_LIBRARYDIR = "${lib.getLib boost}/lib";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Userland tools interfacing with Raspberry Pi cameras";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue