nix-ros-overlay/examples/ros2-gz.nix
Ben Wolsieffer a3f78410d1 Rename ros2-gz example
Remove example from the name to match the others.
2024-10-15 21:46:43 -04:00

43 lines
1 KiB
Nix

# gz needs insecure packages, namely freeimage-unstable-2021-11-01
# to run this dev shell use:
# NIXPKGS_ALLOW_INSECURE=1 nix develop --impure .\#example-ros2-gz
{pkgs ? import ../. {}}:
with pkgs;
with rosPackages.jazzy;
mkShell {
nativeBuildInputs = [
(buildEnv {
paths = [
colcon
ros-core
ament-cmake-core
python-cmake-module
# ros-gz
gz-cmake-vendor
gz-common-vendor
gz-dartsim-vendor
gz-fuel-tools-vendor
gz-gui-vendor
gz-launch-vendor
gz-math-vendor
gz-msgs-vendor
gz-ogre-next-vendor
gz-physics-vendor
gz-plugin-vendor
gz-rendering-vendor
gz-sensors-vendor
gz-sim-vendor
gz-tools-vendor
gz-transport-vendor
gz-utils-vendor
];
})
];
# Gazebo is currently broken on Wayland
# https://gazebosim.org/docs/ionic/troubleshooting/#wayland-issues
shellHook = ''
unset QT_QPA_PLATFORM
'';
}