about summary refs log tree commit diff
path: root/pkgs/development/libraries/wxwidgets
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2022-03-25 10:16:56 +0100
committerVladimír Čunát <v@cunat.cz>2022-03-25 10:16:56 +0100
commit0a8b4eddd25fd7231979eef300df0077f944ef68 (patch)
treeb4cb39a8d4293982878e6616e56982ae1dc47621 /pkgs/development/libraries/wxwidgets
parent173de4efbf4a475175beb0ae9b93a760efcf264a (diff)
parentc65d0615019209f72feb2d81b77a0d0c5a3f0f1a (diff)
downloadnixlib-0a8b4eddd25fd7231979eef300df0077f944ef68.tar
nixlib-0a8b4eddd25fd7231979eef300df0077f944ef68.tar.gz
nixlib-0a8b4eddd25fd7231979eef300df0077f944ef68.tar.bz2
nixlib-0a8b4eddd25fd7231979eef300df0077f944ef68.tar.lz
nixlib-0a8b4eddd25fd7231979eef300df0077f944ef68.tar.xz
nixlib-0a8b4eddd25fd7231979eef300df0077f944ef68.tar.zst
nixlib-0a8b4eddd25fd7231979eef300df0077f944ef68.zip
Merge branch 'master' into staging-next
Diffstat (limited to 'pkgs/development/libraries/wxwidgets')
-rw-r--r--pkgs/development/libraries/wxwidgets/wxGTK31.nix28
1 files changed, 19 insertions, 9 deletions
diff --git a/pkgs/development/libraries/wxwidgets/wxGTK31.nix b/pkgs/development/libraries/wxwidgets/wxGTK31.nix
index b84b771312fd..71deaaca3853 100644
--- a/pkgs/development/libraries/wxwidgets/wxGTK31.nix
+++ b/pkgs/development/libraries/wxwidgets/wxGTK31.nix
@@ -17,17 +17,22 @@
 , compat28 ? false
 , compat30 ? true
 , unicode ? true
-, withGtk2 ? true
+, withGtk2 ? (!stdenv.isDarwin)
 , withMesa ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms
-, withWebKit ? false, webkitgtk
+, withWebKit ? stdenv.isDarwin
+, webkitgtk
 , setfile
 , AGL
 , Carbon
 , Cocoa
 , Kernel
 , QTKit
+, AVFoundation
+, AVKit
+, WebKit
 }:
 
+assert withWebKit -> stdenv.isDarwin;
 assert withGtk2 -> (!withWebKit);
 
 let
@@ -55,6 +60,8 @@ stdenv.mkDerivation rec {
   buildInputs = [
     gst_all_1.gst-plugins-base
     gst_all_1.gstreamer
+  ]
+  ++ lib.optionals (!stdenv.isDarwin) [
     gtk
     libSM
     libXinerama
@@ -66,19 +73,25 @@ stdenv.mkDerivation rec {
     gnome2.GConf
   ]
   ++ lib.optional withMesa libGLU
-  ++ lib.optional withWebKit webkitgtk
+  ++ lib.optional (withWebKit && !stdenv.isDarwin) webkitgtk
+  ++ lib.optional (withWebKit && stdenv.isDarwin) WebKit
   ++ lib.optionals stdenv.isDarwin [
+    setfile
     Carbon
     Cocoa
     Kernel
     QTKit
-    setfile
+    AVFoundation
+    AVKit
+    WebKit
   ];
 
   propagatedBuildInputs = lib.optional stdenv.isDarwin AGL;
 
   configureFlags = [
     "--disable-precomp-headers"
+    # This is the default option, but be explicit
+    "--disable-monolithic"
     "--enable-mediactrl"
     (if compat28 then "--enable-compat28" else "--disable-compat28")
     (if compat30 then "--enable-compat30" else "--disable-compat30")
@@ -86,10 +99,8 @@ stdenv.mkDerivation rec {
   ++ lib.optional unicode "--enable-unicode"
   ++ lib.optional withMesa "--with-opengl"
   ++ lib.optionals stdenv.isDarwin [
-    # allow building on 64-bit
-    "--enable-universal-binaries"
-    "--with-cocoa"
-    "--with-macosx-version-min=10.7"
+    "--with-osx_cocoa"
+    "--with-libiconv"
   ]
   ++ lib.optionals withWebKit [
     "--enable-webview"
@@ -137,7 +148,6 @@ stdenv.mkDerivation rec {
     license = licenses.wxWindows;
     maintainers = with maintainers; [ AndersonTorres tfmoraes ];
     platforms = platforms.unix;
-    badPlatforms = platforms.darwin; # ofBorg is failing, don't know if internal
   };
 
   passthru = {