diff --git a/pkgs/tools/misc/mstflint/default.nix b/pkgs/tools/misc/mstflint/default.nix index 619858cbe359479..cda06640c84378a 100644 --- a/pkgs/tools/misc/mstflint/default.nix +++ b/pkgs/tools/misc/mstflint/default.nix @@ -32,6 +32,11 @@ stdenv.mkDerivation rec { hash = "sha256-P8XACcz6d8UTOhFFeTijfFOthBqnUghGlDj9K145sZ8="; }; + # needed to introduce this with GCC 13. Remove, when https://github.com/Mellanox/mstflint/pull/916 is upstream. + patches = [ + ./elf.patch + ]; + nativeBuildInputs = [ autoconf automake diff --git a/pkgs/tools/misc/mstflint/elf.patch b/pkgs/tools/misc/mstflint/elf.patch new file mode 100644 index 000000000000000..97286aaa1cde115 --- /dev/null +++ b/pkgs/tools/misc/mstflint/elf.patch @@ -0,0 +1,13 @@ +diff --git a/mlxdpa/elfio/elf_types.hpp b/mlxdpa/elfio/elf_types.hpp +index b99c35f3..b0823b55 100755 +--- a/mlxdpa/elfio/elf_types.hpp ++++ b/mlxdpa/elfio/elf_types.hpp +@@ -23,6 +23,8 @@ THE SOFTWARE. + #ifndef ELFTYPES_H + #define ELFTYPES_H + ++#include ++ + #ifdef __cplusplus + namespace ELFIO { + #endif