From 772502c35843f8e8e7610dc63e1b7384f6f5072c Mon Sep 17 00:00:00 2001 From: Rick van Schijndel Date: Tue, 23 Nov 2021 19:59:04 +0100 Subject: [PATCH] wlogout: disable gtk-layer-shell when cross-compiling Because gtk-layer-shell doesn't cross-compile properly --- pkgs/tools/wayland/wlogout/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/tools/wayland/wlogout/default.nix b/pkgs/tools/wayland/wlogout/default.nix index c7364af5d5f..26d04bd11e0 100644 --- a/pkgs/tools/wayland/wlogout/default.nix +++ b/pkgs/tools/wayland/wlogout/default.nix @@ -10,6 +10,11 @@ , wayland , wayland-protocols , gtk-layer-shell +# gtk-layer-shell fails to cross-compile due to a hard dependency +# on gobject-introspection. +# Disable it when cross-compiling since it's an optional dependency. +# This disables transparency support. +, withGtkLayerShell ? (stdenv.buildPlatform == stdenv.hostPlatform) }: stdenv.mkDerivation rec { @@ -30,6 +35,7 @@ stdenv.mkDerivation rec { libxkbcommon wayland wayland-protocols + ] ++ lib.optionals withGtkLayerShell [ gtk-layer-shell ];