-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
zed-editor: fix darwin #329653
zed-editor: fix darwin #329653
Conversation
3d7a223
to
b988f96
Compare
b988f96
to
d79ec5e
Compare
@@ -93,14 +95,23 @@ rustPlatform.buildRustPackage rec { | |||
repo = "zed"; | |||
rev = "refs/tags/v${version}"; | |||
hash = "sha256-xtSdlzj1AxhJN4aXLJ+Oy51LX4QduLwcuCfK42kthvE="; | |||
fetchSubmodules = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to have become obsolete for a while now for the Zed repository, so I disabled fetching submodules, but correct me if I'm wrong.
|
Could you provide any logs for the failing builds? As it builds fine on aarch64-darwin here. I'll try x86_64-darwin in a moment. |
Actually I naively ran the tool and didn't notice that the PR was targetting staging. |
Good job on this @niklaskorz ! |
@@ -191,6 +195,9 @@ rustPlatform.buildRustPackage rec { | |||
ZED_UPDATE_EXPLANATION = "zed has been installed using nix. Auto-updates have thus been disabled."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ZED_UPDATE_EXPLANATION = "zed has been installed using nix. Auto-updates have thus been disabled."; | |
ZED_UPDATE_EXPLANATION = "Zed has been installed using Nix. Auto-updates have thus been disabled."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated to this PR, but I agree that looks nicer, will add it as a separate commit :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, hence not an actual review :D It just caught my eye on the above screenshots
I am fine with both. On the "Nix on macOS" Matrix room I asked what the usual procedure was and @khaneliman answered:
But I don't think there is any chance at this point that the new Apple SDK and darwin minimum version hook get removed from |
Ok, let's go for it then :) |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/title-the-darwin-sdks-have-been-updated/55295/1 |
Description of changes
Fixes #320084.
Once zed-industries/zed#13343 lands, building Zed on macOS becomes much easier as we do not have to deal with building a separate Swift library that Zed depends on anymore.As zed-industries/zed#13343 seems to need much longer to implement than I originally anticipated, I updated this PR to disable livekit until this change lands, so we can already go ahead and release darwin support without it, using the same internal fallbacks the Linux version is using.
As this PR is making use of the new pattern for using macOS SDKs, it's targetting staging-next, so merging this PR will have to wait until staging-next has been merged into master (and this PR has been retargetted at master).
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.