Description
Use English with clear and concise description of the bug, if you just have a question or need help, please submit to Discussions.
I am trying to run gpui-components on my NixOS. I tried using the provided flake.nix, but I encountered some problems.
$ nix develop
[void@bboy:~/Workspace/download/gpui-component]$ cargo run
error: rustc 1.87.0-beta.8 is not supported by the following packages:
ashpd@0.13.2 requires rustc 1.92
cosmic-text@0.17.2 requires rustc 1.89
home@0.5.12 requires rustc 1.88
oo7@0.6.0 requires rustc 1.92
smol_str@0.3.5 requires rustc 1.89
wgpu@28.0.0 requires rustc 1.92
wgpu@28.0.0 requires rustc 1.92
wgpu@28.0.0 requires rustc 1.92
Either upgrade rustc or select compatible dependency versions with
`cargo update <name>@<current-ver> --precise <compatible-ver>`
where `<compatible-ver>` is the latest version supporting rustc 1.87.0-beta.8
this can be fixed by a nix flake update, but there are still some problems.
$ nix develop
warning: Git tree '/home/void/Workspace/download/gpui-component' is dirty
evaluation warning: The xorg package set has been deprecated, 'xorg.libX11' has been renamed to 'libx11'
[void@bboy:~/Workspace/download/gpui-component]$ cargo run
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.44s
Running `target/debug/gpui-component-story`
thread 'main' (438442) panicked at /home/void/.cargo/git/checkouts/zed-a70e2ad075855582/e30720a/crates/gpui_linux/src/linux/wayland/client.rs:454:49:
called `Result::unwrap()` on an `Err` value: NoWaylandLib
stack backtrace:
0: __rustc::rust_begin_unwind
at /rustc/8ebd005178599edec5429b3490015b09fd0989ee/library/std/src/panicking.rs:689:5
1: core::panicking::panic_fmt
at /rustc/8ebd005178599edec5429b3490015b09fd0989ee/library/core/src/panicking.rs:80:14
2: core::result::unwrap_failed
at /rustc/8ebd005178599edec5429b3490015b09fd0989ee/library/core/src/result.rs:1867:5
3: core::result::Result<T,E>::unwrap
at /nix/store/fscwf45rqjyy9ppdp6v3v707bb3gkdh1-rust-default-1.95.0-beta.6-2026-04-02/lib/rustlib/src/rust/library/core/src/result.rs:1233:23
4: gpui_linux::linux::wayland::client::WaylandClient::new
at /home/void/.cargo/git/checkouts/zed-a70e2ad075855582/e30720a/crates/gpui_linux/src/linux/wayland/client.rs:454:49
5: gpui_linux::linux::current_platform
at /home/void/.cargo/git/checkouts/zed-a70e2ad075855582/e30720a/crates/gpui_linux/src/linux.rs:42:20
6: gpui_platform::current_platform
at /home/void/.cargo/git/checkouts/zed-a70e2ad075855582/e30720a/crates/gpui_platform/src/gpui_platform.rs:52:9
7: gpui_platform::application
at /home/void/.cargo/git/checkouts/zed-a70e2ad075855582/e30720a/crates/gpui_platform/src/gpui_platform.rs:14:38
8: gpui_component_story::main
at ./crates/story/src/main.rs:5:15
9: core::ops::function::FnOnce::call_once
at /nix/store/fscwf45rqjyy9ppdp6v3v707bb3gkdh1-rust-default-1.95.0-beta.6-2026-04-02/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Looks like dynamically linked libraries aren't configured correctly.
Environment
- GPUI:
main
- GPUI Component:
main
- Platform: NixOS 26.05 (Yarara)
Steps to Reproduce
- Go to the repo root
nix develop
cargo run
- See error
Expected
I can build and run gpui-component-story in the nix dev shell.
Actual
Rust toolchain version is incompatible + dynamic libraries are not found.
Description
Use English with clear and concise description of the bug, if you just have a question or need help, please submit to Discussions.
I am trying to run
gpui-componentson my NixOS. I tried using the providedflake.nix, but I encountered some problems.this can be fixed by a
nix flake update, but there are still some problems.Looks like dynamically linked libraries aren't configured correctly.
Environment
mainmainSteps to Reproduce
nix developcargo runExpected
I can build and run
gpui-component-storyin the nix dev shell.Actual
Rust toolchain version is incompatible + dynamic libraries are not found.