diff options
author | Ben Wolsieffer <benwolsieffer@gmail.com> | 2020-08-01 17:00:42 -0400 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2020-08-16 10:33:44 +0000 |
commit | 98be04b83aece31412834cb768529d86a348946a (patch) | |
tree | ad1091ef14450b8f7351796fab28473bbe15dc35 | |
parent | 7802608649e3d392f3fa8d58b21bd4b8221f9ab6 (diff) | |
download | nixpkgs-98be04b83aece31412834cb768529d86a348946a.tar nixpkgs-98be04b83aece31412834cb768529d86a348946a.tar.gz nixpkgs-98be04b83aece31412834cb768529d86a348946a.tar.bz2 nixpkgs-98be04b83aece31412834cb768529d86a348946a.tar.lz nixpkgs-98be04b83aece31412834cb768529d86a348946a.tar.xz nixpkgs-98be04b83aece31412834cb768529d86a348946a.tar.zst nixpkgs-98be04b83aece31412834cb768529d86a348946a.zip |
cairo: make OpenGL support require X11
If OpenGL is enabled without X11, the build fails with: In file included from /nix/store/<...>-libglvnd-1.3.1-dev/include/EGL/egl.h:39, from cairo-gl.h:130, from cairo-gl-private.h:51, from cairo-gl-composite.c:48: /nix/store/<...>-libglvnd-1.3.1-dev/include/EGL/eglplatform.h:128:10: fatal error: X11/Xlib.h: No such file or directory 128 | #include <X11/Xlib.h> | ^~~~~~~~~~~~ compilation terminated.
-rw-r--r-- | pkgs/development/libraries/cairo/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/libraries/cairo/default.nix b/pkgs/development/libraries/cairo/default.nix index 628046a5741..a414191ac0d 100644 --- a/pkgs/development/libraries/cairo/default.nix +++ b/pkgs/development/libraries/cairo/default.nix @@ -4,13 +4,13 @@ , gobjectSupport ? true, glib , xcbSupport ? x11Support, libxcb, xcbutil # no longer experimental since 1.12 , libGLSupported ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms -, glSupport ? config.cairo.gl or (libGLSupported && stdenv.isLinux) +, glSupport ? x11Support && config.cairo.gl or (libGLSupported && stdenv.isLinux) , libGL ? null # libGLU libGL is no longer a big dependency , pdfSupport ? true , darwin }: -assert glSupport -> libGL != null; +assert glSupport -> x11Support && libGL != null; let version = "1.16.0"; |