Merge pull request #93045 from jtojnar/gnome-shell-cleanup

gnome3.gnome-shell: clean up

authored by Jan Tojnar and committed by GitHub 82c91e13 43259950

+149 -65
+136 -44
pkgs/desktops/gnome-3/core/gnome-shell/default.nix
··· 1 - { fetchurl, fetchpatch, substituteAll, stdenv, meson, ninja, pkgconfig, gnome3, json-glib, gettext, libsecret 2 - , python3, libsoup, polkit, clutter, networkmanager, docbook_xsl , docbook_xsl_ns, at-spi2-core 3 - , libstartup_notification, telepathy-glib, telepathy-logger, libXtst, unzip, glibcLocales, shared-mime-info 4 - , libgweather, libcanberra-gtk3, librsvg, geoclue2, perl, docbook_xml_dtd_42, desktop-file-utils 5 - , libpulseaudio, libical, gobject-introspection, wrapGAppsHook, libxslt, gcr 6 - , accountsservice, gdk-pixbuf, gdm, upower, ibus, libnma, libgnomekbd, gnome-desktop 7 - , gsettings-desktop-schemas, gnome-keyring, glib, gjs, mutter, evolution-data-server, gtk3 8 - , sassc, systemd, gst_all_1, adwaita-icon-theme, gnome-bluetooth, gnome-clocks, gnome-settings-daemon 9 - , gnome-autoar, asciidoc-full 1 + { fetchurl 2 + , fetchpatch 3 + , substituteAll 4 + , stdenv 5 + , meson 6 + , ninja 7 + , pkg-config 8 + , gnome3 9 + , json-glib 10 + , gettext 11 + , libsecret 12 + , python3 13 + , polkit 14 + , networkmanager 15 + , gtk-doc 16 + , docbook-xsl-nons 17 + , at-spi2-core 18 + , libstartup_notification 19 + , telepathy-glib 20 + , telepathy-logger 21 + , unzip 22 + , shared-mime-info 23 + , libgweather 24 + , librsvg 25 + , geoclue2 26 + , perl 27 + , docbook_xml_dtd_412 28 + , docbook_xml_dtd_42 29 + , docbook_xml_dtd_43 30 + , desktop-file-utils 31 + , libpulseaudio 32 + , libical 33 + , gobject-introspection 34 + , wrapGAppsHook 35 + , libxslt 36 + , gcr 37 + , accountsservice 38 + , gdk-pixbuf 39 + , gdm 40 + , upower 41 + , ibus 42 + , libnma 43 + , libgnomekbd 44 + , gnome-desktop 45 + , gsettings-desktop-schemas 46 + , gnome-keyring 47 + , glib 48 + , gjs 49 + , mutter 50 + , evolution-data-server 51 + , gtk3 52 + , sassc 53 + , systemd 54 + , gst_all_1 55 + , adwaita-icon-theme 56 + , gnome-bluetooth 57 + , gnome-clocks 58 + , gnome-settings-daemon 59 + , gnome-autoar 60 + , asciidoc-full 10 61 , bash-completion 11 62 }: 12 63 13 64 # http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/gnome-base/gnome-shell/gnome-shell-3.10.2.1.ebuild?revision=1.3&view=markup 14 - 15 65 let 16 - pythonEnv = python3.withPackages ( ps: with ps; [ pygobject3 ] ); 17 - 18 - in stdenv.mkDerivation rec { 66 + pythonEnv = python3.withPackages (ps: with ps; [ pygobject3 ]); 67 + in 68 + stdenv.mkDerivation rec { 19 69 pname = "gnome-shell"; 20 70 version = "3.36.4"; 71 + 72 + outputs = [ "out" "devdoc" ]; 21 73 22 74 src = fetchurl { 23 75 url = "mirror://gnome/sources/gnome-shell/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 24 76 sha256 = "1nyibrr98ijn65z9ki0k7xzcwcliwy2jqssz0l0jalpbkhnr751d"; 25 77 }; 26 78 27 - LANG = "en_US.UTF-8"; 28 - 29 - nativeBuildInputs = [ 30 - meson ninja pkgconfig gettext docbook_xsl docbook_xsl_ns docbook_xml_dtd_42 perl wrapGAppsHook glibcLocales 31 - sassc desktop-file-utils libxslt.bin python3 asciidoc-full 32 - ]; 33 - buildInputs = [ 34 - systemd 35 - gsettings-desktop-schemas gnome-keyring glib gcr json-glib accountsservice 36 - libsecret libsoup polkit gdk-pixbuf librsvg 37 - networkmanager libstartup_notification telepathy-glib 38 - libXtst gjs mutter libpulseaudio evolution-data-server 39 - libical gtk3 gdm libcanberra-gtk3 geoclue2 40 - adwaita-icon-theme gnome-bluetooth 41 - gnome-clocks # schemas needed 42 - at-spi2-core upower ibus gnome-desktop telepathy-logger gnome-settings-daemon 43 - gobject-introspection 44 - gnome-autoar 45 - 46 - # recording 47 - gst_all_1.gstreamer 48 - gst_all_1.gst-plugins-base 49 - gst_all_1.gst-plugins-good 50 - 51 - # not declared at build time, but typelib is needed at runtime 52 - libgweather libnma 53 - 54 - # for gnome-extension tool 55 - bash-completion 56 - ]; 57 - 58 79 patches = [ 59 80 # Hardcode paths to various dependencies so that they can be found at runtime. 60 81 (substituteAll { ··· 84 105 revert = true; 85 106 sha256 = "14h7ahlxgly0n3sskzq9dhxzbyb04fn80pv74vz1526396676dzl"; 86 107 }) 108 + ]; 109 + 110 + nativeBuildInputs = [ 111 + meson 112 + ninja 113 + pkg-config 114 + gettext 115 + docbook-xsl-nons 116 + docbook_xml_dtd_412 117 + docbook_xml_dtd_42 118 + docbook_xml_dtd_43 119 + gtk-doc 120 + perl 121 + wrapGAppsHook 122 + sassc 123 + desktop-file-utils 124 + libxslt.bin 125 + python3 126 + asciidoc-full 127 + ]; 128 + 129 + buildInputs = [ 130 + systemd 131 + gsettings-desktop-schemas 132 + gnome-keyring 133 + glib 134 + gcr 135 + accountsservice 136 + libsecret 137 + polkit 138 + gdk-pixbuf 139 + librsvg 140 + networkmanager 141 + libstartup_notification 142 + telepathy-glib 143 + gjs 144 + mutter 145 + libpulseaudio 146 + evolution-data-server 147 + libical 148 + gtk3 149 + gdm 150 + geoclue2 151 + adwaita-icon-theme 152 + gnome-bluetooth 153 + gnome-clocks # schemas needed 154 + at-spi2-core 155 + upower 156 + ibus 157 + gnome-desktop 158 + telepathy-logger 159 + gnome-settings-daemon 160 + gobject-introspection 161 + 162 + # recording 163 + gst_all_1.gstreamer 164 + gst_all_1.gst-plugins-base 165 + gst_all_1.gst-plugins-good 166 + 167 + # not declared at build time, but typelib is needed at runtime 168 + libgweather 169 + libnma 170 + 171 + # for gnome-extension tool 172 + bash-completion 173 + gnome-autoar 174 + json-glib 175 + ]; 176 + 177 + mesonFlags = [ 178 + "-Dgtk_doc=true" 87 179 ]; 88 180 89 181 postPatch = ''
+13 -21
pkgs/desktops/gnome-3/core/mutter/default.nix
··· 7 7 , gnome3 8 8 , gettext 9 9 , gobject-introspection 10 - , upower 11 10 , cairo 12 11 , pango 13 - , cogl 14 12 , json-glib 15 13 , libstartup_notification 16 14 , zenity 17 - , libcanberra-gtk3 15 + , libcanberra 18 16 , ninja 19 17 , xkeyboard_config 20 18 , libxkbfile ··· 25 23 , glib 26 24 , gtk3 27 25 , gnome-desktop 28 - , geocode-glib 29 26 , pipewire 30 27 , libgudev 31 28 , libwacom ··· 54 51 sha256 = "0p3jglw6f2h67kwk89qz1rz23y25lip8m2mp2xshf2vrg4a930as"; 55 52 }; 56 53 54 + patches = [ 55 + # Drop inheritable cap_sys_nice, to prevent the ambient set from leaking 56 + # from mutter/gnome-shell, see https://github.com/NixOS/nixpkgs/issues/71381 57 + ./drop-inheritable.patch 58 + 59 + (substituteAll { 60 + src = ./fix-paths.patch; 61 + inherit zenity; 62 + }) 63 + ]; 64 + 57 65 mesonFlags = [ 58 66 "-Degl_device=true" 59 67 "-Dinstalled_tests=false" # TODO: enable these ··· 86 94 87 95 buildInputs = [ 88 96 cairo 89 - cogl 90 97 egl-wayland 91 - geocode-glib 92 98 glib 93 99 gnome-desktop 94 100 gnome-settings-daemon 95 101 gobject-introspection 96 102 gsettings-desktop-schemas 97 103 gtk3 98 - libcanberra-gtk3 104 + libcanberra 99 105 libgudev 100 106 libinput 101 107 libstartup_notification ··· 105 111 pango 106 112 pipewire 107 113 sysprof 108 - upower 109 114 xkeyboard_config 110 115 xwayland 111 - zenity 112 - zenity 113 116 wayland-protocols 114 - ]; 115 - 116 - patches = [ 117 - # Drop inheritable cap_sys_nice, to prevent the ambient set from leaking 118 - # from mutter/gnome-shell, see https://github.com/NixOS/nixpkgs/issues/71381 119 - ./drop-inheritable.patch 120 - 121 - (substituteAll { 122 - src = ./fix-paths.patch; 123 - inherit zenity; 124 - }) 125 117 ]; 126 118 127 119 postPatch = ''