Merge pull request #270266 from SuperSandro2000/plasma-gtk2-gone

Remove GTK2 from a typical plasma installation
This commit is contained in:
Linus Heckemann 2023-12-20 10:27:59 +00:00 committed by GitHub
commit 3dfe4476be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 16 deletions

View File

@ -1,6 +1,4 @@
{ mkDerivation, lib, extra-cmake-modules, gtk2, qtbase, sassc, python3, breeze-qt5 }:
let inherit (lib) getLib; in
{ mkDerivation, extra-cmake-modules, qtbase, sassc, python3, breeze-qt5 }:
mkDerivation {
pname = "breeze-gtk";
@ -9,9 +7,5 @@ mkDerivation {
patches = [
./patches/0001-fix-add-executable-bit.patch
];
postPatch = ''
sed -i cmake/FindGTKEngine.cmake \
-e "s|\''${KDE_INSTALL_FULL_LIBDIR}|${getLib gtk2}/lib|"
'';
cmakeFlags = [ "-DWITH_GTK3_VERSION=3.22" ];
}

View File

@ -2,7 +2,6 @@
, extra-cmake-modules
, wrapGAppsHook
, glib
, gtk2
, gtk3
, karchive
, kcmutils
@ -25,7 +24,6 @@ mkDerivation {
ki18n
kio
glib
gtk2
gtk3
karchive
kcmutils
@ -39,7 +37,6 @@ mkDerivation {
];
cmakeFlags = [
"-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include"
"-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2.out}/lib/gtk-2.0/include"
"-DGLIB_SCHEMAS_DIR=${gsettings-desktop-schemas.out}/"
];
# The gtkconfig KDED module will crash the daemon if the GSettings schemas

View File

@ -2,7 +2,7 @@
, which
# GUI support
, gtk2, gtk3, qt5
, gtk3, qt5
, pluginSearchPaths ? [
"/run/current-system/sw/lib/gwenhywfar/plugins"
@ -27,7 +27,7 @@ in stdenv.mkDerivation rec {
];
preConfigure = ''
configureFlagsArray+=("--with-guis=gtk2 gtk3 qt5")
configureFlagsArray+=("--with-guis=gtk3 qt5")
'';
postPatch = let
@ -55,7 +55,7 @@ in stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config gettext which ];
buildInputs = [ gtk2 gtk3 qt5.qtbase gnutls openssl libgcrypt libgpg-error ];
buildInputs = [ gtk3 qt5.qtbase gnutls openssl libgcrypt libgpg-error ];
dontWrapQtApps = true;

View File

@ -14,7 +14,6 @@
, glib
, gdk-pixbuf
, gobject-introspection
, gtk2
, gtk3
, gtk4
, gtk-doc
@ -103,6 +102,7 @@ stdenv.mkDerivation rec {
(lib.enableFeature (libnotify != null) "libnotify")
(lib.enableFeature withWayland "wayland")
(lib.enableFeature enableUI "ui")
"--disable-gtk2"
"--enable-gtk4"
"--enable-install-tests"
"--with-unicode-emoji-dir=${unicode-emoji}/share/unicode/emoji"
@ -144,7 +144,6 @@ stdenv.mkDerivation rec {
dconf
gdk-pixbuf
python3.pkgs.pygobject3 # for pygobject overrides
gtk2
gtk3
gtk4
isocodes

View File

@ -2,7 +2,7 @@
, libgpg-error, libassuan, qtbase, wrapQtAppsHook
, ncurses, gtk2, gcr
, withLibsecret ? true, libsecret
, enabledFlavors ? [ "curses" "tty" "gtk2" "emacs" ]
, enabledFlavors ? [ "curses" "tty" "emacs" ]
++ lib.optionals stdenv.isLinux [ "gnome3" ]
++ lib.optionals (!stdenv.isDarwin) [ "qt" ]
}: