about summary refs log tree commit diff
path: root/pkgs/applications/window-managers
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2023-05-30 21:19:47 +0800
committerPeter Hoeg <peter@hoeg.com>2023-05-31 17:23:33 +0800
commit1d7b08986544edcc29ffed0d5f3db9bdb2bd75ab (patch)
treee2fe188c9e0d396ce295dd7180b5967fa4f5bef2 /pkgs/applications/window-managers
parentaeb0d80c4519c871a75f94efa23e515e34400523 (diff)
cage: fix segfault when called with -m last
Diffstat (limited to 'pkgs/applications/window-managers')
-rw-r--r--pkgs/applications/window-managers/cage/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/window-managers/cage/default.nix b/pkgs/applications/window-managers/cage/default.nix
index c1ef0a7fd2683..fafad73527dcb 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) ''