Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
76 lines
1.4 KiB
Nix
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.54.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/metacity/${lib.versions.majorMinor version}/metacity-${version}.tar.xz";
|
|
hash = "sha256-WHifKLbzhSL9iMIkKRChB9ppNCF7LH3VKn1RLTlB1kM=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|