···2929 # which can be provided by a pure Nix expression, for example in a shell.
3030 ./system-raylib.patch
3131 ];
3232+3233 postPatch = ''
3434+ # Odin is still using 'arm64-apple-macos' as the target name on
3535+ # aarch64-darwin architectures. This results in a warning whenever the
3636+ # Odin compiler runs a build. Replacing the target in the Odin compiler
3737+ # removes the nix warning when the Odin compiler is ran on aarch64-darwin.
3838+ substituteInPlace src/build_settings.cpp \
3939+ --replace-fail "arm64-apple-macosx" "arm64-apple-darwin"
4040+3341 rm -r vendor/raylib/{linux,macos,macos-arm64,wasm,windows}
34423543 patchShebangs --build build_odin.sh