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:25 +0000
commitf8dc90b33f223eeb455b367537b652d9f85f1ab1 (patch)
tree8c8ab9de21332aeab02eab766651d050842d6ee2
parentlinux/hardened/patches/6.1: 6.1.28-hardened1 -> 6.1.29-hardened1 (diff)
downloadnixpkgs-origin/backport-232917-to-release-23.05.tar.gz
cage: fix segfault when called with -m lastorigin/backport-232917-to-release-23.05
(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) ''