Merge pull request #75002 from worldofpeace/mutter-gnome-3-34-branch
gnome3.mutter: backport patches from gnome-3-34 branch
This commit is contained in:
commit
942567a0b6
@ -1,8 +1,35 @@
|
|||||||
{ fetchurl, fetchpatch, substituteAll, stdenv, pkgconfig, gnome3, gettext, gobject-introspection, upower, cairo
|
{ fetchurl
|
||||||
, pango, cogl, json-glib, libstartup_notification, zenity, libcanberra-gtk3
|
, fetchpatch
|
||||||
, ninja, xkeyboard_config, libxkbfile, libxkbcommon, libXtst, libinput
|
, substituteAll
|
||||||
, gsettings-desktop-schemas, glib, gtk3, gnome-desktop
|
, stdenv
|
||||||
, geocode-glib, pipewire, libgudev, libwacom, xwayland, meson
|
, pkgconfig
|
||||||
|
, gnome3
|
||||||
|
, gettext
|
||||||
|
, gobject-introspection
|
||||||
|
, upower
|
||||||
|
, cairo
|
||||||
|
, pango
|
||||||
|
, cogl
|
||||||
|
, json-glib
|
||||||
|
, libstartup_notification
|
||||||
|
, zenity
|
||||||
|
, libcanberra-gtk3
|
||||||
|
, ninja
|
||||||
|
, xkeyboard_config
|
||||||
|
, libxkbfile
|
||||||
|
, libxkbcommon
|
||||||
|
, libXtst
|
||||||
|
, libinput
|
||||||
|
, gsettings-desktop-schemas
|
||||||
|
, glib
|
||||||
|
, gtk3
|
||||||
|
, gnome-desktop
|
||||||
|
, geocode-glib
|
||||||
|
, pipewire
|
||||||
|
, libgudev
|
||||||
|
, libwacom
|
||||||
|
, xwayland
|
||||||
|
, meson
|
||||||
, gnome-settings-daemon
|
, gnome-settings-daemon
|
||||||
, xorgserver
|
, xorgserver
|
||||||
, python3
|
, python3
|
||||||
@ -25,55 +52,87 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
"-Dxwayland-path=${xwayland}/bin/Xwayland"
|
"-Degl_device=true"
|
||||||
"-Dinstalled_tests=false" # TODO: enable these
|
"-Dinstalled_tests=false" # TODO: enable these
|
||||||
"-Dwayland_eglstream=true"
|
"-Dwayland_eglstream=true"
|
||||||
"-Degl_device=true"
|
"-Dxwayland-path=${xwayland}/bin/Xwayland"
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
# required for pkgconfig to detect mutter-clutter
|
# required for pkgconfig to detect mutter-clutter
|
||||||
libXtst
|
|
||||||
json-glib
|
json-glib
|
||||||
|
libXtst
|
||||||
libcap_ng
|
libcap_ng
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
meson
|
|
||||||
pkgconfig
|
|
||||||
gettext
|
|
||||||
ninja
|
|
||||||
python3
|
|
||||||
# for cvt command
|
|
||||||
xorgserver
|
|
||||||
wrapGAppsHook
|
|
||||||
desktop-file-utils
|
desktop-file-utils
|
||||||
|
gettext
|
||||||
|
meson
|
||||||
|
ninja
|
||||||
|
pkgconfig
|
||||||
|
python3
|
||||||
|
wrapGAppsHook
|
||||||
|
xorgserver # for cvt command
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
glib gobject-introspection gtk3 gsettings-desktop-schemas upower
|
cairo
|
||||||
gnome-desktop cairo pango cogl zenity libstartup_notification
|
cogl
|
||||||
geocode-glib libinput libgudev libwacom
|
egl-wayland
|
||||||
libcanberra-gtk3 zenity xkeyboard_config libxkbfile
|
geocode-glib
|
||||||
libxkbcommon pipewire xwayland egl-wayland
|
glib
|
||||||
gnome-settings-daemon sysprof
|
gnome-desktop
|
||||||
|
gnome-settings-daemon
|
||||||
|
gobject-introspection
|
||||||
|
gsettings-desktop-schemas
|
||||||
|
gtk3
|
||||||
|
libcanberra-gtk3
|
||||||
|
libgudev
|
||||||
|
libinput
|
||||||
|
libstartup_notification
|
||||||
|
libwacom
|
||||||
|
libxkbcommon
|
||||||
|
libxkbfile
|
||||||
|
pango
|
||||||
|
pipewire
|
||||||
|
sysprof
|
||||||
|
upower
|
||||||
|
xkeyboard_config
|
||||||
|
xwayland
|
||||||
|
zenity
|
||||||
|
zenity
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
# Drop inheritable cap_sys_nice, to prevent the ambient set from leaking
|
# Fixes from gnome-3-34 branch 2019-11-29.
|
||||||
# from mutter/gnome-shell, see https://github.com/NixOS/nixpkgs/issues/71381
|
(fetchpatch {
|
||||||
./drop-inheritable.patch
|
name = "gnome-3-34-2019-11-29.patch";
|
||||||
# TODO: submit upstream
|
url = "https://github.com/GNOME/mutter/compare/3.34.1...c0e76186da5b7baf7c8804c0ffa80232a5a6bf98.patch";
|
||||||
./0001-build-use-get_pkgconfig_variable-for-sysprof-dbusdir.patch
|
excludes = [
|
||||||
(substituteAll {
|
".gitlab-ci.yml"
|
||||||
src = ./fix-paths.patch;
|
".gitlab-ci/checkout-gnome-shell.sh"
|
||||||
inherit zenity;
|
];
|
||||||
|
sha256 = "1qmxic83bd3dvg6isipqy8jaaksd7p5s3cb7h44zinq738n8d0fb";
|
||||||
})
|
})
|
||||||
|
|
||||||
# Fix build with libglvnd provided headers
|
# Fix build with libglvnd provided headers
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
url = "https://gitlab.gnome.org/GNOME/mutter/commit/a444a4c5f58ea516ad3cd9d6ddc0056c3ca9bc90.patch";
|
url = "https://gitlab.gnome.org/GNOME/mutter/commit/a444a4c5f58ea516ad3cd9d6ddc0056c3ca9bc90.patch";
|
||||||
sha256 = "0imy2j8af9477jliwdq4jc40yw1cifsjjf196gnmwxr9rkj0hbrd";
|
sha256 = "0imy2j8af9477jliwdq4jc40yw1cifsjjf196gnmwxr9rkj0hbrd";
|
||||||
})
|
})
|
||||||
|
|
||||||
|
# Drop inheritable cap_sys_nice, to prevent the ambient set from leaking
|
||||||
|
# from mutter/gnome-shell, see https://github.com/NixOS/nixpkgs/issues/71381
|
||||||
|
./drop-inheritable.patch
|
||||||
|
|
||||||
|
# TODO: submit upstream
|
||||||
|
./0001-build-use-get_pkgconfig_variable-for-sysprof-dbusdir.patch
|
||||||
|
|
||||||
|
(substituteAll {
|
||||||
|
src = ./fix-paths.patch;
|
||||||
|
inherit zenity;
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -84,18 +143,18 @@ stdenv.mkDerivation rec {
|
|||||||
${glib.dev}/bin/glib-compile-schemas "$out/share/glib-2.0/schemas"
|
${glib.dev}/bin/glib-compile-schemas "$out/share/glib-2.0/schemas"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
updateScript = gnome3.updateScript {
|
updateScript = gnome3.updateScript {
|
||||||
packageName = "mutter";
|
packageName = pname;
|
||||||
attrPath = "gnome3.mutter";
|
attrPath = "gnome3.${pname}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
platforms = platforms.linux;
|
description = "A window manager for GNOME";
|
||||||
maintainers = gnome3.maintainers;
|
homepage = "https://gitlab.gnome.org/GNOME/mutter";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
|
maintainers = gnome3.maintainers;
|
||||||
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user