fix: add hyprwayland-scanner native paths for xdg-desktop-portal-hyprland cross-compile
This commit is contained in:
@@ -123,6 +123,14 @@
|
|||||||
# Qt6Quick missing from aarch64 qtdeclarative cross-compile;
|
# Qt6Quick missing from aarch64 qtdeclarative cross-compile;
|
||||||
# skip qtutils runtime deps — Hyprland only needs it for QML UI
|
# skip qtutils runtime deps — Hyprland only needs it for QML UI
|
||||||
hyprland = prev.hyprland.override { wrapRuntimeDeps = false; };
|
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"
|
||||||
|
'';
|
||||||
|
});
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user