Skip to content

Commit

Permalink
mavros: add patch to fix ftp plugin crash
Browse files Browse the repository at this point in the history
  • Loading branch information
lopsided98 committed Feb 22, 2023
1 parent 9100a47 commit ca325a1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions distros/ros2-overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,20 @@ rosSelf: rosSuper: with rosSelf.lib; {
nativeBuildInputs = nativeBuildInputs ++ [ self.buildPackages.cmake ];
});

mavros = rosSuper.mavros.overrideAttrs ({
patches ? [], ...
}: {
patches = patches ++ [
# Fix null pointer dereference in ftp plugin
# https://github.com/mavlink/mavros/pull/1833
(self.fetchpatch {
url = "https://github.com/mavlink/mavros/commit/a132cbd6d3cca6eb5dc6aeabe7ba48eaca3f4446.patch";
hash = "sha256-puDNdAwCy8eiO74jXtlRmK8UI7TfFQO+ZuO4CHjPXMY=";
stripLen = 1;
})
];
});

python-cmake-module = rosSuper.python-cmake-module.overrideAttrs ({ ... }: let
python = rosSelf.python;
in {
Expand Down

0 comments on commit ca325a1

Please sign in to comment.