2017-10-04 22:50:14 +01:00
|
|
|
{ fetchurl, stdenv, pkgconfig, gnome3, intltool, gobjectIntrospection, upower, cairo
|
2016-09-18 20:35:23 +01:00
|
|
|
, pango, cogl, clutter, libstartup_notification, libcanberra_gtk2, zenity, libcanberra_gtk3
|
2017-06-25 17:59:23 +01:00
|
|
|
, libtool, makeWrapper, xkeyboard_config, libxkbfile, libxkbcommon, libXtst, libudev, libinput
|
2017-11-03 21:48:50 +00:00
|
|
|
, libgudev, libwacom, xwayland, autoreconfHook }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
inherit (import ./src.nix fetchurl) name src;
|
|
|
|
|
|
|
|
# fatal error: gio/gunixfdlist.h: No such file or directory
|
2017-03-21 22:49:42 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${gnome3.glib.dev}/include/gio-unix-2.0 -Wno-error=format -Wno-error=sign-compare";
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2017-11-03 22:30:56 +00: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"
|
|
|
|
];
|
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
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
buildInputs = with gnome3;
|
2017-11-03 22:30:56 +00:00
|
|
|
[ glib gobjectIntrospection gtk gsettings_desktop_schemas upower
|
2016-09-18 20:35:23 +01:00
|
|
|
gnome_desktop cairo pango cogl clutter zenity libstartup_notification libcanberra_gtk2
|
2017-09-18 11:33:45 +01:00
|
|
|
gnome3.geocode_glib libudev libinput libgudev libwacom
|
2017-11-03 22:30:56 +00:00
|
|
|
libcanberra_gtk3 zenity xkeyboard_config libxkbfile
|
2017-06-25 17:59:23 +01:00
|
|
|
libxkbcommon ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2017-11-03 21:48:50 +00:00
|
|
|
patches = [
|
|
|
|
# https://bugzilla.gnome.org/show_bug.cgi?id=760670
|
|
|
|
(fetchpatch {
|
|
|
|
name = "libgudev-232.patch";
|
|
|
|
url = https://bugzilla.gnome.org/attachment.cgi?id=358904;
|
|
|
|
sha256 = "0chvd7g9f2zp3a0gdhvinsfvp2h10rwb6a8ja386vsrl93ac8pix";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|