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

Support building on macOS using Nix Shell #32285

Open
ljrk0 opened this issue May 14, 2024 · 2 comments
Open

Support building on macOS using Nix Shell #32285

ljrk0 opened this issue May 14, 2024 · 2 comments
Labels
B-feature-tracking This issue tracks a particular high-level feature C-untriaged New issues that haven't been triaged yet

Comments

@ljrk0
Copy link

ljrk0 commented May 14, 2024

I could build verso ontop of servo using my rustup.sh install on macOS AARCH64, but supplying the other dependencies neatly using Nix Shell:

$ nix-shell -p pkg-config harfbuzz libiconv cmake \
  darwin.apple_sdk.frameworks.{CoreServices,AppKit,IOBluetooth} --run 'cargo run'

Probably a similar invocation can be used to build servo using /etc/shell.nix but that's very hard-coded to NixOS AFAICT and I'm too much of a Nix noob to adjust the Nix script to just pull in the above deps + Rust.

@ljrk0 ljrk0 added B-feature-tracking This issue tracks a particular high-level feature C-untriaged New issues that haven't been triaged yet labels May 14, 2024
@mrobinson
Copy link
Member

There's really only two dependencies that you need to build Servo on macOS, cmake and pkg-config. I'm not sure if it makes sense to maintain an entire nix build for macOS for two dependencies.

@delan
Copy link
Sponsor Member

delan commented May 15, 2024

We may be able to do this with some small tweaks to the existing shell.nix. @ljrk0, can you tell me more about the problems you ran into when using our shell.nix on macOS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-feature-tracking This issue tracks a particular high-level feature C-untriaged New issues that haven't been triaged yet
Projects
None yet
Development

No branches or pull requests

3 participants