odin: Fix arm64-apple-darwin builds (#429353)

authored by Aleksana and committed by GitHub 64c8b7ce 42ea78a2

+8
+8
pkgs/by-name/od/odin/package.nix
··· 29 # which can be provided by a pure Nix expression, for example in a shell. 30 ./system-raylib.patch 31 ]; 32 postPatch = '' 33 rm -r vendor/raylib/{linux,macos,macos-arm64,wasm,windows} 34 35 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} 42 43 patchShebangs --build build_odin.sh