Unverified Commit 189362d8 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

pioasm: fix `gcc-15` build (#484529)

parents 87c9d677 8c81baf3
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  cmake,
  ninja,
}:
@@ -16,6 +17,18 @@ stdenv.mkDerivation (finalAttrs: {
    rev = finalAttrs.version;
    hash = "sha256-epO7yw6/21/ess3vMCkXvXEqAn6/4613zmH/hbaBbUw=";
  };

  patches = [
    # Pull upstream fix for gcc-15:
    #   https://github.com/raspberrypi/pico-sdk/pull/2468
    (fetchpatch {
      name = "gcc-15.patch";
      url = "https://github.com/raspberrypi/pico-sdk/commit/66540fe88e86a9f324422b7451a3b5dff4c0449f.patch";
      hash = "sha256-KwTED7/IWorgRTw1XMU2ILJhf6DAioGuVIunlC1QdNE=";
      stripLen = 2;
    })
  ];

  sourceRoot = "${finalAttrs.src.name}/tools/pioasm";

  nativeBuildInputs = [