## The problem
Issue WerWolv/ImHex#1807 (closed, 27 comments): ### Operating System MacOS ### What's the issue you encountered? (As this is not a "bug", I've removed the [Bug] tag from the title.) Hi there! Recently discovered imhex and was blown away. Thank you for producing such a great tool and making it free and open source.

## The fix
Building ImHex from nixpkgs on macOS hits an issue where the linked code is only correct for aarch64 and won't work on x86 Macs. The maintainer's prescribed fix: move those includes and the dependent code behind #if defined(__aarch64__) / #endif guards, and provide separate x86 implementations behind #if defined(__x86_64__). If you're packaging ImHex for darwin, check the arch guards around that class.

## Notes
Thread: https://github.com/WerWolv/ImHex/issues/1807. Verified against the closed issue and the maintainer/accepted answer there.