14 # gtk-layer-shell fails to cross-compile due to a hard dependency
15 # on gobject-introspection.
16 # Disable it when cross-compiling since it's an optional dependency.
17 # This disables transparency support.
18 , withGtkLayerShell ? (stdenv.buildPlatform == stdenv.hostPlatform)
21 stdenv.mkDerivation (finalAttrs: {
25 src = fetchFromGitHub {
28 rev = finalAttrs.version;
29 hash = "sha256-/tYZy56ku68ziSOhy6Dex9RGy+blkU6CN2ze76y7718=";
32 outputs = [ "out" "man" ];
50 ] ++ lib.optionals withGtkLayerShell [
57 "--datadir=${placeholder "out"}/share"
58 "--sysconfdir=${placeholder "out"}/etc"
62 substituteInPlace style.css \
63 --replace "/usr/share/wlogout" "$out/share/wlogout"
65 substituteInPlace main.c \
66 --replace "/etc/wlogout" "$out/etc/wlogout"
70 updateScript = gitUpdater { };
74 homepage = "https://github.com/ArtsyMacaw/wlogout";
75 description = "Wayland based logout menu";
76 changelog = "https://github.com/ArtsyMacaw/wlogout/releases/tag/${finalAttrs.src.rev}";
77 license = with lib.licenses; [ mit ];
78 mainProgram = "wlogout";
79 maintainers = with lib.maintainers; [ AndersonTorres ];
80 inherit (wayland.meta) platforms;