mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
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:
parent
4874bfd0a6
commit
2f8438a174
@ -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;
|
||||
|
||||
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user