From 06c257eb384a25f545e1f33e67f199c60c0127a6 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Sun, 7 Jul 2024 09:03:16 +0200 Subject: [PATCH] noetic.mavros-extras: Add gcc-13 patch Fixes #423. --- distros/noetic/overrides.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/distros/noetic/overrides.nix b/distros/noetic/overrides.nix index 0ed15f85a4..38295460b2 100644 --- a/distros/noetic/overrides.nix +++ b/distros/noetic/overrides.nix @@ -38,6 +38,17 @@ rosSelf: rosSuper: with rosSelf.lib; { }); + mavros-extras = rosSuper.mavros-extras.overrideAttrs ({ + patches ? [], ... + }: { + # Fix compile error when compiling with gcc 13 + patches = patches ++ [ (self.fetchpatch { + url = "https://github.com/mavlink/mavros/commit/640e916127167029e5be3e86c5f43b05baf52e16.patch"; + hash = "sha256-IpCeQeeUKTweCTdsP9m07i+q2fNosFP4Y5SVX+wMeP8="; + stripLen = 1; + }) ]; + }); + moveit-core = rosSuper.moveit-core.overrideAttrs ({ buildInputs ? [], patches ? [], ... }: {