Merge pull request #74325 from B4dM4n/egl-wayland-fix-build
egl-wayland: fix build
commite237d884326048b139b16268aa14a3c62e125529
authoradisbladis <adisbladis@gmail.com>
dateWed 27 Nov 2019, 13:10 (7 years ago)
parentee0d88c46e98a9
pkgs/development/libraries/egl-wayland/default.nix+6
@@ -6,6 +6,7 @@
66, ninja
77, libX11
88, mesa
9+, libGL
910, wayland
1011}:
1112
@@ -50,6 +51,10 @@ in stdenv.mkDerivation rec {
5051 sha256 = "0wvamjcfycd7rgk7v14g2rin55xin9rfkxmivyay3cm08vnl7y1d";
5152 };
5253
54+ # Add missing include
55+ # https://github.com/NVIDIA/egl-wayland/pull/24
56+ patches = [ ./eglmesaext.patch ];
57+
5358 nativeBuildInputs = [
5459 meson
5560 ninja
@@ -60,6 +65,7 @@ in stdenv.mkDerivation rec {
6065 eglexternalplatform
6166 libX11
6267 mesa
68+ libGL
6369 wayland
6470 ];
6571
pkgs/development/libraries/egl-wayland/eglmesaext.patchnew file+12
@@ -0,0 +1,12 @@
1+diff --git a/src/wayland-eglsurface.c b/src/wayland-eglsurface.c
2+index 01c9cb3..45736b0 100644
3+--- a/src/wayland-eglsurface.c
4++++ b/src/wayland-eglsurface.c
5+@@ -37,6 +37,7 @@
6+ #include <sys/types.h>
7+ #include <netinet/in.h>
8+ #include <fcntl.h>
9++#include <EGL/eglmesaext.h>
10+
11+ #define WL_EGL_WINDOW_DESTROY_CALLBACK_SINCE 3
12+