mirror of
https://github.com/nix-community/raspberry-pi-nix.git
synced 2025-11-09 03:56:03 +01:00
rpicam-apps: wrap binaries with ipa_proxy paths
This commit is contained in:
parent
0468ebaa68
commit
ab207b00b8
1 changed files with 18 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
src = rpicam-apps-src;
|
src = rpicam-apps-src;
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [ meson pkg-config ];
|
nativeBuildInputs = with pkgs; [ meson pkg-config makeWrapper ];
|
||||||
buildInputs = with pkgs; [ libjpeg libtiff libcamera libepoxy boost libexif libpng ffmpeg libdrm ninja ];
|
buildInputs = with pkgs; [ libjpeg libtiff libcamera libepoxy boost libexif libpng ffmpeg libdrm ninja ];
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
"-Denable_qt=disabled"
|
"-Denable_qt=disabled"
|
||||||
|
|
@ -21,6 +21,23 @@ stdenv.mkDerivation {
|
||||||
BOOST_INCLUDEDIR = "${lib.getDev pkgs.boost}/include";
|
BOOST_INCLUDEDIR = "${lib.getDev pkgs.boost}/include";
|
||||||
BOOST_LIBRARYDIR = "${lib.getLib pkgs.boost}/lib";
|
BOOST_LIBRARYDIR = "${lib.getLib pkgs.boost}/lib";
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
wrapProgram $out/bin/rpicam-hello \
|
||||||
|
--set LIBCAMERA_IPA_PROXY_PATH ${pkgs.libcamera}/libexec/libcamera
|
||||||
|
|
||||||
|
wrapProgram $out/bin/rpicam-raw \
|
||||||
|
--set LIBCAMERA_IPA_PROXY_PATH ${pkgs.libcamera}/libexec/libcamera
|
||||||
|
|
||||||
|
wrapProgram $out/bin/rpicam-vid \
|
||||||
|
--set LIBCAMERA_IPA_PROXY_PATH ${pkgs.libcamera}/libexec/libcamera
|
||||||
|
|
||||||
|
wrapProgram $out/bin/rpicam-jpeg \
|
||||||
|
--set LIBCAMERA_IPA_PROXY_PATH ${pkgs.libcamera}/libexec/libcamera
|
||||||
|
|
||||||
|
wrapProgram $out/bin/rpicam-still \
|
||||||
|
--set LIBCAMERA_IPA_PROXY_PATH ${pkgs.libcamera}/libexec/libcamera
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Userland tools interfacing with Raspberry Pi cameras";
|
description = "Userland tools interfacing with Raspberry Pi cameras";
|
||||||
homepage = "https://github.com/raspberrypi/libcamera-apps";
|
homepage = "https://github.com/raspberrypi/libcamera-apps";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue