2019-04-01 01:23:08 +02:00
|
|
|
{ fetchFromGitLab, stdenv, fetchpatch, pkgconfig, gnome3, intltool, gobject-introspection, upower, cairo
|
2019-02-13 22:47:50 +01:00
|
|
|
, glib, gtk3, pango, cogl, clutter, libstartup_notification, zenity, libcanberra-gtk3
|
|
|
|
, gsettings-desktop-schemas, gnome-desktop
|
2018-09-17 19:12:44 +02:00
|
|
|
, libtool, makeWrapper, 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";
|
2018-09-17 19:12:44 +02:00
|
|
|
version = "3.28.3";
|
|
|
|
|
2019-04-01 01:23:08 +02:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "GNOME";
|
|
|
|
repo = pname;
|
|
|
|
rev = "4af8d9d4752a94612a98d619e65828f0070a7b0e"; # HEAD of https://gitlab.gnome.org/GNOME/mutter/tree/gnome-3-28
|
|
|
|
sha256 = "1rmc1bf80yq776xhygi1jzgia1y44j2mr2n94vlxgzqc0whamx2v";
|
2018-09-17 19:12:44 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-x"
|
|
|
|
"--disable-static"
|
|
|
|
"--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
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig intltool libtool makeWrapper ];
|
|
|
|
|
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
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
wrapProgram "$out/bin/mutter" \
|
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|