2019-04-01 01:38:51 +02:00
|
|
|
{ fetchFromGitLab, stdenv, substituteAll, pkgconfig, gnome3, intltool, gobject-introspection, upower, cairo
|
2019-04-25 15:40:32 +02:00
|
|
|
, glib, gtk3, pango, cogl, clutter, libstartup_notification, zenity, libcanberra-gtk3, fetchpatch
|
2019-04-03 23:02:38 +02:00
|
|
|
, gsettings-desktop-schemas, gnome-desktop, wrapGAppsHook
|
2019-06-16 21:59:06 +02:00
|
|
|
, libtool, xkeyboard_config, libxkbfile, libxkbcommon, libXtst, libinput
|
2019-04-01 01:23:08 +02:00
|
|
|
, geocode-glib, libgudev, libwacom, xwayland, autoreconfHook }:
|
2018-09-17 19:12:44 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-01 01:23:08 +02:00
|
|
|
pname = "mutter";
|
2019-05-17 05:04:17 +02:00
|
|
|
version = "3.28.4";
|
2018-09-17 19:12:44 +02:00
|
|
|
|
2019-04-01 01:23:08 +02:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "GNOME";
|
|
|
|
repo = pname;
|
2019-09-03 15:34:55 +02:00
|
|
|
rev = "74e3126b77eb5f27c0ae3f53b0aff2d2eebc15af"; # patches of tip from gnome-3-28 branch
|
|
|
|
sha256 = "0gw1n1w3i040w5mv30kkg7g8a59ymjlc5yaklip0ngg8xv76g0zi";
|
2018-09-17 19:12:44 +02:00
|
|
|
};
|
|
|
|
|
2019-04-01 01:38:51 +02:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths-328.patch;
|
|
|
|
inherit zenity;
|
|
|
|
})
|
2019-04-25 15:40:32 +02:00
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1700337
|
|
|
|
# https://gitlab.gnome.org/GNOME/mutter/merge_requests/133
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://src.fedoraproject.org/rpms/mutter328/raw/fff28bebda02111b4c534952465ff967ba7efced/f/0070-clutter-Add-API-to-retrieve-the-physical-size-of-abs.patch";
|
|
|
|
sha256 = "11xg0clrqwvssy2r6hv4iya8g87z2v5f47fimd2b4hha6ki3g1is";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://src.fedoraproject.org/rpms/mutter328/raw/fff28bebda02111b4c534952465ff967ba7efced/f/0071-backends-Add-MetaInputMapper.patch";
|
|
|
|
sha256 = "1kcp42hg8sy1q21w5586gdgmi95nf36829kkfswbah61h6bkb518";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://src.fedoraproject.org/rpms/mutter328/raw/fff28bebda02111b4c534952465ff967ba7efced/f/0072-backends-Delegate-on-MetaInputMapper-for-unmapped-di.patch";
|
|
|
|
sha256 = "0zf4yxhq5s3dnzmn15mx4yb978g27ij4vmq055my9p7xgh6h9ga8";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://src.fedoraproject.org/rpms/mutter328/raw/fff28bebda02111b4c534952465ff967ba7efced/f/0073-backends-Add-MetaInputMapper-method-to-lookup-device.patch";
|
|
|
|
sha256 = "0dnb2hqx5in6x9ar6wnr1hy3bg2wdcl3wbdx4jn66c7bi7s1k5zd";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://src.fedoraproject.org/rpms/mutter328/raw/fff28bebda02111b4c534952465ff967ba7efced/f/0074-backends-Turn-builtin-touchscreen-on-off-together-wi.patch";
|
|
|
|
sha256 = "17fvs7j5ws4sz6fkch93gjlik0nm4z426w4n348gyw5llh0r76pg";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://src.fedoraproject.org/rpms/mutter328/raw/fff28bebda02111b4c534952465ff967ba7efced/f/0075-backends-Update-to-new-output-setting-for-tablets-to.patch";
|
|
|
|
sha256 = "141p3an83s042f67fw2fqmr79i5g634ndrbpd8cs47fd4wwiwpj5";
|
|
|
|
})
|
2019-07-22 10:23:23 +02:00
|
|
|
# https://gitlab.gnome.org/GNOME/mutter/merge_requests/670
|
|
|
|
# Needed for gala redorder workspace
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/elementary/os-patches/commit/d636a44885c5be662997f8e19f7dcd26670b3219.patch";
|
|
|
|
sha256 = "12pbxk6f39a09jxjam5a5hxl4whp3cifzpck2m7fpp0n98nc63qh";
|
|
|
|
})
|
2019-09-16 02:19:24 +02:00
|
|
|
# See patch commit message
|
|
|
|
./0001-Revert-ClutterActor-Preserve-valid-paint-volumes-til.patch
|
2019-11-07 17:35:46 +01:00
|
|
|
# Fix build with libglvnd provided headers
|
|
|
|
./libglvnd-328.patch
|
2019-04-01 01:38:51 +02:00
|
|
|
];
|
|
|
|
|
2018-09-17 19:12:44 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--with-x"
|
|
|
|
"--enable-shape"
|
|
|
|
"--enable-sm"
|
|
|
|
"--enable-startup-notification"
|
|
|
|
"--enable-xsync"
|
|
|
|
"--enable-verbose-mode"
|
|
|
|
"--with-libcanberra"
|
|
|
|
"--with-xwayland-path=${xwayland}/bin/Xwayland"
|
|
|
|
"--enable-compile-warnings=maximum"
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
# required for pkgconfig to detect mutter-clutter
|
|
|
|
libXtst
|
|
|
|
];
|
|
|
|
|
2019-04-03 23:02:38 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig intltool libtool wrapGAppsHook ];
|
2018-09-17 19:12:44 +02:00
|
|
|
|
2019-02-13 22:47:50 +01:00
|
|
|
buildInputs = [
|
|
|
|
glib gobject-introspection gtk3 gsettings-desktop-schemas upower
|
2018-09-17 19:12:44 +02:00
|
|
|
gnome-desktop cairo pango cogl clutter zenity libstartup_notification
|
2019-02-13 22:47:50 +01:00
|
|
|
geocode-glib libinput libgudev libwacom
|
2018-09-17 19:12:44 +02:00
|
|
|
libcanberra-gtk3 zenity xkeyboard_config libxkbfile
|
2019-04-01 01:23:08 +02:00
|
|
|
libxkbcommon
|
2018-09-17 19:12:44 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|