2017-10-04 22:50:14 +01:00
|
|
|
{ fetchurl, stdenv, pkgconfig, gnome3, intltool, gobjectIntrospection, upower, cairo
|
2018-02-25 02:23:58 +00:00
|
|
|
, pango, cogl, clutter, libstartup_notification, zenity, libcanberra-gtk3
|
2017-12-17 00:22:42 +00:00
|
|
|
, libtool, makeWrapper, xkeyboard_config, libxkbfile, libxkbcommon, libXtst, libinput
|
2018-09-05 01:51:35 +01:00
|
|
|
, pipewire, libgudev, libwacom, xwayland, autoreconfHook }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 20:07:20 +00:00
|
|
|
name = "mutter-${version}";
|
2018-09-05 01:51:35 +01:00
|
|
|
version = "3.30.2";
|
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";
|
2018-09-05 01:51:35 +01:00
|
|
|
sha256 = "0qr3w480p31nbiad49213rj9rk6p9fl82a68pzznpz36p30dq96z";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript { packageName = "mutter"; attrPath = "gnome3.mutter"; };
|
|
|
|
};
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2017-11-03 22:30:56 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-x"
|
|
|
|
"--disable-static"
|
2018-08-20 16:03:55 +01:00
|
|
|
# "--enable-remote-desktop"
|
2017-11-03 22:30:56 +00:00
|
|
|
"--enable-shape"
|
|
|
|
"--enable-sm"
|
|
|
|
"--enable-startup-notification"
|
|
|
|
"--enable-xsync"
|
|
|
|
"--enable-verbose-mode"
|
|
|
|
"--with-libcanberra"
|
|
|
|
"--with-xwayland-path=${xwayland}/bin/Xwayland"
|
|
|
|
];
|
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
|
|
|
|
];
|
|
|
|
|
2017-11-03 22:30:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig intltool libtool makeWrapper ];
|
2017-11-03 21:48:50 +00:00
|
|
|
|
2017-12-17 00:22:42 +00:00
|
|
|
buildInputs = with gnome3; [
|
2018-02-25 02:23:58 +00:00
|
|
|
glib gobjectIntrospection gtk gsettings-desktop-schemas upower
|
|
|
|
gnome-desktop cairo pango cogl clutter zenity libstartup_notification
|
|
|
|
gnome3.geocode-glib libinput libgudev libwacom
|
|
|
|
libcanberra-gtk3 zenity xkeyboard_config libxkbfile
|
2017-11-14 03:50:31 +00:00
|
|
|
libxkbcommon pipewire
|
2017-12-17 00:22:42 +00:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
wrapProgram "$out/bin/mutter" \
|
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
|
|
|
'';
|
|
|
|
|
2016-10-01 22:56:33 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|