lopsided98 / nix-ros-overlay

ROS overlay for the Nix package manager
Apache License 2.0
173 stars 69 forks source link

Add colcon-clean extension #345

Open nwn opened 5 months ago

nwn commented 5 months ago

This adds the colcon-clean extension that provides a nice command for workspace cleaning. The extension relies on the scantree Python package which isn't part of nixpkgs, so that package is specified manually as well. I'm not sure if that's how you'd typically do this or whether the dependency should be specified differently.

wentasah commented 5 months ago

I tested this in nix repl via:

:l .
:u with python3Packages; colcon-core.withExtensions [ colcon-argcomplete colcon-bash colcon-cmake colcon-core colcon-defaults colcon-devtools colcon-library-path  colcon-metadata colcon-notification colcon-output colcon-package-information colcon-package-selection colcon-parallel-executor colcon-python-setup-py colcon-recursive-crawl colcon-ros colcon-test-result colcon-zsh colcon-clean ]
colcon ...

Seems to work as expected.