hosts/skycam: working stream with go2rtc
This commit is contained in:
68
pkgs/rpicam-apps/package.nix
Normal file
68
pkgs/rpicam-apps/package.nix
Normal file
@ -0,0 +1,68 @@
|
||||
{
|
||||
stdenv,
|
||||
callPackage,
|
||||
fetchFromGitHub,
|
||||
makeWrapper,
|
||||
meson,
|
||||
ninja,
|
||||
pkg-config,
|
||||
boost,
|
||||
ffmpeg-headless,
|
||||
libdrm,
|
||||
libepoxy,
|
||||
libexif,
|
||||
libjpeg,
|
||||
libpng,
|
||||
libtiff,
|
||||
libX11,
|
||||
}:
|
||||
let
|
||||
libcamera-rpi = callPackage (import ../libcamera-rpi/package.nix) { };
|
||||
in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "rpicam-apps";
|
||||
version = "1.7.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "raspberrypi";
|
||||
repo = "rpicam-apps";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-79qpAfY83YOZdM5ZPyIOkg3s7x75hvjG6Cc96UAIdb0=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
boost
|
||||
ffmpeg-headless
|
||||
libcamera-rpi
|
||||
libdrm
|
||||
libepoxy # GLES/EGL preview window
|
||||
libexif
|
||||
libjpeg
|
||||
libpng
|
||||
libtiff
|
||||
libX11
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
];
|
||||
|
||||
# See all options here: https://github.com/raspberrypi/rpicam-apps/blob/main/meson_options.txt
|
||||
mesonFlags = [
|
||||
"-Denable_drm=disabled"
|
||||
"-Denable_egl=disabled"
|
||||
"-Denable_hailo=disabled"
|
||||
"-Denable_qt=disabled"
|
||||
"-Denable_libav=disabled"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
for f in rpicam-hello rpicam-jpeg rpicam-raw rpicam-still rpicam-vid
|
||||
do
|
||||
wrapProgram $out/bin/$f --set-default LIBCAMERA_IPA_PROXY_PATH ${libcamera-rpi}/libexec/libcamera
|
||||
done
|
||||
'';
|
||||
})
|
Reference in New Issue
Block a user