Unverified Commit d29603f1 authored by Michael Daniels's avatar Michael Daniels Committed by GitHub
Browse files

ntttcp: fix build with gcc15 (#516263)

parents 1f85dff6 ac5aba83
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -15,6 +16,13 @@ stdenv.mkDerivation (finalAttrs: {
    sha256 = "sha256-6O7qSrR6EFr7k9lHQHGs/scZxJJ5DBNDxlSL5hzlRf4=";
  };

  patches = [
    (fetchpatch {
      url = "https://github.com/microsoft/ntttcp-for-linux/commit/e18597c05e3d4b439849ce0e149cb701ff5a36c2.patch";
      hash = "sha256-FOgjKseMDL1O1f+lgmmreGus4YRTZMwIJinh/7MT2Xk=";
    })
  ];

  preBuild = "cd src";

  installPhase = ''