diff options
author | Fabian Möller <fabianm88@gmail.com> | 2019-11-27 12:36:59 +0100 |
---|---|---|
committer | Fabian Möller <fabianm88@gmail.com> | 2019-11-27 12:36:59 +0100 |
commit | 46e98a907e0aed4db2d56e8f66674554e58095f9 (patch) | |
tree | 3d36cf47ad22ffe831b5d05852deebc84342237d /pkgs/development/libraries/egl-wayland | |
parent | 3f86f2120717c33792fc3f8a7cef8dffc9e73c2b (diff) |
egl-wayland: fix build
Add headers that got moved in #72999
Diffstat (limited to 'pkgs/development/libraries/egl-wayland')
-rw-r--r-- | pkgs/development/libraries/egl-wayland/default.nix | 6 | ||||
-rw-r--r-- | pkgs/development/libraries/egl-wayland/eglmesaext.patch | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/development/libraries/egl-wayland/default.nix b/pkgs/development/libraries/egl-wayland/default.nix index b8fcbfb1c7650..fa2c3687ba771 100644 --- a/pkgs/development/libraries/egl-wayland/default.nix +++ b/pkgs/development/libraries/egl-wayland/default.nix @@ -6,6 +6,7 @@ , ninja , libX11 , mesa +, libGL , wayland }: @@ -50,6 +51,10 @@ in stdenv.mkDerivation rec { sha256 = "0wvamjcfycd7rgk7v14g2rin55xin9rfkxmivyay3cm08vnl7y1d"; }; + # Add missing include + # https://github.com/NVIDIA/egl-wayland/pull/24 + patches = [ ./eglmesaext.patch ]; + nativeBuildInputs = [ meson ninja @@ -60,6 +65,7 @@ in stdenv.mkDerivation rec { eglexternalplatform libX11 mesa + libGL wayland ]; diff --git a/pkgs/development/libraries/egl-wayland/eglmesaext.patch b/pkgs/development/libraries/egl-wayland/eglmesaext.patch new file mode 100644 index 0000000000000..9384ecff9b0f8 --- /dev/null +++ b/pkgs/development/libraries/egl-wayland/eglmesaext.patch @@ -0,0 +1,12 @@ +diff --git a/src/wayland-eglsurface.c b/src/wayland-eglsurface.c +index 01c9cb3..45736b0 100644 +--- a/src/wayland-eglsurface.c ++++ b/src/wayland-eglsurface.c +@@ -37,6 +37,7 @@ + #include <sys/types.h> + #include <netinet/in.h> + #include <fcntl.h> ++#include <EGL/eglmesaext.h> + + #define WL_EGL_WINDOW_DESTROY_CALLBACK_SINCE 3 + |