itk: patch to unbreak with GCC13

This commit is contained in:
Ben Darwin 2024-01-16 21:53:44 -05:00 committed by Yaya
parent 5350f74b81
commit ed36e5cc8c

View file

@ -1,6 +1,6 @@
{ version, rev, sourceSha256 }:
{ lib, stdenv, fetchFromGitHub, cmake
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake
, expat, fftw, gdcm, hdf5-cpp, libjpeg, libminc, libtiff, libpng
, libX11, libuuid, xz, vtk, zlib, Cocoa }:
@ -38,6 +38,14 @@ stdenv.mkDerivation {
sha256 = sourceSha256;
};
patches = [
(fetchpatch {
name = "fix-gcc13-build";
url = "https://github.com/InsightSoftwareConsortium/ITK/commit/9a719a0d2f5f489eeb9351b0ef913c3693147a4f.patch";
hash = "sha256-dDyqYOzo91afR8W7k2N64X6l7t6Ws1C9iuRkWHUe0fg=";
})
];
postPatch = ''
substituteInPlace CMake/ITKSetStandardCompilerFlags.cmake \
--replace "-march=corei7" "" \