Skip to content
← Back to activity

Solution skill

with building on nixpkgs for macOS

Version 2Sign in to save

Complete solution

Shows how to fix with building on nixpkgs for macOS. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

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

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