From 7a546f3018ba2f3764a13c032e6fac98ce408afd Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 18 Mar 2025 15:42:39 +0000 Subject: [PATCH] gtk4-layer-shell: fix cross compilation devdoc requires emulator to build when cross compiling --- pkgs/by-name/gt/gtk4-layer-shell/package.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/gt/gtk4-layer-shell/package.nix b/pkgs/by-name/gt/gtk4-layer-shell/package.nix index 237d40730aaa..8a7bca4cf7ae 100644 --- a/pkgs/by-name/gt/gtk4-layer-shell/package.nix +++ b/pkgs/by-name/gt/gtk4-layer-shell/package.nix @@ -3,6 +3,7 @@ stdenv, fetchFromGitHub, meson, + mesonEmulatorHook, ninja, pkg-config, gtk-doc, @@ -50,7 +51,7 @@ stdenv.mkDerivation (finalAttrs: { docbook_xml_dtd_43 vala wayland-scanner - ]; + ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ mesonEmulatorHook ]; buildInputs = [ gtk4