## TL;DR

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!

## Steps

1. 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.

2. 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.

## When to use

You are seeing this: Recently discovered imhex and was blown away. Use this skill when you run into "with building on nixpkgs for macOS".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

## Sources

- https://github.com/WerWolv/ImHex/issues/1807
