mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-10 01:42:24 +03:00

Previously, ros-core was not included presumably due to its dependency
on ros2doctor, which depended on ifcfg package unavailable in nixpkgs.
Since ros2cli version 0.17.0 (2022-01-25) ifcfg is no longer necessary
as it was replaced by psutils [1]. This means that we can use ros-core
without problems instead of manually specifying its dependencies such
ros-environment, ros2topic, etc.
In addition to ros-core, colcon is a basic tool for ROS 2. Include it
in the example too.
[1]: cc5d6b1f9b
17 lines
250 B
Nix
Executable file
17 lines
250 B
Nix
Executable file
# Environment containing basic ROS2 tools
|
|
|
|
{ pkgs ? import ../. {} }:
|
|
with pkgs;
|
|
with rosPackages.humble;
|
|
|
|
mkShell {
|
|
nativeBuildInputs = [
|
|
(buildEnv {
|
|
paths = [
|
|
ros-core
|
|
colcon
|
|
geometry-msgs
|
|
];
|
|
})
|
|
];
|
|
}
|