pioasm: fix gcc-15 build (#484529)

This commit is contained in:
Aleksana
2026-02-27 04:50:40 +00:00
committed by GitHub
+13
View File
@@ -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 = [