nixpkgs/pkgs/desktops/gnome/misc/metacity/default.nix
Bobby Rong 9044e66197 gnome.metacity: 3.49.1 → 3.50.0
https://gitlab.gnome.org/GNOME/metacity/-/compare/3.49.1...3.50.0

Just translations.

Changelog-reviewed-by: Bobby Rong <rjl931189261@126.com>
Changelog-reviewed-by: Jan Tojnar <jtojnar@gmail.com>
2023-11-21 08:42:23 +01:00

74 lines
1.3 KiB
Nix

{ 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.50.0";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "GOmxBkONRjlOQUi8uDrMY2cxK+VFWc21ZOJwwcyutg8=";
};
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;
};
}