2019-02-23 00:43:27 -08:00
|
|
|
{ fetchurl, fetchpatch, stdenv, pkgconfig, gnome3, intltool, gobject-introspection, upower, cairo
|
2018-02-24 18:23:58 -08:00
|
|
|
, pango, cogl, clutter, libstartup_notification, zenity, libcanberra-gtk3
|
2017-12-16 16:22:42 -08:00
|
|
|
, libtool, makeWrapper, xkeyboard_config, libxkbfile, libxkbcommon, libXtst, libinput
|
2019-02-13 13:47:50 -08:00
|
|
|
, gsettings-desktop-schemas, glib, gtk3, gnome-desktop
|
|
|
|
, geocode-glib, pipewire, libgudev, libwacom, xwayland, autoreconfHook }:
|
2016-09-18 12:35:23 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 12:07:20 -08:00
|
|
|
name = "mutter-${version}";
|
2018-09-04 17:51:35 -07:00
|
|
|
version = "3.30.2";
|
2018-02-25 12:07:20 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-04 17:12:11 -07:00
|
|
|
url = "mirror://gnome/sources/mutter/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2018-09-04 17:51:35 -07:00
|
|
|
sha256 = "0qr3w480p31nbiad49213rj9rk6p9fl82a68pzznpz36p30dq96z";
|
2018-02-25 12:07:20 -08:00
|
|
|
};
|
|
|
|
|
2019-02-23 00:43:27 -08:00
|
|
|
patches = [
|
|
|
|
# https://gitlab.gnome.org/GNOME/mutter/issues/270
|
|
|
|
# Fixes direction of the desktop switching animation when using workspace
|
|
|
|
# grid extension with desktops arranged horizontally.
|
|
|
|
(fetchpatch {
|
|
|
|
url = https://gitlab.gnome.org/GNOME/mutter/commit/92cccf53dfe9e077f1d61ac4f896fd391f8cb689.patch;
|
|
|
|
sha256 = "11vmypypjss50xg7hhdbqrxvgqlxx4lnwy59089qsfl3akg4kk2i";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-11-03 15:30:56 -07:00
|
|
|
configureFlags = [
|
|
|
|
"--with-x"
|
|
|
|
"--disable-static"
|
2018-09-28 18:36:50 -07:00
|
|
|
"--enable-remote-desktop"
|
2017-11-03 15:30:56 -07:00
|
|
|
"--enable-shape"
|
|
|
|
"--enable-sm"
|
|
|
|
"--enable-startup-notification"
|
|
|
|
"--enable-xsync"
|
|
|
|
"--enable-verbose-mode"
|
|
|
|
"--with-libcanberra"
|
|
|
|
"--with-xwayland-path=${xwayland}/bin/Xwayland"
|
|
|
|
];
|
2016-09-18 12:35:23 -07:00
|
|
|
|
2017-06-25 09:59:23 -07:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
# required for pkgconfig to detect mutter-clutter
|
|
|
|
libXtst
|
|
|
|
];
|
|
|
|
|
2017-11-03 15:30:56 -07:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig intltool libtool makeWrapper ];
|
2017-11-03 14:48:50 -07:00
|
|
|
|
2019-02-13 13:47:50 -08:00
|
|
|
buildInputs = [
|
|
|
|
glib gobject-introspection gtk3 gsettings-desktop-schemas upower
|
2018-02-24 18:23:58 -08:00
|
|
|
gnome-desktop cairo pango cogl clutter zenity libstartup_notification
|
2019-02-13 13:47:50 -08:00
|
|
|
geocode-glib libinput libgudev libwacom
|
2018-02-24 18:23:58 -08:00
|
|
|
libcanberra-gtk3 zenity xkeyboard_config libxkbfile
|
2017-11-13 19:50:31 -08:00
|
|
|
libxkbcommon pipewire
|
2017-12-16 16:22:42 -08:00
|
|
|
];
|
2016-09-18 12:35:23 -07:00
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
wrapProgram "$out/bin/mutter" \
|
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
|
|
|
'';
|
|
|
|
|
2016-10-01 14:56:33 -07:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-02-13 13:47:50 -08:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "mutter";
|
|
|
|
attrPath = "gnome3.mutter";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 12:35:23 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = gnome3.maintainers;
|
2017-12-16 16:22:42 -08:00
|
|
|
license = licenses.gpl2;
|
2016-09-18 12:35:23 -07:00
|
|
|
};
|
|
|
|
}
|