depot/third_party/nixpkgs/pkgs/desktops/gnome-3/misc/metacity/default.nix
Default email 7cbac10661 Project import generated by Copybara.
GitOrigin-RevId: a371c1071161104d329f6a85d922fd92b7cbab63
2020-11-12 09:05:59 +00:00

72 lines
1.3 KiB
Nix

{ stdenv
, fetchurl
, gettext
, glib
, gnome3
, gsettings-desktop-schemas
, gtk3
, xorg
, libcanberra-gtk3
, libgtop
, libstartup_notification
, libxml2
, pkgconfig
, substituteAll
, wrapGAppsHook
, zenity
}:
stdenv.mkDerivation rec {
pname = "metacity";
version = "3.38.0";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "1b0i9sq6qa540f2006cv1p8i6lxg1h6w00apxwzwjpfqn0hk26c1";
};
patches = [
(substituteAll {
src = ./fix-paths.patch;
inherit zenity;
})
];
nativeBuildInputs = [
gettext
libxml2
pkgconfig
wrapGAppsHook
];
buildInputs = [
xorg.libXres
xorg.libXpresent
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 stdenv.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;
};
}