diff options
author | Markus Theil <theil.markus@gmail.com> | 2024-02-06 11:57:29 +0100 |
---|---|---|
committer | Markus Theil <theil.markus@gmail.com> | 2024-02-06 13:25:27 +0100 |
commit | 2870ee7765fe4ada27358bf83a765b84425b5ecd (patch) | |
tree | a7299af8727852e4ce1c1840643ee132e826ea70 /pkgs/tools/misc/mstflint | |
parent | 621798f4c4913bfae3c6b8ecbc546e4891f446a9 (diff) |
mstflint: fix compilation with gcc 13
GCC 13 complained really hard about missing definitions for uintXX_t. A one liner in mlxdpa elfio fixed this for me. Tracked upstream: https://github.com/Mellanox/mstflint/pull/916 Signed-off-by: Markus Theil <theil.markus@gmail.com>
Diffstat (limited to 'pkgs/tools/misc/mstflint')
-rw-r--r-- | pkgs/tools/misc/mstflint/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/tools/misc/mstflint/default.nix b/pkgs/tools/misc/mstflint/default.nix index 619858cbe3594..c4c99da85e18d 100644 --- a/pkgs/tools/misc/mstflint/default.nix +++ b/pkgs/tools/misc/mstflint/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchurl +, fetchpatch , rdma-core , openssl , zlib @@ -32,6 +33,15 @@ stdenv.mkDerivation rec { hash = "sha256-P8XACcz6d8UTOhFFeTijfFOthBqnUghGlDj9K145sZ8="; }; + patches = [ + # needed to introduce this with GCC 13. Remove, when https://github.com/Mellanox/mstflint/pull/916 is upstream. + (fetchpatch { + name = "elf.patch"; + url = "https://patch-diff.githubusercontent.com/raw/Mellanox/mstflint/pull/916.patch"; + hash = "sha256-quBdmiuzwThu4MkAaT74eJDlZwIcUZMrLZa8OIcO96w="; + }) + ]; + nativeBuildInputs = [ autoconf automake |