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