diff options
author | Florian Brandes <florian.brandes@posteo.de> | 2023-11-24 08:46:55 +0100 |
---|---|---|
committer | Florian Brandes <florian.brandes@posteo.de> | 2023-11-25 09:37:24 +0100 |
commit | 51e8bd8a47257563ec8ec4966674ab4322aa8405 (patch) | |
tree | 3d184e6872c91eb16d21bde5f7a1cb81bfae07b2 /pkgs/development/libraries/wxwidgets | |
parent | af7fe85a842313d3379637a1a18f3020e3af2d15 (diff) |
wxGTK32: fix console crash
If console programs use the wxApp class it will
crash with GTK3 with:
"g_object_get: assertion 'G_IS_OBJECT (object)' failed"
This patch fixes it.
See https://github.com/wxWidgets/wxWidgets/issues/23981
and https://github.com/veracrypt/VeraCrypt/issues/1263
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
Diffstat (limited to 'pkgs/development/libraries/wxwidgets')
-rw-r--r-- | pkgs/development/libraries/wxwidgets/wxGTK32.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/libraries/wxwidgets/wxGTK32.nix b/pkgs/development/libraries/wxwidgets/wxGTK32.nix index bcd75412aab2..5bba7315f5cc 100644 --- a/pkgs/development/libraries/wxwidgets/wxGTK32.nix +++ b/pkgs/development/libraries/wxwidgets/wxGTK32.nix @@ -32,6 +32,7 @@ , AVFoundation , AVKit , WebKit +, fetchpatch }: let catch = fetchFromGitHub { @@ -59,6 +60,14 @@ stdenv.mkDerivation rec { hash = "sha256-YkV150sDsfBEHvHne0GF6i8Y5881NrByPkLtPAmb24E="; }; + patches = [ + (fetchpatch { + name = "avoid_gtk3_crash.patch"; + url = "https://github.com/wxWidgets/wxWidgets/commit/8ea22b5e92bf46add0b20059f6e39a938858ff97.patch"; + hash = "sha256-zAyqVTdej4F3R7vVMLiKkXqJTAHDtGYJnyjaRyDmMOM="; + }) + ]; + nativeBuildInputs = [ pkg-config ]; buildInputs = [ |