nix-ros-overlay/distros/humble/demo-nodes-cpp/default.nix

26 lines
1.3 KiB
Nix

# Copyright 2024 Open Source Robotics Foundation
# Distributed under the terms of the BSD license
{ lib, buildRosPackage, fetchurl, ament-cmake, ament-cmake-pytest, ament-lint-auto, ament-lint-common, example-interfaces, launch, launch-ros, launch-testing, launch-testing-ament-cmake, launch-testing-ros, launch-xml, rclcpp, rclcpp-components, rcutils, rmw, rmw-implementation-cmake, std-msgs }:
buildRosPackage {
pname = "ros-humble-demo-nodes-cpp";
version = "0.20.5-r1";
src = fetchurl {
url = "https://github.com/ros2-gbp/demos-release/archive/release/humble/demo_nodes_cpp/0.20.5-1.tar.gz";
name = "0.20.5-1.tar.gz";
sha256 = "bae26eb92b56f6fba90320852fc970b58d2b0bbf5ff0962a255e0c74e43b60b0";
};
buildType = "ament_cmake";
buildInputs = [ ament-cmake rmw-implementation-cmake ];
checkInputs = [ ament-cmake-pytest ament-lint-auto ament-lint-common launch launch-testing launch-testing-ament-cmake launch-testing-ros ];
propagatedBuildInputs = [ example-interfaces launch-ros launch-xml rclcpp rclcpp-components rcutils rmw std-msgs ];
nativeBuildInputs = [ ament-cmake ];
meta = {
description = "C++ nodes which were previously in the ros2/examples repository but are now just used for demo purposes.";
license = with lib.licenses; [ asl20 ];
};
}