From 10eb89c9785fa59847fbcadea0152e53c5512b8b Mon Sep 17 00:00:00 2001 From: sempiternal-aurora <78790545+sempiternal-aurora@users.noreply.github.com> Date: Fri, 29 May 2026 01:22:29 +1000 Subject: [PATCH] gnat13: fix patch evaluation The patch only applies on top of the iains gcc patchset, as it modifies the abi added by that patchset. --- pkgs/development/compilers/gcc/patches/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/gcc/patches/default.nix b/pkgs/development/compilers/gcc/patches/default.nix index 048cfee9ffde..cc0b5b47e9b4 100644 --- a/pkgs/development/compilers/gcc/patches/default.nix +++ b/pkgs/development/compilers/gcc/patches/default.nix @@ -187,7 +187,9 @@ optionals noSysDirs ( .${majorVersion} or [ ] ) -++ optional (langAda && is13) ./13/gnat13-aarch64-darwin-trampoline.patch +++ optional ( + langAda && is13 && canApplyIainsDarwinPatches +) ./13/gnat13-aarch64-darwin-trampoline.patch ++ optional (targetPlatform.isWindows || targetPlatform.isCygwin) (fetchpatch { name = "libstdc-fix-compilation-in-freestanding-win32.patch";