nixpkgs/pkgs/desktops/gnome-3/core/mutter/default.nix

81 lines
1.9 KiB
Nix
Raw Normal View History

2019-03-31 23:31:17 +00:00
{ fetchurl, substituteAll, stdenv, pkgconfig, gnome3, gettext, gobject-introspection, upower, cairo
, pango, cogl, clutter, libstartup_notification, zenity, libcanberra-gtk3
, ninja, 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, meson
, gnome-settings-daemon
, xorgserver
, python3
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
2019-04-18 08:29:48 +00:00
pname = "mutter";
version = "3.32.2";
src = fetchurl {
2019-04-18 08:29:48 +00:00
url = "mirror://gnome/sources/mutter/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "1h577i2ap7dpfy1jg101jvc6nzccc0csgvd55ahydlr8f94frcva";
};
mesonFlags = [
"-Dxwayland-path=${xwayland}/bin/Xwayland"
2019-07-04 12:32:25 +00:00
"-Dinstalled_tests=false" # TODO: enable these
2017-11-03 22:30:56 +00:00
];
propagatedBuildInputs = [
# required for pkgconfig to detect mutter-clutter
libXtst
];
nativeBuildInputs = [
meson
pkgconfig
gettext
ninja
python3
# for cvt command
xorgserver
wrapGAppsHook
];
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 xwayland
gnome-settings-daemon
2017-12-17 00:22:42 +00:00
];
2019-03-31 23:31:17 +00:00
patches = [
(substituteAll {
src = ./fix-paths.patch;
inherit zenity;
})
];
postPatch = ''
patchShebangs src/backends/native/gen-default-modes.py
'';
postInstall = ''
${glib.dev}/bin/glib-compile-schemas "$out/share/glib-2.0/schemas"
'';
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;
};
}