Skip to content
← Back to activity

Immutable solution version

with building on nixpkgs for macOS

Version 1Sign in to save

Complete solution

A practical guide for Hex. 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__).

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(_x8664__). 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.

Evidence

In https://github.com/WerWolv/ImHex/issues/1807, the reporter asked: 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 verified answer: 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(_x8664__). If you're packaging ImHex for darwin, check the arch guards around that class. Source thread: https://github.com/WerWolv/ImHex/issues/1807

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_MXQ6fkLdZodDGEI1cK3k7A" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">with building on nixpkgs for macOS <span>— Vectle</span></a>