diff options
author | Alyssa Ross <hi@alyssa.is> | 2022-03-30 13:30:47 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2022-03-31 10:13:20 +0000 |
commit | f2e61678de300336b3666afd19af7565efb0c4cf (patch) | |
tree | 49f6906c9d557f7fdd58257ff85ec17fc4495f31 /nixpkgs/pkgs/development/libraries/wxwidgets | |
parent | f920d5e07c29a9aa1b77d9b88bd604cf1a1f3664 (diff) | |
parent | 00e27c78d3d2de6964096ceee8d70e5b487365e3 (diff) | |
download | nixlib-f2e61678de300336b3666afd19af7565efb0c4cf.tar nixlib-f2e61678de300336b3666afd19af7565efb0c4cf.tar.gz nixlib-f2e61678de300336b3666afd19af7565efb0c4cf.tar.bz2 nixlib-f2e61678de300336b3666afd19af7565efb0c4cf.tar.lz nixlib-f2e61678de300336b3666afd19af7565efb0c4cf.tar.xz nixlib-f2e61678de300336b3666afd19af7565efb0c4cf.tar.zst nixlib-f2e61678de300336b3666afd19af7565efb0c4cf.zip |
Merge commit '00e27c78d3d2de6964096ceee8d70e5b487365e3'
Conflicts: nixpkgs/nixos/modules/system/boot/systemd.nix nixpkgs/pkgs/applications/networking/browsers/firefox/common.nix nixpkgs/pkgs/applications/version-management/git-and-tools/cgit/common.nix nixpkgs/pkgs/applications/version-management/git-and-tools/cgit/default.nix nixpkgs/pkgs/applications/version-management/git-and-tools/cgit/pink.nix nixpkgs/pkgs/top-level/all-packages.nix
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/wxwidgets')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/wxwidgets/wxGTK31.nix | 41 |
1 files changed, 25 insertions, 16 deletions
diff --git a/nixpkgs/pkgs/development/libraries/wxwidgets/wxGTK31.nix b/nixpkgs/pkgs/development/libraries/wxwidgets/wxGTK31.nix index c262232f30d0..31d59e24fd84 100644 --- a/nixpkgs/pkgs/development/libraries/wxwidgets/wxGTK31.nix +++ b/nixpkgs/pkgs/development/libraries/wxwidgets/wxGTK31.nix @@ -17,20 +17,24 @@ , compat28 ? false , compat30 ? true , unicode ? true -, withGtk2 ? true +, withGtk2 ? (!stdenv.isDarwin) , withMesa ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms -, withWebKit ? false, webkitgtk -, darwin +, withWebKit ? stdenv.isDarwin +, webkitgtk +, setfile +, AGL +, Carbon +, Cocoa +, Kernel +, QTKit +, AVFoundation +, AVKit +, WebKit }: -assert withMesa -> libGLU != null && libGL != null; -assert withWebKit -> webkitgtk != null; - assert withGtk2 -> (!withWebKit); let - inherit (darwin.stubs) setfile; - inherit (darwin.apple_sdk.frameworks) AGL Carbon Cocoa Kernel QTKit; inherit (gnome2) GConf; inherit (gst_all_1) gst-plugins-base gstreamer; gtk = if withGtk2 then gtk2 else gtk3; @@ -57,6 +61,8 @@ stdenv.mkDerivation rec { buildInputs = [ gst-plugins-base gstreamer + ] + ++ lib.optionals (!stdenv.isDarwin) [ gtk libSM libXinerama @@ -68,19 +74,25 @@ stdenv.mkDerivation rec { 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") @@ -88,10 +100,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,9 +147,8 @@ stdenv.mkDerivation rec { database support, HTML viewing and printing, and much more. ''; license = licenses.wxWindows; - maintainers = with maintainers; [ AndersonTorres tfmoraes ]; + maintainers = with maintainers; [ tfmoraes ]; platforms = platforms.unix; - badPlatforms = platforms.darwin; # ofBorg is failing, don't know if internal }; passthru = { |