Commit 9bbc3317 authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

dasm: fix `gcc-15` build failure

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

    exp.c:617:10: error: too many arguments to function 'Opdis[Opi]'; expected 0, have 2
      617 |         (*Opdis[Opi]_unary)(Argstack[Argi], Argflags[Argi]);
          |         ~^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
parent 42672d10
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
}:

stdenv.mkDerivation rec {
@@ -15,6 +16,15 @@ stdenv.mkDerivation rec {
    sha256 = "1bna0bj503xyn5inwzzsrsgi9qg8p20by4dfk7azj91ynw56pl41";
  };

  patches = [
    # Pull upstream gcc-15 build fix.
    (fetchpatch {
      name = "gcc-15.patch";
      url = "https://github.com/dasm-assembler/dasm/commit/ed21db28a0e9693c455d6491cdc120a5936b007a.patch";
      hash = "sha256-CR5/Cs82JN63TmMRt398iWlMdt0QaLL7N2bbOiCAz9s=";
    })
  ];

  configurePhase = false;
  installPhase = ''
    mkdir -p $out/bin