Commit 51e8bd8a authored by Florian Brandes's avatar Florian Brandes
Browse files

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: default avatarFlorian Brandes <florian.brandes@posteo.de>
parent af7fe85a
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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 = [