forked from mirrors/nixpkgs
xorg.xorgserver: Fix build with mesa 19.2.3
This commit is contained in:
parent
1733a6f941
commit
a6929e9ff3
|
@ -2691,7 +2691,7 @@ lib.makeScope newScope (self: with self; {
|
|||
meta.platforms = stdenv.lib.platforms.unix;
|
||||
}) {};
|
||||
|
||||
xorgserver = callPackage ({ stdenv, pkgconfig, fetchurl, xorgproto, openssl, libX11, libXau, libXaw, libxcb, xcbutil, xcbutilwm, xcbutilimage, xcbutilkeysyms, xcbutilrenderutil, libXdmcp, libXfixes, libxkbfile, libXmu, libXpm, libXrender, libXres, libXt }: stdenv.mkDerivation {
|
||||
xorgserver = callPackage ({ stdenv, fetchpatch, pkgconfig, fetchurl, xorgproto, openssl, libX11, libXau, libXaw, libxcb, xcbutil, xcbutilwm, xcbutilimage, xcbutilkeysyms, xcbutilrenderutil, libXdmcp, libXfixes, libxkbfile, libXmu, libXpm, libXrender, libXres, libXt }: stdenv.mkDerivation {
|
||||
name = "xorg-server-1.20.5";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
|
|
|
@ -592,6 +592,16 @@ self: super:
|
|||
propagatedBuildInputs = [ libpciaccess epoxy ] ++ commonPropagatedBuildInputs ++ lib.optionals stdenv.isLinux [
|
||||
udev
|
||||
];
|
||||
# patchPhase is not working, this is a hack but we can remove it in the next xorg-server release
|
||||
preConfigure = let
|
||||
headerFix = fetchpatch {
|
||||
url = "https://gitlab.freedesktop.org/xorg/xserver/commit/741bd73429e337071f49509ddcc5fb392e20b0f6.patch";
|
||||
sha256 = "0qjiin9pkggl3c33lfkpn9a9z8ldjpb3y47cflsjkfn868gsk8ri";
|
||||
excludes = [ "hw/xwayland/xwayland-glx.c" ]; # File not in release yet
|
||||
};
|
||||
in ''
|
||||
patch -p1 < ${headerFix}
|
||||
'';
|
||||
prePatch = stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||
export CFLAGS+=" -D__uid_t=uid_t -D__gid_t=gid_t"
|
||||
'';
|
||||
|
@ -629,8 +639,8 @@ self: super:
|
|||
libAppleWM xorgproto
|
||||
];
|
||||
|
||||
# XQuartz patchset
|
||||
patches = [
|
||||
# XQuartz patchset
|
||||
(fetchpatch {
|
||||
url = "https://github.com/XQuartz/xorg-server/commit/e88fd6d785d5be477d5598e70d105ffb804771aa.patch";
|
||||
sha256 = "1q0a30m1qj6ai924afz490xhack7rg4q3iig2gxsjjh98snikr1k";
|
||||
|
|
Loading…
Reference in a new issue