Unverified Commit 6e30976c authored by Marcin Serwin's avatar Marcin Serwin Committed by GitHub
Browse files

dasm: fix `gcc-15` build failure (#484178)

parents 7c49c8e4 9bbc3317
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -15,6 +16,15 @@ stdenv.mkDerivation (finalAttrs: {
    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