mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
NixOS: fix missing library errors when running libservo tests (#42835)
on NixOS, under X11 at least, many libservo tests panic:
```
$ ./mach test-unit -p libservo test_create_webview
[...]
thread 'test_create_webview' (3589026) panicked at /home/delan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wayland-sys-0.31.8/src/client.rs:110:103:
Library libwayland-client.so could not be loaded.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```
this patch fixes that by adding `wayland` to the LD_LIBRARY_PATH in
shell.nix.
Testing: tested manually as above
Signed-off-by: delan azabani <dazabani@igalia.com>
This commit is contained in:
@@ -146,7 +146,7 @@ stdenv.mkDerivation (androidEnvironment // {
|
||||
# Provide libraries that aren’t linked against but somehow required
|
||||
LD_LIBRARY_PATH = lib.makeLibraryPath [
|
||||
# Fixes missing library errors
|
||||
xorg.libXcursor xorg.libXrandr xorg.libXi libxkbcommon
|
||||
wayland xorg.libXcursor xorg.libXrandr xorg.libXi libxkbcommon
|
||||
|
||||
# [WARN script::dom::gpu] Could not get GPUAdapter ("NotFound")
|
||||
# TLA Err: Error: Couldn't request WebGPU adapter.
|
||||
|
||||
Reference in New Issue
Block a user