nix-ros-overlay/distros/humble/ament-clang-format/default.nix

25 lines
922 B
Nix

# Copyright 2025 Open Source Robotics Foundation
# Distributed under the terms of the BSD license
{ lib, buildRosPackage, fetchurl, ament-copyright, ament-flake8, ament-pep257, clang, python3Packages }:
buildRosPackage {
pname = "ros-humble-ament-clang-format";
version = "0.12.12-r1";
src = fetchurl {
url = "https://github.com/ros2-gbp/ament_lint-release/archive/release/humble/ament_clang_format/0.12.12-1.tar.gz";
name = "0.12.12-1.tar.gz";
sha256 = "01d74f7bbc1d2746ac0fe2875e21fea0b27f10ec8ce897a1d77c579c73173d27";
};
buildType = "ament_python";
checkInputs = [ ament-copyright ament-flake8 ament-pep257 python3Packages.pytest ];
propagatedBuildInputs = [ clang python3Packages.pyyaml ];
meta = {
description = "The ability to check code against style conventions using
clang-format and generate xUnit test result files.";
license = with lib.licenses; [ asl20 ];
};
}