Skip to content

shell.nix: add dependency needed on Apple silicon#4399

Merged
kovidgoyal merged 1 commit intokovidgoyal:masterfrom
Luflosi:fix-shell.nix-on-macOS-arm
Dec 30, 2021
Merged

shell.nix: add dependency needed on Apple silicon#4399
kovidgoyal merged 1 commit intokovidgoyal:masterfrom
Luflosi:fix-shell.nix-on-macOS-arm

Conversation

@Luflosi
Copy link
Contributor

@Luflosi Luflosi commented Dec 28, 2021

shell.nix is missing a depencency on the UserNotifications framework on macOS with Apple silicon. Unfortunately we can't just unconditionally include this dependency because Nixpkgs uses a different macOS SDK version for macOS on an Intel processor compared to macOS on Apple silicon. The older SDK version 10.12 on Intel does not have the UserNotifications framework, which would lead to an "attribute missing" error when trying to execute nix-shell. The condition can be dropped when the macOS SDK version for Intel processors is finally updated. See NixOS/nixpkgs#101229 for progress on that.
See NixOS/nixpkgs#137512 for more context.
Closes #4352.

@kovidgoyal Please don't merge this until someone with an M1 Mac has actually tested this.
@alexghr could you please test this and confirm that it fixes the problem? I don't have an M1 Mac to test with myself.

shell.nix is missing a depencency on the UserNotifications framework on macOS with Apple silicon. Unfortunately we can't just unconditionally include this dependency because Nixpkgs uses a different macOS SDK version for macOS on an Intel processor compared to macOS on Apple silicon. The older SDK version 10.12 on Intel does not have the UserNotifications framework, which would lead to an "attribute missing" error when trying to execute `nix-shell`. The condition can be dropped when the macOS SDK version for Intel processors is finally updated. See NixOS/nixpkgs#101229 for progress on that.
See NixOS/nixpkgs#137512 for more context.
Closes kovidgoyal#4352.
@alexghr
Copy link

alexghr commented Dec 28, 2021

Can confirm it builds on a M1Max Macbook 🙌
kitty-build

@Luflosi Luflosi marked this pull request as ready for review December 29, 2021 12:27
@kovidgoyal kovidgoyal merged commit 7731a55 into kovidgoyal:master Dec 30, 2021
@Luflosi Luflosi deleted the fix-shell.nix-on-macOS-arm branch December 30, 2021 12:21
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.

Kitty fails to build through Nix on M1Max/macOS 12

3 participants