From 12cb9a84b69d57630267a3b394af007566653105 Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 19 Dec 2024 10:28:38 +0000 Subject: [PATCH] hyprland: fix cross compilation --- pkgs/by-name/hy/hyprland/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/hy/hyprland/package.nix b/pkgs/by-name/hy/hyprland/package.nix index 594b91370cac3..a93704dc9a3e9 100644 --- a/pkgs/by-name/hy/hyprland/package.nix +++ b/pkgs/by-name/hy/hyprland/package.nix @@ -100,6 +100,10 @@ customStdenv.mkDerivation (finalAttrs: { # Remove extra @PREFIX@ to fix pkg-config paths sed -i "s#@PREFIX@/##g" hyprland.pc.in + + substituteInPlace protocols/meson.build --replace-fail \ + "wayland_scanner = dependency('wayland-scanner')" \ + "wayland_scanner = dependency('wayland-scanner', native: true)" ''; # variables used by generateVersion.sh script, and shown in `hyprctl version` @@ -172,6 +176,7 @@ customStdenv.mkDerivation (finalAttrs: { mesonBuildType = if debug then "debugoptimized" else "release"; dontStrip = debug; + strictDeps = true; mesonFlags = concatLists [ (mapAttrsToList mesonEnable {