diff --git a/pkgs/tools/misc/mstflint/default.nix b/pkgs/tools/misc/mstflint/default.nix index 619858cbe359..c4c99da85e18 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