forked from mirrors/nixpkgs
92 lines
2.3 KiB
Nix
92 lines
2.3 KiB
Nix
{ 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
|
|
, gsettings-desktop-schemas, glib, gtk3, gnome-desktop
|
|
, geocode-glib, pipewire, libgudev, libwacom, xwayland, meson
|
|
, gnome-settings-daemon
|
|
, xorgserver
|
|
, python3
|
|
, wrapGAppsHook
|
|
, sysprof
|
|
, desktop-file-utils
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mutter";
|
|
version = "3.34.0";
|
|
|
|
outputs = [ "out" "dev" "man" ];
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/mutter/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "0qdpw0fya8kr5737jf635455qb714wvhszkk82rlw48fqj8nk8ss";
|
|
};
|
|
|
|
mesonFlags = [
|
|
"-Dxwayland-path=${xwayland}/bin/Xwayland"
|
|
"-Dinstalled_tests=false" # TODO: enable these
|
|
"-Dprofiler=false"
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
# required for pkgconfig to detect mutter-clutter
|
|
libXtst
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
pkgconfig
|
|
gettext
|
|
ninja
|
|
python3
|
|
# for cvt command
|
|
xorgserver
|
|
wrapGAppsHook
|
|
desktop-file-utils
|
|
];
|
|
|
|
buildInputs = [
|
|
glib gobject-introspection gtk3 gsettings-desktop-schemas upower
|
|
gnome-desktop cairo pango cogl clutter zenity libstartup_notification
|
|
geocode-glib libinput libgudev libwacom
|
|
libcanberra-gtk3 zenity xkeyboard_config libxkbfile
|
|
libxkbcommon pipewire xwayland
|
|
gnome-settings-daemon # sysprof
|
|
];
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "ensure-emit-x11-display-opened.patch";
|
|
url = "https://gitlab.gnome.org/GNOME/mutter/commit/850ef518795dcc20d3b9a4f661f70ff8d0ddacb2.patch";
|
|
sha256 = "0cxdbrbcc8kfkvw7ryxjm2v1vk15jki7bawn128385r5hasabhxf";
|
|
})
|
|
(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;
|
|
|
|
passthru = {
|
|
updateScript = gnome3.updateScript {
|
|
packageName = "mutter";
|
|
attrPath = "gnome3.mutter";
|
|
};
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
platforms = platforms.linux;
|
|
maintainers = gnome3.maintainers;
|
|
license = licenses.gpl2;
|
|
};
|
|
}
|