nixpkgs-suyu/pkgs/desktops/gnome-3/core/mutter/3.28.nix

60 lines
1.8 KiB
Nix
Raw Normal View History

{ 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
, geocode-glib, libgudev, libwacom, xwayland, autoreconfHook }:
2018-09-17 19:12:44 +02:00
stdenv.mkDerivation rec {
pname = "mutter";
2018-09-17 19:12:44 +02:00
version = "3.28.3";
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
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;
};
}