nix-ros-overlay/distros/humble/ffmpeg-encoder-decoder/default.nix

26 lines
1.2 KiB
Nix

# Copyright 2025 Open Source Robotics Foundation
# Distributed under the terms of the BSD license
{ lib, buildRosPackage, fetchurl, ament-cmake, ament-cmake-clang-format, ament-cmake-gtest, ament-cmake-ros, ament-lint-auto, ament-lint-common, cv-bridge, ffmpeg, opencv, pkg-config, rclcpp, ros-environment, sensor-msgs, std-msgs }:
buildRosPackage {
pname = "ros-humble-ffmpeg-encoder-decoder";
version = "2.0.0-r1";
src = fetchurl {
url = "https://github.com/ros2-gbp/ffmpeg_encoder_decoder-release/archive/release/humble/ffmpeg_encoder_decoder/2.0.0-1.tar.gz";
name = "2.0.0-1.tar.gz";
sha256 = "6eef1f84eb269c2df3a662e51321d538f72d8c2fce56ab563ad4d099a096866c";
};
buildType = "ament_cmake";
buildInputs = [ ament-cmake ament-cmake-ros pkg-config ros-environment ];
checkInputs = [ ament-cmake-clang-format ament-cmake-gtest ament-lint-auto ament-lint-common ];
propagatedBuildInputs = [ cv-bridge ffmpeg opencv opencv.cxxdev rclcpp sensor-msgs std-msgs ];
nativeBuildInputs = [ ament-cmake ament-cmake-ros pkg-config ros-environment ];
meta = {
description = "ROS2 convenience wrapper around ffmpeg for encoding/decoding";
license = with lib.licenses; [ asl20 ];
};
}