Skip to content

Commit 40767f4

Browse files
authored
update linux dependencies (#21651)
# Objective close #21334 ## Solution update linux dependencies in docs
1 parent 8821eda commit 40767f4

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

docs/linux_dependencies.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ If you don't see your distro present in the list, feel free to add the instructi
88

99
```bash
1010
sudo apt-get install g++ pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0
11-
```
12-
13-
if using Wayland, you will also need to install
14-
15-
```bash
11+
# optional if you disabled the wayland feature
1612
sudo apt-get install libwayland-dev libxkbcommon-dev
1713
```
1814

@@ -37,11 +33,7 @@ Following advice from before WSLg's release can lead to additional conflicts.
3733

3834
```bash
3935
sudo dnf install gcc-c++ libX11-devel alsa-lib-devel systemd-devel
40-
```
41-
42-
if using Wayland, you will also need to install
43-
44-
```bash
36+
# optional if you disabled the wayland feature
4537
sudo dnf install wayland-devel libxkbcommon-devel
4638
```
4739

@@ -226,7 +218,7 @@ for more information about `devShells`.
226218
Note that this template does not add Rust to the environment because there are many ways to do it.
227219
For example, to use stable Rust from nixpkgs, you can add `cargo` and `rustc` to `nativeBuildInputs`.
228220

229-
[Here](https://github.com/NixOS/nixpkgs/blob/master/pkgs/by-name/ju/jumpy/package.nix)
221+
[nixpkgs#Jumpy](https://github.com/NixOS/nixpkgs/blob/master/pkgs/by-name/ju/jumpy/package.nix)
230222
is an example of packaging a Bevy program in nix.
231223

232224
## [OpenSUSE](https://www.opensuse.org/)
@@ -278,11 +270,7 @@ rustflags = ["-C", "target-feature=-crt-static"]
278270
```sh
279271
sudo eopkg it -c system.devel
280272
sudo eopkg it g++ libx11-devel alsa-lib-devel
281-
```
282-
283-
If using Wayland, you may also need to install
284-
285-
```sh
273+
# optional if you disabled the wayland feature
286274
sudo eopkg it wayland-devel libxkbcommon-devel
287275
```
288276

0 commit comments

Comments
 (0)