Commit 84de183f authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

ior: fix `gcc-15` build failure

Without the change thye build fails on `master` as
https://hydra.nixos.org/build/327774029:

```
option.c: In function 'option_parse_token':
option.c:325:19: error: too many arguments to function 'fp'; expected 0, have 1
  325 |                   fp(arg);
      |                   ^~ ~~~
```

ZHF: #516381
parent 28cdcb8a
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