3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/gnome-3/misc/metacity/default.nix
2020-04-13 18:50:35 +02:00

71 lines
1.3 KiB
Nix

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