octomap: fix build with gcc 16

d7e54ca1c4
didn't make it into the 1.10.1 release, so this mention is still there.
it's gone on `devel`.

reverts part of 02dfb7e346.
This commit is contained in:
whispers
2026-09-23 15:33:44 -04:00
parent 683d24b5cf
commit bd0c483e8d

View File

@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch2,
cmake,
}:
@@ -18,6 +19,22 @@ stdenv.mkDerivation (finalAttrs: {
sourceRoot = "${finalAttrs.src.name}/octomap";
patches = [
(fetchpatch2 {
name = "prepare-for-next-patch.patch";
url = "https://github.com/OctoMap/octomap/commit/c5c714139a82969915b84cd5548dedcd257ebf1e.patch?full_index=1";
stripLen = 1;
excludes = [ ".gitignore" ];
hash = "sha256-p/qvBiqeZt93aI7p7MYG6SUwcRlchHV9AnXKVTzBhRs=";
})
(fetchpatch2 {
name = "fix-gcc16.patch";
url = "https://github.com/OctoMap/octomap/commit/d7e54ca1c4074f88381c07bfdd685bd4fced0636.patch?full_index=1";
stripLen = 1;
hash = "sha256-8ZwX1CJFykMduEEXIqTRH9VHn7ItvO/ZfdNNDIDmtss=";
})
];
nativeBuildInputs = [ cmake ];
strictDeps = true;