diff --git a/distros/humble/overrides.nix b/distros/humble/overrides.nix index 119427fb59..c7d887e971 100644 --- a/distros/humble/overrides.nix +++ b/distros/humble/overrides.nix @@ -105,6 +105,12 @@ in with lib; { propagatedBuildInputs = propagatedBuildInputs ++ [ rosSelf.moveit-ros-planning ]; }); + nav2-behavior-tree = rosSuper.nav2-behavior-tree.overrideAttrs({ + ... + }: { + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=array-bounds" ]; + }); + nav2-costmap-2d = rosSuper.nav2-costmap-2d.overrideAttrs({ ... }: { diff --git a/distros/jazzy/overrides.nix b/distros/jazzy/overrides.nix index ac18323446..2ce0ba832f 100644 --- a/distros/jazzy/overrides.nix +++ b/distros/jazzy/overrides.nix @@ -168,6 +168,12 @@ in { ''; }); + nav2-behavior-tree = rosSuper.nav2-behavior-tree.overrideAttrs({ + ... + }: { + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=array-bounds" ]; + }); + nav2-costmap-2d = rosSuper.nav2-costmap-2d.overrideAttrs({ ... }: {