Skip to content

Commit

Permalink
pantheon.mutter: 42.7 -> 43.4
Browse files Browse the repository at this point in the history
  • Loading branch information
bobby285271 committed Mar 25, 2023
1 parent a33f0da commit cf8e501
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 33 deletions.
13 changes: 0 additions & 13 deletions pkgs/desktops/gnome/core/mutter/42/fix-paths.patch

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{ fetchurl
, fetchpatch
, substituteAll
, runCommand
, lib
, fetchpatch
, stdenv
, pkg-config
, gnome
, gettext
, gobject-introspection
, cairo
, colord
, lcms2
, pango
, json-glib
, libstartup_notification
, zenity
, libcanberra
, ninja
, xvfb-run
Expand All @@ -38,6 +38,7 @@
, xorgserver
, python3
, wrapGAppsHook
, gi-docgen
, sysprof
, libsysprof-capture
, desktop-file-utils
Expand All @@ -47,15 +48,15 @@
, wayland-protocols
}:

let self = stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "mutter";
version = "42.7";
version = "43.4";

outputs = [ "out" "dev" "man" ];
outputs = [ "out" "dev" "man" "devdoc" ];

src = fetchurl {
url = "mirror://gnome/sources/mutter/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "OwmmsHDRMHwD2EMorIS0+m1jmfk4MEo4wpTxso3yipM=";
url = "mirror://gnome/sources/mutter/${lib.versions.major finalAttrs.version}/mutter-${finalAttrs.version}.tar.xz";
sha256 = "FiU2cxEaLsyW/I0tFfrdobVU0B3CioMEE11J1rqHsUA=";
};

patches = [
Expand All @@ -65,11 +66,6 @@ let self = stdenv.mkDerivation rec {
url = "https://gitlab.gnome.org/GNOME/mutter/-/commit/285a5a4d54ca83b136b787ce5ebf1d774f9499d5.patch";
sha256 = "/npUE3idMSTVlFptsDpZmGWjZ/d2gqruVlJKq4eF4xU=";
})

(substituteAll {
src = ./fix-paths.patch;
inherit zenity;
})
];

mesonFlags = [
Expand All @@ -81,6 +77,7 @@ let self = stdenv.mkDerivation rec {
# This should be auto detected, but it looks like it manages a false
# positive.
"-Dxwayland_initfd=disabled"
"-Ddocs=true"
];

propagatedBuildInputs = [
Expand All @@ -102,6 +99,7 @@ let self = stdenv.mkDerivation rec {
pkg-config
python3
wrapGAppsHook
gi-docgen
xorgserver
];

Expand All @@ -123,6 +121,8 @@ let self = stdenv.mkDerivation rec {
libxkbcommon
libxkbfile
libXdamage
colord
lcms2
pango
pipewire
sysprof # for D-Bus interfaces
Expand All @@ -140,16 +140,24 @@ let self = stdenv.mkDerivation rec {
${glib.dev}/bin/glib-compile-schemas "$out/share/glib-2.0/schemas"
'';

postFixup = ''
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
# TODO: Move this into a directory devhelp can find.
moveToOutput "share/mutter-11/doc" "$devdoc"
'';

# Install udev files into our own tree.
PKG_CONFIG_UDEV_UDEVDIR = "${placeholder "out"}/lib/udev";

separateDebugInfo = true;

passthru = {
libdir = "${self}/lib/mutter-10";
libdir = "${finalAttrs.finalPackage}/lib/mutter-11";

tests = {
libdirExists = runCommand "mutter-libdir-exists" {} ''
if [[ ! -d ${self.libdir} ]]; then
echo "passthru.libdir should contain a directory, “${self.libdir}” is not one."
if [[ ! -d ${finalAttrs.finalPackage.libdir} ]]; then
echo "passthru.libdir should contain a directory, “${finalAttrs.finalPackage.libdir}” is not one."
exit 1
fi
touch $out
Expand All @@ -164,5 +172,4 @@ let self = stdenv.mkDerivation rec {
maintainers = teams.pantheon.members;
platforms = platforms.linux;
};
};
in self
})
3 changes: 2 additions & 1 deletion pkgs/desktops/gnome/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ lib.makeScope pkgs.newScope (self: with self; {
mutter = callPackage ./core/mutter { };

# Needed for elementary's gala, wingpanel and greeter until support for higher versions is provided
mutter42 = callPackage ./core/mutter/42 { };
mutter43 = callPackage ./core/mutter/43 { };

nautilus = callPackage ./core/nautilus { };

Expand Down Expand Up @@ -272,5 +272,6 @@ lib.makeScope pkgs.newScope (self: with self; {
gnome-devel-docs = throw "The ‘gnome.gnome-devel-docs’ package was removed as it is outdated and no longer relevant."; # added 2022-10-26

mutter338 = throw "The ‘gnome.mutter338’ package was removed as it is no longer needed by Pantheon."; # added 2023-02-22
mutter42 = throw "The ‘gnome.mutter42’ package was removed as it is no longer needed by Pantheon."; # added 2023-03-23
gnome-settings-daemon338 = throw "The ‘gnome.gnome-settings-daemon338’ package was removed as it is no longer needed by Pantheon."; # added 2023-02-22
}
2 changes: 1 addition & 1 deletion pkgs/desktops/pantheon/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ lib.makeScope pkgs.newScope (self: with self; {

maintainers = lib.teams.pantheon.members;

mutter = pkgs.gnome.mutter42;
mutter = pkgs.gnome.mutter43;

# Using 42 to match Mutter used in Pantheon
gnome-settings-daemon = pkgs.gnome.gnome-settings-daemon42;
Expand Down

0 comments on commit cf8e501

Please sign in to comment.