about summary refs log tree commit diff
path: root/pkgs/development/libraries/wxwidgets
diff options
context:
space:
mode:
authorsuperherointj <5861043+superherointj@users.noreply.github.com>2023-01-11 12:34:49 -0300
committersuperherointj <5861043+superherointj@users.noreply.github.com>2023-01-11 12:34:53 -0300
commit93923837b5cbfe3a21c4c0043ac23f063be8e3a5 (patch)
tree200bbb3e5b22309d7770b95d05847465709f1100 /pkgs/development/libraries/wxwidgets
parent6c8644fc37b6e141cbfa6c7dc8d98846c4ff0c2e (diff)
pkgsMusl.wxGTK32: fix build
Diffstat (limited to 'pkgs/development/libraries/wxwidgets')
-rw-r--r--pkgs/development/libraries/wxwidgets/wxGTK32.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/development/libraries/wxwidgets/wxGTK32.nix b/pkgs/development/libraries/wxwidgets/wxGTK32.nix
index 1f4e41315453b..543c6fb4e0552 100644
--- a/pkgs/development/libraries/wxwidgets/wxGTK32.nix
+++ b/pkgs/development/libraries/wxwidgets/wxGTK32.nix
@@ -2,6 +2,7 @@
 , stdenv
 , expat
 , fetchFromGitHub
+, fetchpatch
 , fetchurl
 , gnome2
 , gst_all_1
@@ -61,6 +62,16 @@ stdenv.mkDerivation rec {
     hash = "sha256-k6td/8pF7ad7+gVm7L0jX79fHKwR7/qrOBpSFggyaI0=";
   };
 
+  # Workaround for pkgsMusl.wxGTK32 failing as:
+  #   "./src/unix/uilocale.cpp:650:37: error: ‘_NL_IDENTIFICATION_TERRITORY’ was not declared in this scope"
+  # On upgrade, please test building wxwidgets for pkgsMusl, and remove this patch if unnecessary.
+  patches = lib.optional stdenv.hostPlatform.isMusl [
+    (fetchpatch {
+      url = "https://github.com/wxWidgets/wxWidgets/commit/1faf1796b23b2503296d9b1e9ad39047d633f8c9.patch";
+      sha256 = "sha256-0FbfzGzzkriLD2iDcRcBXgYqjHtxFsmSlhGE5d18/bo=";
+    })
+  ];
+
   nativeBuildInputs = [ pkg-config ];
 
   buildInputs = [