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/joy-linux/default.nix

32 lines
1.2 KiB
Nix
Raw Normal View History

# Copyright 2023 Open Source Robotics Foundation
# Distributed under the terms of the BSD license
{ lib, buildRosPackage, fetchurl, ament-cmake, ament-lint-auto, ament-lint-common, diagnostic-msgs, diagnostic-updater, rclcpp, sensor-msgs }:
buildRosPackage {
pname = "ros-foxy-joy-linux";
version = "3.0.1-r1";
src = fetchurl {
url = "https://github.com/ros2-gbp/joystick_drivers-release/archive/release/foxy/joy_linux/3.0.1-1.tar.gz";
name = "3.0.1-1.tar.gz";
sha256 = "95d97d9bfd85e6a8455bc36ca5d9a01aaab46ec8422e0abd0ead7f56b0b8cf4a";
};
buildType = "ament_cmake";
buildInputs = [ ament-cmake ];
checkInputs = [ ament-lint-auto ament-lint-common ];
propagatedBuildInputs = [ diagnostic-msgs diagnostic-updater rclcpp sensor-msgs ];
nativeBuildInputs = [ ament-cmake ];
meta = {
description = ''ROS2 driver for a generic Linux joystick.
Will contain a MacOS and Windows version later.
The joy package contains joy_node, a node that interfaces a
generic Linux joystick to ROS2. This node publishes a "Joy"
message, which contains the current state of each one of the
joystick's buttons and axes.'';
license = with lib.licenses; [ bsdOriginal ];
};
}