1
0
Fork 0
mirror of https://github.com/lopsided98/nix-ros-overlay.git synced 2025-07-14 22:20:34 +03:00
nix-ros-overlay/eloquent/cv-bridge/default.nix

28 lines
1.2 KiB
Nix
Raw Normal View History

# Copyright 2019 Open Source Robotics Foundation
# Distributed under the terms of the BSD license
{ lib, buildRosPackage, fetchurl, boost, sensor-msgs, ament-cmake-ros, python3Packages, opencv3, ament-lint-common, python-cmake-module, ament-cmake-gtest, ament-cmake-pytest, ament-index-python, ament-lint-auto }:
buildRosPackage {
pname = "ros-eloquent-cv-bridge";
version = "2.1.3-r1";
src = fetchurl {
url = "https://github.com/ros2-gbp/vision_opencv-release/archive/release/eloquent/cv_bridge/2.1.3-1.tar.gz";
name = "2.1.3-1.tar.gz";
sha256 = "2556666f3b3a83fba7c394b38bd9fba97a6a52b00eba3696d90b7d73ed57ff8d";
};
buildType = "ament_cmake";
buildInputs = [ sensor-msgs boost python3Packages.numpy opencv3 ];
checkInputs = [ ament-lint-common python3Packages.opencv3 ament-cmake-gtest ament-cmake-pytest ament-lint-auto ];
propagatedBuildInputs = [ sensor-msgs boost python3Packages.numpy opencv3 ament-index-python ];
nativeBuildInputs = [ ament-cmake-ros python-cmake-module ];
meta = {
description = ''This contains CvBridge, which converts between ROS2
Image messages and OpenCV images.'';
license = with lib.licenses; [ bsdOriginal ];
};
}