2017-10-04 23:50:14 +02:00
|
|
|
{ fetchurl, stdenv, pkgconfig, gnome3, intltool, gobjectIntrospection, upower, cairo
|
2016-09-18 21:35:23 +02:00
|
|
|
, pango, cogl, clutter, libstartup_notification, libcanberra_gtk2, zenity, libcanberra_gtk3
|
2017-06-25 18:59:23 +02:00
|
|
|
, libtool, makeWrapper, xkeyboard_config, libxkbfile, libxkbcommon, libXtst, libudev, libinput
|
2017-11-03 22:48:50 +01:00
|
|
|
, libgudev, libwacom, xwayland, autoreconfHook }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
inherit (import ./src.nix fetchurl) name src;
|
|
|
|
|
|
|
|
# fatal error: gio/gunixfdlist.h: No such file or directory
|
2017-03-21 23:49:42 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${gnome3.glib.dev}/include/gio-unix-2.0 -Wno-error=format -Wno-error=sign-compare";
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2017-11-03 23:30:56 +01: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 21:35:23 +02:00
|
|
|
|
2017-06-25 18:59:23 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
# required for pkgconfig to detect mutter-clutter
|
|
|
|
libXtst
|
|
|
|
];
|
|
|
|
|
2017-11-03 23:30:56 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig intltool libtool makeWrapper ];
|
2017-11-03 22:48:50 +01:00
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
buildInputs = with gnome3;
|
2017-11-03 23:30:56 +01:00
|
|
|
[ glib gobjectIntrospection gtk gsettings_desktop_schemas upower
|
2016-09-18 21:35:23 +02:00
|
|
|
gnome_desktop cairo pango cogl clutter zenity libstartup_notification libcanberra_gtk2
|
2017-09-18 12:33:45 +02:00
|
|
|
gnome3.geocode_glib libudev libinput libgudev libwacom
|
2017-11-03 23:30:56 +01:00
|
|
|
libcanberra_gtk3 zenity xkeyboard_config libxkbfile
|
2017-06-25 18:59:23 +02:00
|
|
|
libxkbcommon ];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2017-11-03 22:48:50 +01: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 21:35:23 +02:00
|
|
|
preFixup = ''
|
|
|
|
wrapProgram "$out/bin/mutter" \
|
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
|
|
|
'';
|
|
|
|
|
2016-10-01 23:56:33 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|