diff options
author | talyz <kim.lindberger@gmail.com> | 2020-12-23 18:51:50 +0100 |
---|---|---|
committer | talyz <kim.lindberger@gmail.com> | 2020-12-23 18:51:50 +0100 |
commit | 4c68c3837a488b2a5ff522bb35bca26eb319b7fc (patch) | |
tree | d6c61b7f9abc497b2ec078eda968f5cd8d77dfd3 /pkgs/development/libraries/webkitgtk | |
parent | 179eb032dfdce82e9c0cf1c2edfd531d9ecebab6 (diff) | |
download | nixpkgs-4c68c3837a488b2a5ff522bb35bca26eb319b7fc.tar nixpkgs-4c68c3837a488b2a5ff522bb35bca26eb319b7fc.tar.gz nixpkgs-4c68c3837a488b2a5ff522bb35bca26eb319b7fc.tar.bz2 nixpkgs-4c68c3837a488b2a5ff522bb35bca26eb319b7fc.tar.lz nixpkgs-4c68c3837a488b2a5ff522bb35bca26eb319b7fc.tar.xz nixpkgs-4c68c3837a488b2a5ff522bb35bca26eb319b7fc.tar.zst nixpkgs-4c68c3837a488b2a5ff522bb35bca26eb319b7fc.zip |
webkitgtk: Add `/run/opengl-driver` to bubblewrap bind mounts
Without access to the `/run/opengl-driver` directory, webkit fails to create an EGL context, since it can't identify a suitable EGL vendor. This results in a blank window and the following error output: Cannot get default EGL display: EGL_BAD_PARAMETER Cannot create EGL context: invalid display (last error: EGL_SUCCESS)
Diffstat (limited to 'pkgs/development/libraries/webkitgtk')
-rw-r--r-- | pkgs/development/libraries/webkitgtk/fix-bubblewrap-paths.patch | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/libraries/webkitgtk/fix-bubblewrap-paths.patch b/pkgs/development/libraries/webkitgtk/fix-bubblewrap-paths.patch index 6485ba0f261..03a6b6903a8 100644 --- a/pkgs/development/libraries/webkitgtk/fix-bubblewrap-paths.patch +++ b/pkgs/development/libraries/webkitgtk/fix-bubblewrap-paths.patch @@ -10,7 +10,7 @@ diff -ru old/webkitgtk-2.26.0/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLa { SCMP_SYS(move_pages), nullptr }, { SCMP_SYS(mbind), nullptr }, { SCMP_SYS(get_mempolicy), nullptr }, -@@ -724,6 +724,10 @@ +@@ -724,6 +724,11 @@ "--ro-bind-try", "/usr/local/lib64", "/usr/local/lib64", "--ro-bind-try", PKGLIBEXECDIR, PKGLIBEXECDIR, @@ -18,6 +18,7 @@ diff -ru old/webkitgtk-2.26.0/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLa + // Nix Directories + "--ro-bind", "@storeDir@", "@storeDir@", + "--ro-bind", "/run/current-system", "/run/current-system", ++ "--ro-bind", "/run/opengl-driver", "/run/opengl-driver", }; // We would have to parse ld config files for more info. bindPathVar(sandboxArgs, "LD_LIBRARY_PATH"); |