···2324 patches = [
25 ./darwin-remove-impure-links.patch
26+ # The default behavior is to use the statically linked Raylib libraries,
27+ # but GLFW still attempts to load Xlib at runtime, which won't normally be
28+ # available on Nix based systems. Instead, use the "system" Raylib version,
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
36 '';
37···87 mainProgram = "odin";
88 maintainers = with lib.maintainers; [
89 astavie
90+ diniamo
91 ];
92 platforms = lib.platforms.unix;
93 broken = stdenv.hostPlatform.isMusl;