gnome3.metacity: init at 3.28.0
This commit is contained in:
parent
f48108e52a
commit
46dcfd27c3
@ -377,6 +377,8 @@ lib.makeScope pkgs.newScope (self: with self; {
|
||||
|
||||
gpaste = callPackage ./misc/gpaste { };
|
||||
|
||||
metacity = callPackage ./misc/metacity { };
|
||||
|
||||
pidgin-im-gnome-shell-extension = callPackage ./misc/pidgin { };
|
||||
|
||||
gtkhtml = callPackage ./misc/gtkhtml { };
|
||||
|
70
pkgs/desktops/gnome-3/misc/metacity/default.nix
Normal file
70
pkgs/desktops/gnome-3/misc/metacity/default.nix
Normal file
@ -0,0 +1,70 @@
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, gettext
|
||||
, glib
|
||||
, gnome3
|
||||
, gsettings-desktop-schemas
|
||||
, gtk
|
||||
, libcanberra-gtk3
|
||||
, libgtop
|
||||
, libstartup_notification
|
||||
, libxml2
|
||||
, pkgconfig
|
||||
, substituteAll
|
||||
, wrapGAppsHook
|
||||
, zenity }:
|
||||
|
||||
let
|
||||
pname = "metacity";
|
||||
version = "3.28.0";
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
||||
sha256 = "0kzap0lzlkcgkna3h426xgwrn2zpipy8cfsxpfynnaf74vyas3aw";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./fix-paths.patch;
|
||||
inherit zenity;
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
gettext
|
||||
libxml2
|
||||
pkgconfig
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
gsettings-desktop-schemas
|
||||
gtk
|
||||
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 = gnome3.maintainers;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
11
pkgs/desktops/gnome-3/misc/metacity/fix-paths.patch
Normal file
11
pkgs/desktops/gnome-3/misc/metacity/fix-paths.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/src/core/util.c
|
||||
+++ b/src/core/util.c
|
||||
@@ -424,7 +424,7 @@
|
||||
g_slist_length (columns)*2 +
|
||||
g_slist_length (entries)));
|
||||
|
||||
- argvl[i++] = "zenity";
|
||||
+ argvl[i++] = "@zenity@/bin/zenity";
|
||||
argvl[i++] = type;
|
||||
argvl[i++] = "--display";
|
||||
argvl[i++] = display;
|
Loading…
Reference in New Issue
Block a user