diff options
Diffstat (limited to 'pkgs/desktops/gnome/misc/metacity/default.nix')
-rw-r--r-- | pkgs/desktops/gnome/misc/metacity/default.nix | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/pkgs/desktops/gnome/misc/metacity/default.nix b/pkgs/desktops/gnome/misc/metacity/default.nix new file mode 100644 index 0000000000000..702b7ffb38bba --- /dev/null +++ b/pkgs/desktops/gnome/misc/metacity/default.nix @@ -0,0 +1,74 @@ +{ lib, stdenv +, fetchurl +, gettext +, glib +, gnome +, gsettings-desktop-schemas +, gtk3 +, xorg +, libcanberra-gtk3 +, libgtop +, libstartup_notification +, libxml2 +, pkg-config +, substituteAll +, wrapGAppsHook +, zenity +}: + +stdenv.mkDerivation rec { + pname = "metacity"; + version = "3.40.0"; + + src = fetchurl { + url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; + sha256 = "1d8mj2nshijshfiaica8dirfws1p6i9631frq7q23b3y91jiyk12"; + }; + + patches = [ + (substituteAll { + src = ./fix-paths.patch; + inherit zenity; + }) + ]; + + nativeBuildInputs = [ + gettext + libxml2 + pkg-config + wrapGAppsHook + ]; + + buildInputs = [ + xorg.libXres + xorg.libXpresent + xorg.libXdamage + glib + gsettings-desktop-schemas + gtk3 + libcanberra-gtk3 + libgtop + libstartup_notification + zenity + ]; + + enableParallelBuilding = true; + + passthru = { + updateScript = gnome.updateScript { + packageName = pname; + attrPath = "gnome.${pname}"; + versionPolicy = "odd-unstable"; + }; + }; + + doCheck = true; + + meta = with lib; { + description = "Window manager used in Gnome Flashback"; + homepage = "https://wiki.gnome.org/Projects/Metacity"; + license = licenses.gpl2; + maintainers = teams.gnome.members; + platforms = platforms.linux; + }; +} |