mirror of
https://github.com/nix-community/raspberry-pi-nix.git
synced 2025-12-22 08:51:09 +01:00
move libcamera stuff into a separate overlay
This commit is contained in:
parent
2e2c5b13fb
commit
9c35dd99cf
6 changed files with 51 additions and 30 deletions
43
overlays/libcamera-apps.nix
Normal file
43
overlays/libcamera-apps.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ 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.4.1";
|
||||
|
||||
src = libcamera-apps-src;
|
||||
|
||||
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";
|
||||
homepage = "https://github.com/raspberrypi/libcamera-apps";
|
||||
license = licenses.bsd2;
|
||||
platforms = [ "aarch64-linux" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue