gegl: fix darwin build

../gegl/opencl/cl_gl.h:37:10: fatal error: 'OpenGL/CGLDevice.h' file not found
    #include <OpenGL/CGLDevice.h>
This commit is contained in:
Daiderd Jordan 2019-11-03 18:37:39 +01:00
parent f3a8147404
commit 80a5dd7f02
No known key found for this signature in database
GPG Key ID: D02435D05B810C96
2 changed files with 7 additions and 3 deletions

View File

@ -28,6 +28,7 @@
, libwebp
, luajit
, openexr
, OpenCL
}:
stdenv.mkDerivation rec {
@ -86,7 +87,7 @@ stdenv.mkDerivation rec {
gexiv2
luajit
openexr
];
] ++ stdenv.lib.optional stdenv.isDarwin OpenCL;
# for gegl-4.0.pc
propagatedBuildInputs = [
@ -115,7 +116,8 @@ stdenv.mkDerivation rec {
patchShebangs tests/ff-load-save/tests_ff_load_save.sh tests/opencl/opencl_test.sh tests/buffer/buffer-tests-run.sh tools/xml_insert.sh
'';
doCheck = true;
# tests fail to connect to the com.apple.fonts daemon in sandboxed mode
doCheck = !stdenv.isDarwin;
meta = with stdenv.lib; {
description = "Graph-based image processing framework";

View File

@ -11063,7 +11063,9 @@ in
inherit (darwin.apple_sdk.frameworks) OpenGL;
};
gegl_0_4 = callPackage ../development/libraries/gegl/4.0.nix { };
gegl_0_4 = callPackage ../development/libraries/gegl/4.0.nix {
inherit (darwin.apple_sdk.frameworks) OpenCL;
};
geoclue2 = callPackage ../development/libraries/geoclue {};