From f8dc90b33f223eeb455b367537b652d9f85f1ab1 Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Tue, 30 May 2023 21:19:47 +0800 Subject: cage: fix segfault when called with -m last (cherry picked from commit dfef1ce37e8b696ac752c9fc2dcc7ae50554c839) --- pkgs/applications/window-managers/cage/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/window-managers/cage/default.nix b/pkgs/applications/window-managers/cage/default.nix index c1ef0a7fd268..fafad73527dc 100644 --- a/pkgs/applications/window-managers/cage/default.nix +++ b/pkgs/applications/window-managers/cage/default.nix @@ -29,6 +29,10 @@ stdenv.mkDerivation rec { systemd libGL libX11 ]; + # https://github.com/cage-kiosk/cage/issues/231 + # cage will segfault on start with `-m last` without this + CFLAGS = "-O0"; + mesonFlags = [ "-Dxwayland=${lib.boolToString (xwayland != null)}" ]; postFixup = lib.optionalString (xwayland != null) '' -- cgit v1.2.3