3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/gnome-3/core/mutter/default.nix

64 lines
1.8 KiB
Nix
Raw Normal View History

{ fetchurl, stdenv, pkgconfig, gnome3, intltool, gobject-introspection, upower, cairo
, pango, cogl, clutter, libstartup_notification, zenity, libcanberra-gtk3
2017-12-17 00:22:42 +00:00
, libtool, makeWrapper, xkeyboard_config, libxkbfile, libxkbcommon, libXtst, libinput
2019-02-13 21:47:50 +00:00
, gsettings-desktop-schemas, glib, gtk3, gnome-desktop
, geocode-glib, pipewire, libgudev, libwacom, xwayland, autoreconfHook }:
stdenv.mkDerivation rec {
name = "mutter-${version}";
2018-09-05 01:51:35 +01:00
version = "3.30.2";
src = fetchurl {
url = "mirror://gnome/sources/mutter/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
2018-09-05 01:51:35 +01:00
sha256 = "0qr3w480p31nbiad49213rj9rk6p9fl82a68pzznpz36p30dq96z";
};
2017-11-03 22:30:56 +00:00
configureFlags = [
"--with-x"
"--disable-static"
"--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"
];
propagatedBuildInputs = [
# required for pkgconfig to detect mutter-clutter
libXtst
];
2017-11-03 22:30:56 +00:00
nativeBuildInputs = [ autoreconfHook pkgconfig intltool libtool makeWrapper ];
2019-02-13 21:47:50 +00:00
buildInputs = [
glib gobject-introspection gtk3 gsettings-desktop-schemas upower
gnome-desktop cairo pango cogl clutter zenity libstartup_notification
2019-02-13 21:47:50 +00:00
geocode-glib libinput libgudev libwacom
libcanberra-gtk3 zenity xkeyboard_config libxkbfile
libxkbcommon pipewire
2017-12-17 00:22:42 +00:00
];
preFixup = ''
wrapProgram "$out/bin/mutter" \
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
'';
enableParallelBuilding = true;
2019-02-13 21:47:50 +00:00
passthru = {
updateScript = gnome3.updateScript {
packageName = "mutter";
attrPath = "gnome3.mutter";
};
};
meta = with stdenv.lib; {
platforms = platforms.linux;
maintainers = gnome3.maintainers;
2017-12-17 00:22:42 +00:00
license = licenses.gpl2;
};
}