From 0865e22567d9b80f72318885f9a9c4128816ed06 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Mon, 29 Aug 2016 08:25:12 +0000 Subject: [PATCH] xorg.xf86videoxgi: add patch to fix build --- pkgs/servers/x11/xorg/overrides.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/servers/x11/xorg/overrides.nix b/pkgs/servers/x11/xorg/overrides.nix index 10b0b3ce2ad6..acbfe69ee43b 100644 --- a/pkgs/servers/x11/xorg/overrides.nix +++ b/pkgs/servers/x11/xorg/overrides.nix @@ -541,6 +541,17 @@ in nativeBuildInputs = [args.autoreconfHook xorg.utilmacros]; }; + xf86videoxgi = attrs: attrs // { + patches = [ + # fixes invalid open mode + # https://cgit.freedesktop.org/xorg/driver/xf86-video-xgi/commit/?id=bd94c475035739b42294477cff108e0c5f15ef67 + (args.fetchpatch { + url = "https://cgit.freedesktop.org/xorg/driver/xf86-video-xgi/patch/?id=bd94c475035739b42294477cff108e0c5f15ef67"; + sha256 = "0myfry07655adhrpypa9rqigd6rfx57pqagcwibxw7ab3wjay9f6"; + }) + ]; + }; + xwd = attrs: attrs // { buildInputs = with xorg; attrs.buildInputs ++ [libXt libxkbfile]; };