1
0
Fork 0
mirror of https://github.com/lopsided98/nix-ros-overlay.git synced 2025-07-14 14:10:37 +03:00
nix-ros-overlay/distros/foxy/v4l2-camera/default.nix

25 lines
951 B
Nix

# Copyright 2021 Open Source Robotics Foundation
# Distributed under the terms of the BSD license
{ lib, buildRosPackage, fetchurl, ament-cmake-ros, ament-lint-auto, ament-lint-common, camera-info-manager, image-transport, rclcpp, rclcpp-components, sensor-msgs }:
buildRosPackage {
pname = "ros-foxy-v4l2-camera";
version = "0.4.0-r1";
src = fetchurl {
url = "https://github.com/ros2-gbp/ros2_v4l2_camera-release/archive/release/foxy/v4l2_camera/0.4.0-1.tar.gz";
name = "0.4.0-1.tar.gz";
sha256 = "08d6b00b59353d626745974898c115a49160396fd4282e50881d8fe9b528c330";
};
buildType = "ament_cmake";
checkInputs = [ ament-lint-auto ament-lint-common ];
propagatedBuildInputs = [ camera-info-manager image-transport rclcpp rclcpp-components sensor-msgs ];
nativeBuildInputs = [ ament-cmake-ros ];
meta = {
description = ''A ROS 2 camera driver using Video4Linux2'';
license = with lib.licenses; [ asl20 ];
};
}