This repository was archived by the owner on Mar 23, 2025. It is now read-only.
File tree 2 files changed +18
-14
lines changed
2 files changed +18
-14
lines changed Original file line number Diff line number Diff line change 3
3
, libpisp-src
4
4
, ...
5
5
} :
6
- final : prev :
7
- {
6
+ final : prev : {
8
7
# A recent known working version of rpicam-apps
9
8
libcamera-apps =
10
9
final . callPackage ./rpicam-apps.nix { inherit rpicam-apps-src ; } ;
@@ -22,17 +21,19 @@ final: prev:
22
21
} ;
23
22
24
23
libcamera = prev . libcamera . overrideAttrs ( old : {
25
- version = "0.2 .0" ;
24
+ version = "0.3 .0" ;
26
25
src = libcamera-src ;
27
26
buildInputs = old . buildInputs ++ ( with final ; [
28
27
libpisp openssl libtiff
29
28
( python3 . withPackages ( ps : with ps ; [
30
29
python3-gnutls pybind11 pyyaml ply
31
30
] ) )
32
31
libglibutil gst_all_1 . gst-plugins-base
33
-
34
32
] ) ;
35
33
patches = [ ] ;
34
+ postPatch = ''
35
+ patchShebangs src/py/ utils/
36
+ '' ;
36
37
mesonFlags = [
37
38
"--buildtype=release"
38
39
"-Dpipelines=rpi/vc4,rpi/pisp"
Original file line number Diff line number Diff line change 1
- { libcamera-apps-src , lib , pkgs , stdenv } :
2
- stdenv . mkDerivation rec {
1
+ { rpicam-apps-src , lib , pkgs , stdenv } :
2
+
3
+ stdenv . mkDerivation {
3
4
pname = "libcamera-apps" ;
4
5
version = "v1.5.0" ;
5
6
6
- src = libcamera -apps-src;
7
+ src = rpicam -apps-src;
7
8
8
9
nativeBuildInputs = with pkgs ; [ meson pkg-config ] ;
9
- buildInputs = with pkgs ; [ libjpeg libtiff libcamera libepoxy boost libexif libpng ninja ] ;
10
+ buildInputs = with pkgs ; [ libjpeg libtiff libcamera libepoxy boost libexif libpng ffmpeg libdrm ninja ] ;
10
11
mesonFlags = [
11
- "-Denable_qt=false"
12
- "-Denable_opencv=false"
13
- "-Denable_tflite=false"
14
- "-Denable_drm=true"
12
+ "-Denable_qt=disabled"
13
+ "-Denable_opencv=disabled"
14
+ "-Denable_tflite=disabled"
15
+ "-Denable_egl=disabled"
16
+ "-Denable_hailo=disabled"
17
+ "-Denable_drm=enabled"
15
18
] ;
16
19
# Meson is no longer able to pick up Boost automatically.
17
20
# https://github.com/NixOS/nixpkgs/issues/86131
18
- BOOST_INCLUDEDIR = "${ lib . getDev boost } /include" ;
19
- BOOST_LIBRARYDIR = "${ lib . getLib boost } /lib" ;
21
+ BOOST_INCLUDEDIR = "${ lib . getDev pkgs . boost } /include" ;
22
+ BOOST_LIBRARYDIR = "${ lib . getLib pkgs . boost } /lib" ;
20
23
21
24
meta = with lib ; {
22
25
description = "Userland tools interfacing with Raspberry Pi cameras" ;
You can’t perform that action at this time.
0 commit comments