depot/third_party/nixpkgs/pkgs/by-name/me/metacity/package.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

76 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchurl,
gettext,
glib,
gnome,
gsettings-desktop-schemas,
gtk3,
xorg,
libcanberra-gtk3,
libgtop,
libstartup_notification,
libxml2,
pkg-config,
substituteAll,
wrapGAppsHook3,
zenity,
}:
stdenv.mkDerivation rec {
pname = "metacity";
version = "3.52.0";
src = fetchurl {
url = "mirror://gnome/sources/metacity/${lib.versions.majorMinor version}/metacity-${version}.tar.xz";
hash = "sha256-pyQ4rObVkDrnkzjGCYsbNauRyKl8QyNwHTvvHz7rGRw=";
};
patches = [
(substituteAll {
src = ./fix-paths.patch;
inherit zenity;
})
];
nativeBuildInputs = [
gettext
libxml2
pkg-config
wrapGAppsHook3
];
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 = "metacity";
versionPolicy = "odd-unstable";
};
};
doCheck = true;
meta = with lib; {
description = "Window manager used in Gnome Flashback";
homepage = "https://gitlab.gnome.org/GNOME/metacity";
changelog = "https://gitlab.gnome.org/GNOME/metacity/-/blob/${version}/NEWS?ref_type=tags";
license = licenses.gpl2;
maintainers = teams.gnome.members;
platforms = platforms.linux;
};
}