15 # gtk-layer-shell fails to cross-compile due to a hard dependency
16 # on gobject-introspection.
17 # Disable it when cross-compiling since it's an optional dependency.
18 # This disables transparency support.
19 withGtkLayerShell ? (stdenv.buildPlatform == stdenv.hostPlatform),
22 stdenv.mkDerivation (finalAttrs: {
26 src = fetchFromGitHub {
29 rev = finalAttrs.version;
30 hash = "sha256-/tYZy56ku68ziSOhy6Dex9RGy+blkU6CN2ze76y7718=";
56 ++ lib.optionals withGtkLayerShell [
63 "--datadir=${placeholder "out"}/share"
64 "--sysconfdir=${placeholder "out"}/etc"
68 substituteInPlace style.css \
69 --replace "/usr/share/wlogout" "$out/share/wlogout"
71 substituteInPlace main.c \
72 --replace "/etc/wlogout" "$out/etc/wlogout"
76 updateScript = gitUpdater { };
80 homepage = "https://github.com/ArtsyMacaw/wlogout";
81 description = "Wayland based logout menu";
82 changelog = "https://github.com/ArtsyMacaw/wlogout/releases/tag/${finalAttrs.src.rev}";
83 license = with lib.licenses; [ mit ];
84 mainProgram = "wlogout";
85 maintainers = with lib.maintainers; [ AndersonTorres ];
86 inherit (wayland.meta) platforms;