···128++ optional (atLeast12 && stdenv.isDarwin && langAda) ./ada-cctools-as-detection-configure.patch
129130# Use absolute path in GNAT dylib install names on Darwin
131-++ optional (atLeast12 && stdenv.isDarwin && langAda) ./gnat-darwin-dylib-install-name.patch
000132133# We only apply this patch when building a native toolchain for aarch64-darwin, as it breaks building
134# a foreign one: https://github.com/iains/gcc-12-branch/issues/18
···128++ optional (atLeast12 && stdenv.isDarwin && langAda) ./ada-cctools-as-detection-configure.patch
129130# Use absolute path in GNAT dylib install names on Darwin
131+++ optionals (stdenv.isDarwin && langAda) ({
132+ "13" = [ ./gnat-darwin-dylib-install-name-13.patch ];
133+ "12" = [ ./gnat-darwin-dylib-install-name.patch ];
134+}.${majorVersion} or [])
135136# We only apply this patch when building a native toolchain for aarch64-darwin, as it breaks building
137# a foreign one: https://github.com/iains/gcc-12-branch/issues/18