From 43c06b91b3c7803caf45f65e54dabc641d85b9cb Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Tue, 5 Jul 2022 15:34:26 +0200 Subject: [PATCH] nyxt: disable webkit sandbox to workaround crash https://github.com/atlas-engineer/nyxt/issues/1781 https://github.com/NixOS/nixpkgs/issues/158005 --- pkgs/development/lisp-modules/lisp-packages.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/lisp-modules/lisp-packages.nix b/pkgs/development/lisp-modules/lisp-packages.nix index cb4ebba3ff49..69a4596c22f6 100644 --- a/pkgs/development/lisp-modules/lisp-packages.nix +++ b/pkgs/development/lisp-modules/lisp-packages.nix @@ -150,6 +150,17 @@ let lispPackages = rec { # Prevent nyxt from trying to obtain dependencies as submodules makeFlags = [ "NYXT_SUBMODULES=false" ] ++ x.buildFlags or []; + + patches = x.patches or [] ++ [ + # Work around crash when opening _any_ URL + # https://github.com/atlas-engineer/nyxt/issues/1781 + # https://github.com/NixOS/nixpkgs/issues/158005 + (pkgs.fetchpatch { + name = "nyxt-webkit-disable-sandbox.patch"; + url = "https://github.com/atlas-engineer/nyxt/commit/48ac0d8727f1ca1428188a1ab2c05b7be5f6cc51.patch"; + sha256 = "0570mcfn5wmjha6jmfdgglp0w5b7rpfnv3flzn77clgbknwbxi0m"; + }) + ]; }; deps = with pkgs.lispPackages; [