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