libtiff: don't depend on OpenGL on darwin

libGL is bloating the closure by depending on mesa.

0a678b4500 ('libtiff: Disable OpenGL entirely for Darwin')
b02908c213 ('libtiff: Reenable OpenGL support on Darwin')
This commit is contained in:
Dmitry Kalinkin 2021-12-31 15:22:59 -05:00
parent 4874bfd0a6
commit 2f8438a174
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333
2 changed files with 2 additions and 10 deletions

View File

@ -8,11 +8,6 @@
, libjpeg
, xz
, zlib
, Cocoa
, GLUT
, libGL
, libGLU
}:
#FIXME: fix aarch64-darwin build and get rid of ./aarch64-darwin.nix
@ -52,8 +47,7 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ libjpeg xz zlib ]; #TODO: opengl support (bogus configure detection)
buildInputs = [ libdeflate ] # TODO: move all propagatedBuildInputs to buildInputs.
++ lib.optionals (stdenv.isDarwin) [ Cocoa GLUT libGL libGLU ];
buildInputs = [ libdeflate ];
enableParallelBuilding = true;

View File

@ -18454,9 +18454,7 @@ with pkgs;
libtiff = if stdenv.isDarwin && stdenv.isAarch64
then callPackage ../development/libraries/libtiff/aarch64-darwin.nix { }
else callPackage ../development/libraries/libtiff {
inherit (darwin.apple_sdk.frameworks) Cocoa GLUT;
};
else callPackage ../development/libraries/libtiff { };
libtiger = callPackage ../development/libraries/libtiger { };