Skip to content

Commit

Permalink
wxGTK32: fix console crash
Browse files Browse the repository at this point in the history
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 wxWidgets/wxWidgets#23981
and veracrypt/VeraCrypt#1263

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
  • Loading branch information
gador committed Nov 24, 2023
1 parent bae0615 commit c657c76
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/development/libraries/wxwidgets/wxGTK32.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
, AVFoundation
, AVKit
, WebKit
, fetchpatch
}:
let
catch = fetchFromGitHub {
Expand Down Expand Up @@ -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 = [
Expand Down

0 comments on commit c657c76

Please sign in to comment.