Unverified Commit 3119ce60 authored by Luna Nova's avatar Luna Nova Committed by GitHub
Browse files

ior: fix `gcc-15` build failure (#516449)

parents 5f6c9c6d 84de183f
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  mpi,
  perl,
  autoreconfHook,
@@ -19,6 +20,16 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-WsfJWHHfkiHZ+rPk6ck6mDErTXwt6Dhgm+yqOtw4Fvo=";
  };

  patches = [
    # Fix gcc-15 build:
    #   https://github.com/hpc/ior/pull/525
    (fetchpatch {
      name = "gcc-15.patch";
      url = "https://github.com/hpc/ior/commit/526c5ad06695a91a27163c520ce3305109f50bef.patch";
      hash = "sha256-HvbRMt2EcuO7kxLL9qKpozpNKEOmWuHkKQTSUhfU7/w=";
    })
  ];

  nativeBuildInputs = [
    autoreconfHook
    pkg-config