nix: Fix dev shell on Darwin (#58032)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [ ] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [ ] Performance impact has been considered and is acceptable

Release Notes:

- N/A
This commit is contained in:
Jakub Konka 2026-05-29 10:10:32 +02:00 committed by GitHub
parent 3d9852ae04
commit a3669a29e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,30 +37,32 @@
name = "zed-editor-dev"; name = "zed-editor-dev";
inputsFrom = [ zed-editor ]; inputsFrom = [ zed-editor ];
packages = with pkgs; [ packages =
wrappedCargo # must be first, to shadow the `cargo` provided by `rustToolchain` with pkgs;
rustToolchain # cargo, rustc, and rust-toolchain.toml components included [
cargo-nextest wrappedCargo # must be first, to shadow the `cargo` provided by `rustToolchain`
cargo-hakari rustToolchain # cargo, rustc, and rust-toolchain.toml components included
cargo-machete cargo-nextest
cargo-zigbuild cargo-hakari
# TODO: package protobuf-language-server for editing zed.proto cargo-machete
# TODO: add other tools used in our scripts cargo-zigbuild
# TODO: package protobuf-language-server for editing zed.proto
# TODO: add other tools used in our scripts
# `build.nix` adds this to the `zed-editor` wrapper (see `postFixup`) # `build.nix` adds this to the `zed-editor` wrapper (see `postFixup`)
# we'll just put it on `$PATH`: # we'll just put it on `$PATH`:
nodejs_22 nodejs_22
zig zig
# A11y testing infra # A11y testing infra
gobject-introspection gobject-introspection
at-spi2-core at-spi2-core
(python3.withPackages (ps: [ (python3.withPackages (ps: [
ps.pyatspi ps.pyatspi
ps.pygobject3 ps.pygobject3
])) ]))
accerciser ]
]; ++ lib.optionals stdenv.hostPlatform.isLinux [ accerciser ];
env = env =
(removeAttrs baseEnv [ (removeAttrs baseEnv [