summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2023-05-30 21:19:47 +0800
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2023-05-31 09:24:08 +0000
commit39b9172bb91fdcf3686f28fdc7abe9cf30ff6f9e (patch)
treea891e49324773b4de5e01cfda5d3279643d5431b
parentschildichat-desktop: use electron 24.x (#232464) (diff)
downloadnixpkgs-origin/backport-232917-to-release-22.11.tar.gz
cage: fix segfault when called with -m lastorigin/backport-232917-to-release-22.11
(cherry picked from commit dfef1ce37e8b696ac752c9fc2dcc7ae50554c839)
-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 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) ''