nixpkgs/pkgs/desktops/gnome/misc/metacity/default.nix

75 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv
2018-05-06 20:34:04 +02:00
, fetchurl
, gettext
, glib
, gnome
2018-05-06 20:34:04 +02:00
, gsettings-desktop-schemas
2019-02-13 22:47:50 +01:00
, gtk3
, 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
, zenity
}:
2018-05-06 20:34:04 +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 = [
xorg.libXres
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 = {
updateScript = gnome.updateScript {
2018-05-06 20:34:04 +02:00
packageName = pname;
attrPath = "gnome.${pname}";
versionPolicy = "odd-unstable";
2018-05-06 20:34:04 +02:00
};
};
doCheck = true;
meta = with lib; {
2018-05-06 20:34:04 +02:00
description = "Window manager used in Gnome Flashback";
homepage = "https://wiki.gnome.org/Projects/Metacity";
2018-05-06 20:34:04 +02:00
license = licenses.gpl2;
maintainers = teams.gnome.members;
2018-05-06 20:34:04 +02:00
platforms = platforms.linux;
};
}