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

92 lines
2.3 KiB
Nix
Raw Normal View History

{ fetchurl, fetchpatch, 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
2019-09-09 20:47:10 +01:00
, sysprof
, desktop-file-utils
}:
stdenv.mkDerivation rec {
2019-04-18 09:29:48 +01:00
pname = "mutter";
2019-09-09 20:47:10 +01:00
version = "3.34.0";
2019-07-04 13:32:34 +01:00
outputs = [ "out" "dev" "man" ];
src = fetchurl {
2019-04-18 09:29:48 +01:00
url = "mirror://gnome/sources/mutter/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2019-09-09 20:47:10 +01:00
sha256 = "0qdpw0fya8kr5737jf635455qb714wvhszkk82rlw48fqj8nk8ss";
};
mesonFlags = [
"-Dxwayland-path=${xwayland}/bin/Xwayland"
2019-07-04 13:32:25 +01:00
"-Dinstalled_tests=false" # TODO: enable these
2019-09-09 20:47:10 +01:00
"-Dprofiler=false"
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-09-09 20:47:10 +01:00
desktop-file-utils
];
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
2019-09-09 20:47:10 +01:00
gnome-settings-daemon # sysprof
2017-12-17 00:22:42 +00:00
];
2019-04-01 00:31:17 +01:00
patches = [
2019-09-09 20:47:10 +01:00
(fetchpatch {
name = "ensure-emit-x11-display-opened.patch";
url = "https://gitlab.gnome.org/GNOME/mutter/commit/850ef518795dcc20d3b9a4f661f70ff8d0ddacb2.patch";
sha256 = "0cxdbrbcc8kfkvw7ryxjm2v1vk15jki7bawn128385r5hasabhxf";
})
2019-04-01 00:31:17 +01:00
(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;
};
}