3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/gnome-3/misc/metacity/default.nix

73 lines
1.3 KiB
Nix
Raw Normal View History

{ 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
, 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
, zenity
}:
2018-05-06 19:34:04 +01:00
stdenv.mkDerivation rec {
2018-05-06 19:34:04 +01:00
pname = "metacity";
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";
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 = [
xorg.libXres
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;
meta = with lib; {
2018-05-06 19:34:04 +01:00
description = "Window manager used in Gnome Flashback";
homepage = "https://wiki.gnome.org/Projects/Metacity";
2018-05-06 19:34:04 +01:00
license = licenses.gpl2;
maintainers = teams.gnome.members;
2018-05-06 19:34:04 +01:00
platforms = platforms.linux;
};
}