From 8565c0e26de2ef8a36848c225c6d6ba176b86493 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 6 Jul 2026 23:57:27 -0700 Subject: [PATCH] Fix CI: set PKG_CONFIG_PATH for Nixery wayland pkg-config files Nixery installs wayland packages in the nix store but doesn't set PKG_CONFIG_PATH, so pkg-config can't find wayland-client.pc. Set it explicitly in the clippy (bevy_ui) and bevy build steps by scanning the nix store for pkgconfig directories. --- .tangled/workflows/check.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.tangled/workflows/check.yml b/.tangled/workflows/check.yml index 37eb9d11..e7c810ab 100644 --- a/.tangled/workflows/check.yml +++ b/.tangled/workflows/check.yml @@ -79,6 +79,7 @@ steps: - name: "clippy (bevy_ui)" command: | set -euo pipefail + export PKG_CONFIG_PATH=$(find /nix/store -maxdepth 5 -type d -name "pkgconfig" 2>/dev/null | tr '\n' ':' | sed 's/:$//') log=/tangled/workspace/clippy-bevy.log if cargo clippy --all-targets --features bevy_ui --quiet -- -D warnings > "$log" 2>&1; then echo "clippy (bevy_ui): OK" @@ -91,6 +92,7 @@ steps: - name: "bevy build" command: | set -euo pipefail + export PKG_CONFIG_PATH=$(find /nix/store -maxdepth 5 -type d -name "pkgconfig" 2>/dev/null | tr '\n' ':' | sed 's/:$//') log=/tangled/workspace/bevy-build.log if cargo build --features bevy_ui --bin misaligned-bevy --quiet > "$log" 2>&1; then echo "bevy build: OK" -- 2.51.2