2019-03-03 18:30:10 +00:00
|
|
|
{ fetchurl, fetchpatch, stdenv, pkgconfig, gnome3, gettext, gobject-introspection, upower, cairo
|
2018-02-25 02:23:58 +00:00
|
|
|
, pango, cogl, clutter, libstartup_notification, zenity, libcanberra-gtk3
|
2019-03-03 18:30:10 +00:00
|
|
|
, ninja, xkeyboard_config, libxkbfile, libxkbcommon, libXtst, libinput
|
2019-02-13 21:47:50 +00:00
|
|
|
, gsettings-desktop-schemas, glib, gtk3, gnome-desktop
|
2019-03-03 18:30:10 +00:00
|
|
|
, geocode-glib, pipewire, libgudev, libwacom, xwayland, meson
|
|
|
|
, gnome-settings-daemon
|
|
|
|
, xorgserver
|
|
|
|
, python3
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 20:07:20 +00:00
|
|
|
name = "mutter-${version}";
|
2019-03-03 18:30:10 +00:00
|
|
|
version = "3.32.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 01:12:11 +01:00
|
|
|
url = "mirror://gnome/sources/mutter/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2019-03-03 18:30:10 +00:00
|
|
|
sha256 = "068zir5c1awmzb31gx94zjykv6c3xb1p5pch7860y3xlihha4s3n";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2019-03-03 18:30:10 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dxwayland-path=${xwayland}/bin/Xwayland"
|
2017-11-03 22:30:56 +00:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2017-06-25 17:59:23 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
# required for pkgconfig to detect mutter-clutter
|
|
|
|
libXtst
|
|
|
|
];
|
|
|
|
|
2019-03-03 18:30:10 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
pkgconfig
|
|
|
|
gettext
|
|
|
|
ninja
|
|
|
|
python3
|
|
|
|
# for cvt command
|
|
|
|
xorgserver
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2017-11-03 21:48:50 +00:00
|
|
|
|
2019-02-13 21:47:50 +00:00
|
|
|
buildInputs = [
|
|
|
|
glib gobject-introspection gtk3 gsettings-desktop-schemas upower
|
2018-02-25 02:23:58 +00:00
|
|
|
gnome-desktop cairo pango cogl clutter zenity libstartup_notification
|
2019-02-13 21:47:50 +00:00
|
|
|
geocode-glib libinput libgudev libwacom
|
2018-02-25 02:23:58 +00:00
|
|
|
libcanberra-gtk3 zenity xkeyboard_config libxkbfile
|
2019-03-03 18:30:10 +00:00
|
|
|
libxkbcommon pipewire xwayland
|
|
|
|
gnome-settings-daemon
|
2017-12-17 00:22:42 +00:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2019-03-03 18:30:10 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs src/backends/native/gen-default-modes.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
${glib.dev}/bin/glib-compile-schemas "$out/share/glib-2.0/schemas"
|
2016-09-18 20:35:23 +01:00
|
|
|
'';
|
|
|
|
|
2016-10-01 22:56:33 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-02-13 21:47:50 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "mutter";
|
|
|
|
attrPath = "gnome3.mutter";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = gnome3.maintainers;
|
2017-12-17 00:22:42 +00:00
|
|
|
license = licenses.gpl2;
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
}
|