summary refs log tree commit diff
path: root/pkgs/tools/wayland/wlogout
diff options
context:
space:
mode:
authorRick van Schijndel <rol3517@gmail.com>2021-11-23 19:59:04 +0100
committerRick van Schijndel <rol3517@gmail.com>2022-05-05 22:47:42 +0200
commit772502c35843f8e8e7610dc63e1b7384f6f5072c (patch)
treeb7f66b59d8e67ee2a220552705174a25eae4f662 /pkgs/tools/wayland/wlogout
parentc5e7eff560302b7bf047c5f2a5d4fa184c694fae (diff)
downloadnixpkgs-772502c35843f8e8e7610dc63e1b7384f6f5072c.tar
nixpkgs-772502c35843f8e8e7610dc63e1b7384f6f5072c.tar.gz
nixpkgs-772502c35843f8e8e7610dc63e1b7384f6f5072c.tar.bz2
nixpkgs-772502c35843f8e8e7610dc63e1b7384f6f5072c.tar.lz
nixpkgs-772502c35843f8e8e7610dc63e1b7384f6f5072c.tar.xz
nixpkgs-772502c35843f8e8e7610dc63e1b7384f6f5072c.tar.zst
nixpkgs-772502c35843f8e8e7610dc63e1b7384f6f5072c.zip
wlogout: disable gtk-layer-shell when cross-compiling
Because gtk-layer-shell doesn't cross-compile properly
Diffstat (limited to 'pkgs/tools/wayland/wlogout')
-rw-r--r--pkgs/tools/wayland/wlogout/default.nix6
1 files changed, 6 insertions, 0 deletions
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
   ];