49 lines
1.4 KiB
Nix
49 lines
1.4 KiB
Nix
{ fetchurl, stdenv, pkgconfig, gnome3, intltool, gobjectIntrospection, upower, cairo
|
|
, pango, cogl, clutter, libstartup_notification, zenity, libcanberra_gtk3
|
|
, libtool, makeWrapper, xkeyboard_config, libxkbfile, libxkbcommon, libXtst, libinput
|
|
, libgudev, libwacom, xwayland, autoreconfHook }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
inherit (import ./src.nix fetchurl) name src;
|
|
|
|
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"
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
# required for pkgconfig to detect mutter-clutter
|
|
libXtst
|
|
];
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig intltool libtool makeWrapper ];
|
|
|
|
buildInputs = with gnome3; [
|
|
glib gobjectIntrospection gtk gsettings_desktop_schemas upower
|
|
gnome_desktop cairo pango cogl clutter zenity libstartup_notification
|
|
gnome3.geocode_glib libinput libgudev libwacom
|
|
libcanberra_gtk3 zenity xkeyboard_config libxkbfile
|
|
libxkbcommon
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|