Merge pull request #58641 from worldofpeace/mutter328/use-gnome-3-28-branch
gnome3.mutter328: use gnome-3-28 branch
This commit is contained in:
commit
d956f2279b
@ -1,18 +1,28 @@
|
|||||||
{ fetchurl, stdenv, fetchpatch, pkgconfig, gnome3, intltool, gobject-introspection, upower, cairo
|
{ fetchFromGitLab, stdenv, substituteAll, pkgconfig, gnome3, intltool, gobject-introspection, upower, cairo
|
||||||
, glib, gtk3, pango, cogl, clutter, libstartup_notification, zenity, libcanberra-gtk3
|
, glib, gtk3, pango, cogl, clutter, libstartup_notification, zenity, libcanberra-gtk3
|
||||||
, gsettings-desktop-schemas, gnome-desktop
|
, gsettings-desktop-schemas, gnome-desktop, wrapGAppsHook
|
||||||
, libtool, makeWrapper, xkeyboard_config, libxkbfile, libxkbcommon, libXtst, libinput
|
, libtool, makeWrapper, xkeyboard_config, libxkbfile, libxkbcommon, libXtst, libinput
|
||||||
, geocode-glib, pipewire, libgudev, libwacom, xwayland, autoreconfHook }:
|
, geocode-glib, libgudev, libwacom, xwayland, autoreconfHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "mutter-${version}";
|
pname = "mutter";
|
||||||
version = "3.28.3";
|
version = "3.28.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitLab {
|
||||||
url = "mirror://gnome/sources/mutter/3.28/${name}.tar.xz";
|
domain = "gitlab.gnome.org";
|
||||||
sha256 = "0vq3rmq20d6b1mi6sf67wkzqys6hw5j7n7fd4hndcp19d5i26149";
|
owner = "GNOME";
|
||||||
|
repo = pname;
|
||||||
|
rev = "4af8d9d4752a94612a98d619e65828f0070a7b0e"; # HEAD of https://gitlab.gnome.org/GNOME/mutter/tree/gnome-3-28
|
||||||
|
sha256 = "1rmc1bf80yq776xhygi1jzgia1y44j2mr2n94vlxgzqc0whamx2v";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(substituteAll {
|
||||||
|
src = ./fix-paths-328.patch;
|
||||||
|
inherit zenity;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-x"
|
"--with-x"
|
||||||
"--disable-static"
|
"--disable-static"
|
||||||
@ -31,21 +41,16 @@ stdenv.mkDerivation rec {
|
|||||||
libXtst
|
libXtst
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkgconfig intltool libtool makeWrapper ];
|
nativeBuildInputs = [ autoreconfHook pkgconfig intltool libtool wrapGAppsHook ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
glib gobject-introspection gtk3 gsettings-desktop-schemas upower
|
glib gobject-introspection gtk3 gsettings-desktop-schemas upower
|
||||||
gnome-desktop cairo pango cogl clutter zenity libstartup_notification
|
gnome-desktop cairo pango cogl clutter zenity libstartup_notification
|
||||||
geocode-glib libinput libgudev libwacom
|
geocode-glib libinput libgudev libwacom
|
||||||
libcanberra-gtk3 zenity xkeyboard_config libxkbfile
|
libcanberra-gtk3 zenity xkeyboard_config libxkbfile
|
||||||
libxkbcommon pipewire
|
libxkbcommon
|
||||||
];
|
];
|
||||||
|
|
||||||
preFixup = ''
|
|
||||||
wrapProgram "$out/bin/mutter" \
|
|
||||||
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
|
||||||
'';
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
13
pkgs/desktops/gnome-3/core/mutter/fix-paths-328.patch
Normal file
13
pkgs/desktops/gnome-3/core/mutter/fix-paths-328.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/src/core/util.c b/src/core/util.c
|
||||||
|
index 5b8de18c7..546352a95 100644
|
||||||
|
--- a/src/core/util.c
|
||||||
|
+++ b/src/core/util.c
|
||||||
|
@@ -635,7 +635,7 @@ meta_show_dialog (const char *type,
|
||||||
|
|
||||||
|
args = g_ptr_array_new ();
|
||||||
|
|
||||||
|
- append_argument (args, "zenity");
|
||||||
|
+ append_argument (args, "@zenity@/bin/zenity");
|
||||||
|
append_argument (args, type);
|
||||||
|
|
||||||
|
if (display)
|
Loading…
x
Reference in New Issue
Block a user