Repository: iced-rs/iced (language: rust)

Issue:
nix shell in DEPENDENCIES.md does not work with wayland
### Is there an existing issue for this?

- [X] I have searched the existing issues.

### Is this issue related to iced?

- [X] My hardware is compatible and my graphics drivers are up-to-date.

### What happened?

1. `cargo init`
2. `cargo add iced`
3. copy `shell.nix` from `DEPENDENCIES.md`
4. `nix-shell`
5. write a minimal hello world app:
```rust
// src/main.rs

use iced::{Application, Element, Sandbox};
use iced::widget::text;

struct App;

#[derive(Debug)]
enum Message {}

impl Sandbox for App {

    type Message = Message;

    fn new() -> Self {
        Self
    }

    fn title(&self) -> String {
        "Hello World!".to_string()
    }

    fn update(&mut self, _message: Self::Message) {}

    fn view(&self) -> Element<'_, Self::Message> {
        text("Hello World!").into()
    }
}

fn main() -> iced::Result {
    <App as Application>::run(Default::default())
}
```
7. `cargo run` gives the following output:
```
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.17s
     Running `target/debug/iced-app`
thread 'main' panicked at /home/henri/.cargo/registry/src/index.crates.io-6f17d22bba15001f/iced_winit-0.12.2/src/application.rs:119:10:
Create event loop: Os(OsError { line: 80, file: "/home/henri/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/linux/wayland/event_loop/mod.rs", error: WaylandError(Connection(NoWaylandLib)) })
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```

### What is the expected behavior?

The expected behaviour is that the hello world example runs

### Version

crates.io release

### Operating System

Linux

### Do you have any log output?

_No response_


Discussion / hints:

Fix patch:
diff --git a/DEPENDENCIES.md b/DEPENDENCIES.md
index 5d738d8571..87fd8c7c78 100644
--- a/DEPENDENCIES.md
+++ b/DEPENDENCIES.md
@@ -25,6 +25,8 @@ pkgs.mkShell rec {
     xorg.libXcursor
     xorg.libXi
     xorg.libXrandr
+    wayland
+    libxkbcommon
   ];
 
   LD_LIBRARY_PATH =


Test patch: