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

Is there a way to override mandatoryFeatures = [big-parallel]? #227

Open
n8henrie opened this issue Aug 10, 2024 · 0 comments
Open

Is there a way to override mandatoryFeatures = [big-parallel]? #227

n8henrie opened this issue Aug 10, 2024 · 0 comments

Comments

@n8henrie
Copy link

I'd like to be able to compile the installer ISO on my M1 Mac from aarch64-darwin.

It seems like a simple task -- nix run nixpkgs#darwin.linux-builder and then nix build --builders 'linux-builder aarch64-linux' -j0 .#packages.aarch64-linux.installer-bootstrap.

Unfortunately, the kernel requires big-parallel, which isn't enabled by default in linux-builder.

I could use nix-darwin to configure a builder that supports big-parallel, but AFAICT that then enables a launchdaemon that runs on boot and will be consuming system resources all the time, when I'd rather just run nix run nixpkgs#darwin.linux-builder manually for those rare cases of wanting to cross-compile for aarch64-linux from aarch64-darwin. I presume it would require even more effort for non-nix-darwin users.

It seems that this is probably resulting from somewhere deeper in the kernel-building tooling via requiredSystemFeatures, as I don't see it specified in this repo; is there a way it could be disabled for the asahi kernel to allow easier building from aarch64-darwin? My simple attempts at an override with overrideAttrs or overrideDerivation don't work.

Related: https://discourse.nixos.org/t/how-to-override-mandatoryfeatures-big-parallel/50378

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

No branches or pull requests

1 participant