2024-09-19 14:19:46 +00:00
|
|
|
|
{
|
|
|
|
|
fetchurl,
|
|
|
|
|
fetchpatch,
|
|
|
|
|
substituteAll,
|
|
|
|
|
lib,
|
|
|
|
|
stdenv,
|
|
|
|
|
meson,
|
|
|
|
|
ninja,
|
|
|
|
|
pkg-config,
|
|
|
|
|
gnome,
|
|
|
|
|
json-glib,
|
|
|
|
|
gettext,
|
|
|
|
|
libsecret,
|
|
|
|
|
python3,
|
|
|
|
|
polkit,
|
|
|
|
|
networkmanager,
|
|
|
|
|
gi-docgen,
|
|
|
|
|
at-spi2-core,
|
|
|
|
|
unzip,
|
|
|
|
|
shared-mime-info,
|
|
|
|
|
libgweather,
|
|
|
|
|
libjxl,
|
|
|
|
|
librsvg,
|
|
|
|
|
webp-pixbuf-loader,
|
|
|
|
|
geoclue2,
|
|
|
|
|
perl,
|
|
|
|
|
desktop-file-utils,
|
|
|
|
|
libpulseaudio,
|
|
|
|
|
libical,
|
|
|
|
|
gobject-introspection,
|
|
|
|
|
wrapGAppsHook4,
|
|
|
|
|
libxslt,
|
|
|
|
|
gcr_4,
|
|
|
|
|
accountsservice,
|
|
|
|
|
gdk-pixbuf,
|
|
|
|
|
gdm,
|
|
|
|
|
upower,
|
|
|
|
|
ibus,
|
|
|
|
|
libnma-gtk4,
|
|
|
|
|
gnome-desktop,
|
|
|
|
|
gsettings-desktop-schemas,
|
|
|
|
|
gnome-keyring,
|
|
|
|
|
glib,
|
|
|
|
|
gjs,
|
|
|
|
|
mutter,
|
|
|
|
|
evolution-data-server-gtk4,
|
|
|
|
|
gtk4,
|
|
|
|
|
libadwaita,
|
|
|
|
|
sassc,
|
|
|
|
|
systemd,
|
|
|
|
|
pipewire,
|
|
|
|
|
gst_all_1,
|
|
|
|
|
adwaita-icon-theme,
|
|
|
|
|
gnome-bluetooth,
|
|
|
|
|
gnome-clocks,
|
|
|
|
|
gnome-settings-daemon,
|
|
|
|
|
gnome-autoar,
|
|
|
|
|
gnome-tecla,
|
|
|
|
|
asciidoc,
|
|
|
|
|
bash-completion,
|
|
|
|
|
mesa,
|
|
|
|
|
libGL,
|
|
|
|
|
libXi,
|
|
|
|
|
libX11,
|
|
|
|
|
libxml2,
|
2020-04-24 23:36:52 +00:00
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
let
|
2020-07-18 16:06:22 +00:00
|
|
|
|
pythonEnv = python3.withPackages (ps: with ps; [ pygobject3 ]);
|
|
|
|
|
in
|
2024-01-02 11:29:13 +00:00
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
pname = "gnome-shell";
|
2024-09-19 14:19:46 +00:00
|
|
|
|
version = "46.4";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
|
outputs = [
|
|
|
|
|
"out"
|
|
|
|
|
"devdoc"
|
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2024-01-02 11:29:13 +00:00
|
|
|
|
url = "mirror://gnome/sources/gnome-shell/${lib.versions.major finalAttrs.version}/gnome-shell-${finalAttrs.version}.tar.xz";
|
2024-09-19 14:19:46 +00:00
|
|
|
|
hash = "sha256-GIRo/nLpCsSyNOnU0HB9YH/q85oT0lvTqj63XlWj4FI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
|
# Hardcode paths to various dependencies so that they can be found at runtime.
|
|
|
|
|
(substituteAll {
|
|
|
|
|
src = ./fix-paths.patch;
|
2023-08-22 20:05:09 +00:00
|
|
|
|
glib_compile_schemas = "${glib.dev}/bin/glib-compile-schemas";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
gsettings = "${glib.bin}/bin/gsettings";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
tecla = "${lib.getBin gnome-tecla}/bin/tecla";
|
2023-08-22 20:05:09 +00:00
|
|
|
|
unzip = "${lib.getBin unzip}/bin/unzip";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
# Use absolute path for libshew installation to make our patched gobject-introspection
|
|
|
|
|
# aware of the location to hardcode in the generated GIR file.
|
|
|
|
|
./shew-gir-path.patch
|
|
|
|
|
|
|
|
|
|
# Make D-Bus services wrappable.
|
|
|
|
|
./wrap-services.patch
|
|
|
|
|
|
|
|
|
|
# Fix greeter logo being too big.
|
|
|
|
|
# https://gitlab.gnome.org/GNOME/gnome-shell/issues/2591
|
2024-01-02 11:29:13 +00:00
|
|
|
|
# Reverts https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1101
|
|
|
|
|
./greeter-logo-size.patch
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
|
|
# Work around failing fingerprint auth
|
|
|
|
|
(fetchpatch {
|
2024-05-15 15:35:15 +00:00
|
|
|
|
url = "https://src.fedoraproject.org/rpms/gnome-shell/raw/dcd112d9708954187e7490564c2229d82ba5326f/f/0001-gdm-Work-around-failing-fingerprint-auth.patch";
|
|
|
|
|
hash = "sha256-mgXty5HhiwUO1UV3/eDgWtauQKM0cRFQ0U7uocST25s=";
|
|
|
|
|
})
|
2020-04-24 23:36:52 +00:00
|
|
|
|
];
|
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
meson
|
|
|
|
|
ninja
|
|
|
|
|
pkg-config
|
|
|
|
|
gettext
|
2024-05-15 15:35:15 +00:00
|
|
|
|
gi-docgen
|
2020-07-18 16:06:22 +00:00
|
|
|
|
perl
|
2024-01-02 11:29:13 +00:00
|
|
|
|
wrapGAppsHook4
|
2020-07-18 16:06:22 +00:00
|
|
|
|
sassc
|
|
|
|
|
desktop-file-utils
|
|
|
|
|
libxslt.bin
|
2022-01-13 20:06:32 +00:00
|
|
|
|
asciidoc
|
2023-08-10 07:59:29 +00:00
|
|
|
|
gobject-introspection
|
2020-07-18 16:06:22 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
|
systemd
|
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
|
gnome-keyring
|
|
|
|
|
glib
|
2022-10-21 18:38:19 +00:00
|
|
|
|
gcr_4
|
2020-07-18 16:06:22 +00:00
|
|
|
|
accountsservice
|
|
|
|
|
libsecret
|
|
|
|
|
polkit
|
|
|
|
|
gdk-pixbuf
|
|
|
|
|
librsvg
|
|
|
|
|
networkmanager
|
|
|
|
|
gjs
|
|
|
|
|
mutter
|
|
|
|
|
libpulseaudio
|
2022-10-21 18:38:19 +00:00
|
|
|
|
evolution-data-server-gtk4
|
2020-07-18 16:06:22 +00:00
|
|
|
|
libical
|
2021-05-20 23:08:51 +00:00
|
|
|
|
gtk4
|
2022-03-30 09:31:56 +00:00
|
|
|
|
libadwaita
|
2020-07-18 16:06:22 +00:00
|
|
|
|
gdm
|
|
|
|
|
geoclue2
|
|
|
|
|
adwaita-icon-theme
|
|
|
|
|
gnome-bluetooth
|
|
|
|
|
gnome-clocks # schemas needed
|
|
|
|
|
at-spi2-core
|
|
|
|
|
upower
|
|
|
|
|
ibus
|
|
|
|
|
gnome-desktop
|
|
|
|
|
gnome-settings-daemon
|
2021-04-26 19:14:03 +00:00
|
|
|
|
mesa
|
2024-07-27 06:49:29 +00:00
|
|
|
|
libGL # for egl, required by mutter-clutter
|
|
|
|
|
libXi # required by libmutter
|
|
|
|
|
libX11
|
|
|
|
|
libxml2
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
|
|
# recording
|
2020-11-12 09:05:59 +00:00
|
|
|
|
pipewire
|
2020-07-18 16:06:22 +00:00
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
|
gst_all_1.gst-plugins-good
|
|
|
|
|
|
|
|
|
|
# not declared at build time, but typelib is needed at runtime
|
|
|
|
|
libgweather
|
2023-04-12 12:48:02 +00:00
|
|
|
|
libnma-gtk4
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
|
|
# for gnome-extension tool
|
|
|
|
|
bash-completion
|
|
|
|
|
gnome-autoar
|
|
|
|
|
json-glib
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
|
|
# for tools
|
|
|
|
|
pythonEnv
|
2020-07-18 16:06:22 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
|
"-Dgtk_doc=true"
|
2023-04-12 12:48:02 +00:00
|
|
|
|
"-Dtests=false"
|
2020-07-18 16:06:22 +00:00
|
|
|
|
];
|
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
postPatch = ''
|
|
|
|
|
patchShebangs src/data-to-c.pl
|
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
|
# We can generate it ourselves.
|
|
|
|
|
rm -f man/gnome-shell.1
|
2024-01-02 11:29:13 +00:00
|
|
|
|
rm data/theme/gnome-shell-{light,dark}.css
|
2020-04-24 23:36:52 +00:00
|
|
|
|
'';
|
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
|
postInstall = ''
|
2024-04-21 15:54:59 +00:00
|
|
|
|
# Pull in WebP and JXL support for gnome-backgrounds.
|
2022-10-30 15:09:59 +00:00
|
|
|
|
# In postInstall to run before gappsWrapperArgsHook.
|
2024-09-19 14:19:46 +00:00
|
|
|
|
export GDK_PIXBUF_MODULE_FILE="${
|
|
|
|
|
gnome._gdkPixbufCacheBuilder_DO_NOT_USE {
|
|
|
|
|
extraLoaders = [
|
|
|
|
|
libjxl
|
|
|
|
|
librsvg
|
|
|
|
|
webp-pixbuf-loader
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}"
|
2022-10-30 15:09:59 +00:00
|
|
|
|
'';
|
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
preFixup = ''
|
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
|
# Until glib’s xdgmime is patched
|
|
|
|
|
# Fixes “Failed to load resource:///org/gnome/shell/theme/noise-texture.png: Unrecognized image file format”
|
|
|
|
|
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
|
|
|
|
|
)
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
|
# The services need typelibs.
|
2021-05-20 23:08:51 +00:00
|
|
|
|
for svc in org.gnome.ScreenSaver org.gnome.Shell.Extensions org.gnome.Shell.Notifications org.gnome.Shell.Screencast; do
|
2020-04-24 23:36:52 +00:00
|
|
|
|
wrapGApp $out/share/gnome-shell/$svc
|
|
|
|
|
done
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
|
|
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
|
|
|
|
moveToOutput "share/doc" "$devdoc"
|
2020-04-24 23:36:52 +00:00
|
|
|
|
'';
|
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
|
separateDebugInfo = true;
|
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
passthru = {
|
|
|
|
|
mozillaPlugin = "/lib/mozilla/plugins";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
packageName = "gnome-shell";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
description = "Core user interface for the GNOME 3 desktop";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gnome-shell";
|
2024-10-04 16:56:33 +00:00
|
|
|
|
changelog = "https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/${finalAttrs.version}/NEWS?ref_type=tags";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
|
platforms = platforms.linux;
|
|
|
|
|
};
|
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
|
})
|