Skip to content

Commit

Permalink
mutter: fix failure on i686
Browse files Browse the repository at this point in the history
  • Loading branch information
lucabrunox committed May 26, 2015
1 parent 138a51b commit 4053dcd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/desktops/gnome-3/3.16/core/mutter/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@


stdenv.mkDerivation rec {
name = "mutter-${gnome3.version}.1.1";
name = "mutter-${gnome3.version}.2";

src = fetchurl {
url = "mirror://gnome/sources/mutter/${gnome3.version}/${name}.tar.xz";
sha256 = "07059jmwhc7zf2gww2xw94hhy4csjj2v30ivyzllbas2nvv88l3r";
sha256 = "0qq7gpkljn1z45sg2sxvmia52krj4ck2541iar89z99s1cppaasa";
};

# fatal error: gio/gunixfdlist.h: No such file or directory
Expand All @@ -27,6 +27,8 @@ stdenv.mkDerivation rec {
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
'';

patches = [ ./x86.patch ];

meta = with stdenv.lib; {
platforms = platforms.linux;
maintainers = [ maintainers.lethalman ];
Expand Down
20 changes: 20 additions & 0 deletions pkgs/desktops/gnome-3/3.16/core/mutter/x86.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--- mutter-3.16.2/src/core/window.c.orig 2015-05-26 10:52:41.382834963 +0200
+++ mutter-3.16.2/src/core/window.c 2015-05-26 10:53:03.039948034 +0200
@@ -3499,7 +3499,7 @@

static MetaMonitorInfo *
find_monitor_by_winsys_id (MetaWindow *window,
- guint winsys_id)
+ gint winsys_id)
{
int i;

@@ -3618,7 +3618,7 @@
*/

gboolean did_placement;
- guint old_output_winsys_id;
+ gint old_output_winsys_id;
MetaRectangle unconstrained_rect;
MetaRectangle constrained_rect;
MetaMoveResizeResultFlags result = 0;

0 comments on commit 4053dcd

Please sign in to comment.