diff --git a/distros/ros2-overlay.nix b/distros/ros2-overlay.nix index 69e3e74d6f..1a524447a3 100644 --- a/distros/ros2-overlay.nix +++ b/distros/ros2-overlay.nix @@ -12,6 +12,13 @@ rosSelf: rosSuper: with rosSelf.lib; { outputs = [ "out" "dev" ]; }); + ament-cmake-vendor-package = rosSuper.ament-cmake-vendor-package.overrideAttrs ({ + # the regular cmake fixing replaces /opt with /var/empty, even within + # the local ros2 install folder, which completely breaks vendoring, since the + # cmake_prefix_path will no longer point the where the files are. + dontFixCmake = true; + }); + cyclonedds = rosSuper.cyclonedds.overrideAttrs ({ cmakeFlags ? [], ... }: {