Skip to content

Commit

Permalink
hyprland: fix cross compilation (#366491)
Browse files Browse the repository at this point in the history
  • Loading branch information
misuzu authored Dec 19, 2024
2 parents 2941267 + 12cb9a8 commit 6f0f5f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/by-name/hy/hyprland/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -172,6 +176,7 @@ customStdenv.mkDerivation (finalAttrs: {
mesonBuildType = if debug then "debugoptimized" else "release";

dontStrip = debug;
strictDeps = true;

mesonFlags = concatLists [
(mapAttrsToList mesonEnable {
Expand Down

0 comments on commit 6f0f5f4

Please sign in to comment.