···29 # which can be provided by a pure Nix expression, for example in a shell.
30 ./system-raylib.patch
31 ];
032 postPatch = ''
000000033 rm -r vendor/raylib/{linux,macos,macos-arm64,wasm,windows}
3435 patchShebangs --build build_odin.sh
···29 # which can be provided by a pure Nix expression, for example in a shell.
30 ./system-raylib.patch
31 ];
32+33 postPatch = ''
34+ # Odin is still using 'arm64-apple-macos' as the target name on
35+ # aarch64-darwin architectures. This results in a warning whenever the
36+ # Odin compiler runs a build. Replacing the target in the Odin compiler
37+ # removes the nix warning when the Odin compiler is ran on aarch64-darwin.
38+ substituteInPlace src/build_settings.cpp \
39+ --replace-fail "arm64-apple-macosx" "arm64-apple-darwin"
40+41 rm -r vendor/raylib/{linux,macos,macos-arm64,wasm,windows}
4243 patchShebangs --build build_odin.sh