From 1d7b08986544edcc29ffed0d5f3db9bdb2bd75ab Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Tue, 30 May 2023 21:19:47 +0800 Subject: [PATCH] cage: fix segfault when called with -m last --- 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) ''