lol

Merge pull request #198064 from wegank/wxgtk31-drop-gtk2

authored by

Sandro and committed by
GitHub
412b9917 ae7bfd18

+38 -47
+4 -3
pkgs/applications/audio/tenacity/default.nix
··· 2 2 , lib 3 3 , fetchFromSourcehut 4 4 , cmake 5 - , wxGTK 5 + , wxGTK31 6 + , gtk3 6 7 , pkg-config 7 8 , python3 8 9 , gettext ··· 123 124 sratom 124 125 suil 125 126 twolame 126 - wxGTK 127 - wxGTK.gtk 127 + wxGTK31 128 + gtk3 128 129 ] ++ lib.optionals stdenv.isLinux [ 129 130 at-spi2-core 130 131 dbus
+2 -2
pkgs/applications/editors/codeblocks/default.nix
··· 1 - { lib, stdenv, fetchurl, fetchpatch, pkg-config, file, zip, wxGTK31-gtk3, gtk3 1 + { lib, stdenv, fetchurl, fetchpatch, pkg-config, file, zip, wxGTK31, gtk3 2 2 , contribPlugins ? false, hunspell, gamin, boost, wrapGAppsHook 3 3 }: 4 4 ··· 15 15 }; 16 16 17 17 nativeBuildInputs = [ pkg-config file zip wrapGAppsHook ]; 18 - buildInputs = [ wxGTK31-gtk3 gtk3 ] 18 + buildInputs = [ wxGTK31 gtk3 ] 19 19 ++ optionals contribPlugins [ hunspell gamin boost ]; 20 20 enableParallelBuilding = true; 21 21 patches = [
+2 -2
pkgs/applications/gis/saga/default.nix
··· 7 7 , pkg-config 8 8 # not native 9 9 , gdal 10 - , wxGTK31-gtk3 10 + , wxGTK31 11 11 , proj 12 12 , dxflib 13 13 , curl ··· 56 56 libsvm 57 57 hdf5 58 58 gdal 59 - wxGTK31-gtk3 59 + wxGTK31 60 60 proj 61 61 libharu 62 62 opencv
+5 -5
pkgs/applications/misc/prusa-slicer/default.nix
··· 28 28 , qhull 29 29 , systemd 30 30 , tbb 31 - , wxGTK31-gtk3 31 + , wxGTK31 32 32 , xorg 33 33 , fetchpatch 34 - , wxGTK31-gtk3-override ? null 34 + , wxGTK31-override ? null 35 35 }: 36 36 let 37 - wxGTK31-gtk3-prusa = wxGTK31-gtk3.overrideAttrs (old: rec { 37 + wxGTK31-prusa = wxGTK31.overrideAttrs (old: rec { 38 38 pname = "wxwidgets-prusa3d-patched"; 39 39 version = "3.1.4"; 40 40 src = fetchFromGitHub { ··· 45 45 fetchSubmodules = true; 46 46 }; 47 47 }); 48 - wxGTK31-gtk3-override' = if wxGTK31-gtk3-override == null then wxGTK31-gtk3-prusa else wxGTK31-gtk3-override; 48 + wxGTK31-override' = if wxGTK31-override == null then wxGTK31-prusa else wxGTK31-override; 49 49 in 50 50 stdenv.mkDerivation rec { 51 51 pname = "prusa-slicer"; ··· 80 80 pcre 81 81 systemd 82 82 tbb 83 - wxGTK31-gtk3-override' 83 + wxGTK31-override' 84 84 xorg.libX11 85 85 ] ++ checkInputs; 86 86
+2 -2
pkgs/applications/misc/prusa-slicer/super-slicer.nix
··· 1 - { lib, fetchFromGitHub, fetchpatch, makeDesktopItem, prusa-slicer, wxGTK31-gtk3 }: 1 + { lib, fetchFromGitHub, fetchpatch, makeDesktopItem, prusa-slicer, wxGTK31 }: 2 2 let 3 3 appname = "SuperSlicer"; 4 4 pname = "super-slicer"; ··· 71 71 passthru = allVersions; 72 72 73 73 }; 74 - prusa-slicer' = prusa-slicer.override { wxGTK31-gtk3-override = wxGTK31-gtk3; }; 74 + prusa-slicer' = prusa-slicer.override { wxGTK31-override = wxGTK31; }; 75 75 allVersions = builtins.mapAttrs (_name: version: (prusa-slicer'.overrideAttrs (override version))) versions; 76 76 in 77 77 allVersions.stable
+2 -1
pkgs/applications/science/electronics/kicad/base.nix
··· 5 5 , libGL 6 6 , zlib 7 7 , wxGTK 8 + , gtk3 8 9 , libX11 9 10 , gettext 10 11 , glew ··· 143 144 zlib 144 145 libX11 145 146 wxGTK 146 - wxGTK.gtk 147 + gtk3 147 148 pcre 148 149 libXdmcp 149 150 gettext
+4 -3
pkgs/applications/science/electronics/kicad/default.nix
··· 2 2 , fetchFromGitLab 3 3 , gnome 4 4 , dconf 5 - , wxGTK31-gtk3 5 + , wxGTK31 6 + , gtk3 6 7 , makeWrapper 7 8 , gsettings-desktop-schemas 8 9 , hicolor-icon-theme ··· 103 104 if srcOverridep "libVersion" then srcs.libVersion 104 105 else versionsImport.${baseName}.libVersion.version; 105 106 106 - wxGTK = wxGTK31-gtk3; 107 + wxGTK = wxGTK31; 107 108 python = python3; 108 109 wxPython = python.pkgs.wxPython_4_1; 109 110 ··· 143 144 "--prefix XDG_DATA_DIRS : ${base}/share" 144 145 "--prefix XDG_DATA_DIRS : ${hicolor-icon-theme}/share" 145 146 "--prefix XDG_DATA_DIRS : ${gnome.adwaita-icon-theme}/share" 146 - "--prefix XDG_DATA_DIRS : ${wxGTK.gtk}/share/gsettings-schemas/${wxGTK.gtk.name}" 147 + "--prefix XDG_DATA_DIRS : ${gtk3}/share/gsettings-schemas/${gtk3.name}" 147 148 "--prefix XDG_DATA_DIRS : ${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}" 148 149 # wrapGAppsHook did these two as well, no idea if it matters... 149 150 "--prefix XDG_DATA_DIRS : ${cups}/share"
+7 -20
pkgs/development/libraries/wxwidgets/wxGTK31.nix
··· 4 4 , fetchurl 5 5 , gnome2 6 6 , gst_all_1 7 - , gtk2 8 7 , gtk3 9 8 , libGL 10 9 , libGLU ··· 18 17 , compat30 ? true 19 18 , unicode ? true 20 19 , withEGL ? true 21 - , withGtk2 ? (!stdenv.isDarwin) 22 20 , withMesa ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms 23 21 , withWebKit ? stdenv.isDarwin 24 22 , webkitgtk ··· 33 31 , WebKit 34 32 }: 35 33 36 - assert withGtk2 -> (!withWebKit); 37 - 38 - let 39 - gtk = if withGtk2 then gtk2 else gtk3; 40 - in 41 34 stdenv.mkDerivation rec { 42 35 pname = "wxwidgets"; 43 36 version = "3.1.5"; ··· 60 53 buildInputs = [ 61 54 gst_all_1.gst-plugins-base 62 55 gst_all_1.gstreamer 63 - ] 64 - ++ lib.optionals (!stdenv.isDarwin) [ 65 - gtk 56 + ] ++ lib.optionals (!stdenv.isDarwin) [ 57 + gtk3 66 58 libSM 67 59 libXinerama 68 60 libXtst 69 61 libXxf86vm 70 62 xorgproto 71 63 ] 72 - ++ lib.optionals withGtk2 [ 73 - gnome2.GConf 74 - ] 75 64 ++ lib.optional withMesa libGLU 76 65 ++ lib.optional (withWebKit && !stdenv.isDarwin) webkitgtk 77 66 ++ lib.optional (withWebKit && stdenv.isDarwin) WebKit ··· 102 91 ++ lib.optionals stdenv.isDarwin [ 103 92 "--with-osx_cocoa" 104 93 "--with-libiconv" 105 - ] 106 - ++ lib.optionals withWebKit [ 94 + ] ++ lib.optionals withWebKit [ 107 95 "--enable-webview" 108 96 "--enable-webviewwebkit" 109 97 ]; ··· 133 121 134 122 enableParallelBuilding = true; 135 123 124 + passthru = { 125 + inherit compat28 compat30 unicode; 126 + }; 127 + 136 128 meta = with lib; { 137 129 homepage = "https://www.wxwidgets.org/"; 138 130 description = "A Cross-Platform C++ GUI Library"; ··· 149 141 license = licenses.wxWindows; 150 142 maintainers = with maintainers; [ tfmoraes ]; 151 143 platforms = platforms.unix; 152 - }; 153 - 154 - passthru = { 155 - inherit gtk; 156 - inherit compat28 compat30 unicode; 157 144 }; 158 145 }
+4 -3
pkgs/development/python-modules/wxPython/4.1.nix
··· 13 13 , ncurses 14 14 , pango 15 15 , wxGTK 16 + , gtk3 16 17 , AGL 17 18 , AudioToolbox 18 19 , AVFoundation ··· 70 71 nativeBuildInputs = [ 71 72 which 72 73 doxygen 73 - wxGTK.gtk 74 + gtk3 74 75 pkg-config 75 76 setuptools 76 77 ] ++ lib.optionals stdenv.isLinux [ ··· 78 79 ]; 79 80 80 81 buildInputs = [ 81 - wxGTK.gtk 82 + gtk3 82 83 ncurses 83 84 ] ++ lib.optionals stdenv.isLinux [ 84 85 libXinerama ··· 120 121 preConfigure = lib.optionalString (!stdenv.isDarwin) '' 121 122 substituteInPlace wx/lib/wxcairo/wx_pycairo.py \ 122 123 --replace '_dlls = dict()' '_dlls = {k: ctypes.CDLL(v) for k, v in [ 123 - ("gdk", "${wxGTK.gtk}/lib/libgtk-x11-3.0.so"), 124 + ("gdk", "${gtk3}/lib/libgtk-x11-3.0.so"), 124 125 ("pangocairo", "${pango.out}/lib/libpangocairo-1.0.so"), 125 126 ("cairoLib = None", "cairoLib = ctypes.CDLL('${cairo}/lib/libcairo.so')"), 126 127 ("appsvc", None)
+2
pkgs/top-level/aliases.nix
··· 1550 1550 wormhole-rs = magic-wormhole-rs; # Added 2022-05-30. preserve, reason: Arch package name, main binary name 1551 1551 wmii_hg = wmii; 1552 1552 ws = throw "ws has been dropped due to the lack of maintenance from upstream since 2018"; # Added 2022-06-03 1553 + wxGTK31-gtk2 = throw "'wxGTK31-gtk2' has been removed from nixpkgs as it depends on deprecated GTK2"; # Added 2022-10-27 1554 + wxGTK31-gtk3 = throw "'wxGTK31-gtk3' has been renamed to/replaced by 'wxGTK31'"; # Added 2022-10-27 1553 1555 wxmupen64plus = throw "wxmupen64plus was removed because the upstream disappeared"; # Added 2022-01-31 1554 1556 wxcam = throw "'wxcam' has seen no updates in ten years, crashes (SIGABRT) on startup and depends on deprecated wxGTK28/GNOME2/GTK2, use 'gnome.cheese'"; # Added 2022-06-15 1555 1557
+3 -5
pkgs/top-level/all-packages.nix
··· 22819 22819 inherit (darwin.stubs) setfile; 22820 22820 inherit (darwin.apple_sdk.frameworks) AGL Carbon Cocoa Kernel QTKit AVFoundation AVKit WebKit; 22821 22821 }; 22822 - wxGTK31-gtk2 = wxGTK31.override { withGtk2 = true; }; 22823 - wxGTK31-gtk3 = wxGTK31.override { withGtk2 = false; }; 22824 22822 22825 22823 wxGTK32 = callPackage ../development/libraries/wxwidgets/wxGTK32.nix { 22826 22824 inherit (darwin.stubs) setfile; ··· 31805 31803 prusa-slicer = callPackage ../applications/misc/prusa-slicer { }; 31806 31804 31807 31805 super-slicer = callPackage ../applications/misc/prusa-slicer/super-slicer.nix { 31808 - wxGTK31-gtk3 = wxGTK31-gtk3.override { 31806 + wxGTK31 = wxGTK31.override { 31809 31807 # https://github.com/supermerill/SuperSlicer/issues/1093 31810 31808 withEGL = false; 31811 31809 }; 31812 31810 }; 31813 31811 31814 31812 super-slicer-latest = (callPackage ../applications/misc/prusa-slicer/super-slicer.nix { 31815 - wxGTK31-gtk3 = wxGTK31-gtk3.override { 31813 + wxGTK31 = wxGTK31.override { 31816 31814 # https://github.com/supermerill/SuperSlicer/issues/1093 31817 31815 withEGL = false; 31818 31816 }; ··· 32096 32094 32097 32095 temporal-cli = callPackage ../applications/networking/cluster/temporal-cli { }; 32098 32096 32099 - tenacity = callPackage ../applications/audio/tenacity { wxGTK = wxGTK31-gtk3; }; 32097 + tenacity = callPackage ../applications/audio/tenacity { }; 32100 32098 32101 32099 tendermint = callPackage ../tools/networking/tendermint { }; 32102 32100
+1 -1
pkgs/top-level/python-packages.nix
··· 11915 11915 11916 11916 wxPython_4_1 = callPackage ../development/python-modules/wxPython/4.1.nix { 11917 11917 inherit (pkgs.darwin.apple_sdk.frameworks) AGL AudioToolbox AVFoundation AVKit Carbon Cocoa CoreMedia CoreFoundation IOKit Kernel OpenGL Security WebKit; 11918 - wxGTK = pkgs.wxGTK31-gtk3.override { 11918 + wxGTK = pkgs.wxGTK31.override { 11919 11919 withWebKit = true; 11920 11920 }; 11921 11921 };