1
0
Fork 0
mirror of https://github.com/lopsided98/nix-ros-overlay.git synced 2025-07-14 06:00:38 +03:00
nix-ros-overlay/distros/jazzy/libcamera/default.nix

25 lines
936 B
Nix

# Copyright 2025 Open Source Robotics Foundation
# Distributed under the terms of the BSD license
{ lib, buildRosPackage, fetchurl, libyaml, meson, openssl, pkg-config, python3, python3Packages, udev }:
buildRosPackage {
pname = "ros-jazzy-libcamera";
version = "0.4.0-r1";
src = fetchurl {
url = "https://github.com/ros2-gbp/libcamera-release/archive/release/jazzy/libcamera/0.4.0-1.tar.gz";
name = "0.4.0-1.tar.gz";
sha256 = "4c8d0d85b4472b929f1526cd7071cc503d67ac1f6f8f85295fb56d609cab2739";
};
buildType = "meson";
buildInputs = [ meson pkg-config python3Packages.jinja2 python3Packages.ply python3Packages.pybind11 python3Packages.pyyaml ];
propagatedBuildInputs = [ libyaml openssl python3 udev ];
nativeBuildInputs = [ meson ];
meta = {
description = "An open source camera stack and framework for Linux, Android, and ChromeOS";
license = with lib.licenses; [ "LGPL-2.1-only" ];
};
}