9405df4a82
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
73 lines
1.3 KiB
Nix
73 lines
1.3 KiB
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, gettext
|
|
, glib
|
|
, gnome3
|
|
, gsettings-desktop-schemas
|
|
, gtk3
|
|
, xorg
|
|
, libcanberra-gtk3
|
|
, libgtop
|
|
, libstartup_notification
|
|
, libxml2
|
|
, pkg-config
|
|
, substituteAll
|
|
, wrapGAppsHook
|
|
, zenity
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "metacity";
|
|
version = "3.38.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "1b0i9sq6qa540f2006cv1p8i6lxg1h6w00apxwzwjpfqn0hk26c1";
|
|
};
|
|
|
|
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 = gnome3.updateScript {
|
|
packageName = pname;
|
|
attrPath = "gnome3.${pname}";
|
|
};
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|