diff --git a/pkgs/by-name/xo/xorgproto/meson.patch b/pkgs/by-name/xo/xorgproto/meson.patch new file mode 100644 index 000000000000..802dd42abae4 --- /dev/null +++ b/pkgs/by-name/xo/xorgproto/meson.patch @@ -0,0 +1,14 @@ +--- xorgproto-2018.4.orig/include/X11/meson.build 2018-02-28 16:45:07.000000000 +0000 ++++ xorgproto-2018.4/include/X11/meson.build 2019-01-26 02:34:52.763165148 +0000 +@@ -10,8 +10,10 @@ + endif + endforeach + + # generated headers. try not to make more of these, please. +-if cc.has_member('fd_set', 'fds_bits', prefix: fd_set_headers) ++if cc.get_define('_WIN32') == '1' and cc.get_define('CYGWIN') != '1' ++ fds_bits = 'dummy' ++elif cc.has_member('fd_set', 'fds_bits', prefix: fd_set_headers) + fds_bits = 'fds_bits' + elif cc.has_member('fd_set', '__fds_bits', prefix: fd_set_headers) + fds_bits = '__fds_bits' diff --git a/pkgs/by-name/xo/xorgproto/package.nix b/pkgs/by-name/xo/xorgproto/package.nix index bd44d61263cc..e36e92a8de03 100644 --- a/pkgs/by-name/xo/xorgproto/package.nix +++ b/pkgs/by-name/xo/xorgproto/package.nix @@ -21,10 +21,7 @@ stdenv.mkDerivation (finalAttrs: { patches = [ # small fix for mingw - (fetchpatch { - url = "https://aur.archlinux.org/cgit/aur.git/plain/meson.patch?h=mingw-w64-xorgproto&id=7b817efc3144a50e6766817c4ca7242f8ce49307"; - sha256 = "sha256-Izzz9In53W7CC++k1bLr78iSrmxpFm1cH8qcSpptoUQ="; - }) + ./meson.patch ]; strictDeps = true;