2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2018-05-06 20:34:04 +02:00
|
|
|
, fetchurl
|
|
|
|
, gettext
|
|
|
|
, glib
|
2021-05-07 23:18:14 +02:00
|
|
|
, gnome
|
2018-05-06 20:34:04 +02:00
|
|
|
, gsettings-desktop-schemas
|
2019-02-13 22:47:50 +01:00
|
|
|
, gtk3
|
2020-08-25 09:34:28 +02:00
|
|
|
, xorg
|
2018-05-06 20:34:04 +02:00
|
|
|
, libcanberra-gtk3
|
|
|
|
, libgtop
|
|
|
|
, libstartup_notification
|
|
|
|
, libxml2
|
2021-01-17 03:21:50 +01:00
|
|
|
, pkg-config
|
2018-05-06 20:34:04 +02:00
|
|
|
, substituteAll
|
|
|
|
, wrapGAppsHook
|
2020-08-25 09:34:28 +02:00
|
|
|
, zenity
|
|
|
|
}:
|
2018-05-06 20:34:04 +02:00
|
|
|
|
2020-08-25 09:34:28 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2018-05-06 20:34:04 +02:00
|
|
|
pname = "metacity";
|
2021-10-24 11:30:17 +02:00
|
|
|
version = "3.42.0";
|
2018-05-06 20:34:04 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 14:21:58 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-10-24 11:30:17 +02:00
|
|
|
sha256 = "2J1nnc/tm17vGPBuLcszp6tUPVOzWPqJzmVZPCMe7rw=";
|
2018-05-06 20:34:04 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
inherit zenity;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
libxml2
|
2021-01-17 03:21:50 +01:00
|
|
|
pkg-config
|
2018-05-06 20:34:04 +02:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2020-08-25 09:34:28 +02:00
|
|
|
xorg.libXres
|
2020-10-11 18:39:25 +02:00
|
|
|
xorg.libXpresent
|
2021-04-17 08:57:03 +02:00
|
|
|
xorg.libXdamage
|
2018-05-06 20:34:04 +02:00
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas
|
2019-02-13 22:47:50 +01:00
|
|
|
gtk3
|
2018-05-06 20:34:04 +02:00
|
|
|
libcanberra-gtk3
|
|
|
|
libgtop
|
|
|
|
libstartup_notification
|
|
|
|
zenity
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-07 23:18:14 +02:00
|
|
|
updateScript = gnome.updateScript {
|
2018-05-06 20:34:04 +02:00
|
|
|
packageName = pname;
|
2021-05-07 23:18:14 +02:00
|
|
|
attrPath = "gnome.${pname}";
|
2021-03-21 00:57:24 +01:00
|
|
|
versionPolicy = "odd-unstable";
|
2018-05-06 20:34:04 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-05-06 20:34:04 +02:00
|
|
|
description = "Window manager used in Gnome Flashback";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/Metacity";
|
2018-05-06 20:34:04 +02:00
|
|
|
license = licenses.gpl2;
|
2020-04-01 14:40:51 +02:00
|
|
|
maintainers = teams.gnome.members;
|
2018-05-06 20:34:04 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|