Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: build on non-x86 (aarch64) platforms #182

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jruffin
Copy link

@jruffin jruffin commented Sep 16, 2024

This pull request fixes a few issues that I have been encountering when using NixGL in nix-shell and as a runtime dependency on a Raspberry Pi 5 (aarch64):

  • the enable32bits parameter was always on by default, causing trouble down the line. It has now been changed to be on by default when on an x86 system and off otherwise.
  • pkgsi686Linux and driversi686Linux were always being pulled as package dependencies regardless of whether enable32bits was on or not, making the build fail since they are not available on ARM. They now only get pulled in if enable32bits is on.
  • auto.nixGLDefault would always fall back to nixGLIntel, pulling in and attempting to build the Intel display drivers without much of a need for them. Fallback has been changed to use nixGLIntel on an x86 system and to nixGLMesa elsewhere.

I hope to not have broken anything else - unfortunately I have not had the occasion to test this on an x86 PC.

default.nix Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants