From 42202c8a40d404354be890d9a2756f5e5611c8cb Mon Sep 17 00:00:00 2001 From: Thierry Pouplier Date: Sun, 14 Jun 2026 10:11:44 -0400 Subject: [PATCH] fix: add hyprwayland-scanner native paths for xdg-desktop-portal-hyprland cross-compile --- flake.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/flake.nix b/flake.nix index fd20634..d0c4bad 100644 --- a/flake.nix +++ b/flake.nix @@ -123,6 +123,14 @@ # Qt6Quick missing from aarch64 qtdeclarative cross-compile; # skip qtutils runtime deps — Hyprland only needs it for QML UI hyprland = prev.hyprland.override { wrapRuntimeDeps = false; }; + # hyprwayland-scanner not found by cross pkg-config wrapper + xdg-desktop-portal-hyprland = prev.xdg-desktop-portal-hyprland.overrideAttrs (old: { + preConfigure = (old.preConfigure or "") + '' + # Point cmake to the correct hyprwayland-scanner pkgconfig + cmakeFlags="$cmakeFlags -Dhyprwayland-scanner_DIR=${prev.buildPackages.hyprwayland-scanner}/lib/cmake/hyprwayland-scanner" 2>/dev/null || true + export PKG_CONFIG_PATH="${prev.buildPackages.hyprwayland-scanner}/lib/pkgconfig:$PKG_CONFIG_PATH" + ''; + }); }) ]; }