mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
vtk: fix darwin impurity
This commit is contained in:
parent
63393b2d4e
commit
ade7c6645a
@ -1,7 +1,7 @@
|
||||
{ stdenv, fetchurl, fetchpatch, cmake, mesa, libX11, xproto, libXt
|
||||
, qtLib ? null
|
||||
# Darwin support
|
||||
, Cocoa, CoreServices, DiskArbitration, IOKit, CFNetwork, Security, GLUT
|
||||
, Cocoa, CoreServices, DiskArbitration, IOKit, CFNetwork, Security, GLUT, OpenGL
|
||||
, ApplicationServices, CoreText, IOSurface, cf-private, ImageIO, xpc, libobjc }:
|
||||
|
||||
with stdenv.lib;
|
||||
@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
|
||||
then [ cmake mesa libX11 xproto libXt ] ++ optional (qtLib != null) qtLib
|
||||
else [ cmake qtLib xpc CoreServices DiskArbitration IOKit cf-private
|
||||
CFNetwork Security ApplicationServices CoreText IOSurface ImageIO
|
||||
GLUT ];
|
||||
OpenGL GLUT ];
|
||||
propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ Cocoa libobjc ];
|
||||
|
||||
|
||||
@ -42,7 +42,8 @@ stdenv.mkDerivation rec {
|
||||
++ optional (qtLib != null) [ "-DVTK_USE_QT:BOOL=ON" ]
|
||||
++ optional stdenv.isDarwin [ "-DBUILD_TESTING:BOOL=OFF"
|
||||
"-DCMAKE_OSX_SYSROOT="
|
||||
"-DCMAKE_OSX_DEPLOYMENT_TARGET=" ];
|
||||
"-DCMAKE_OSX_DEPLOYMENT_TARGET="
|
||||
"-DOPENGL_INCLUDE_DIR=${OpenGL}/Library/Frameworks" ];
|
||||
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
||||
|
@ -9263,7 +9263,7 @@ in
|
||||
inherit (darwin.apple_sdk.libs) xpc;
|
||||
inherit (darwin.apple_sdk.frameworks) Cocoa CoreServices DiskArbitration
|
||||
IOKit CFNetwork Security ApplicationServices
|
||||
CoreText IOSurface ImageIO GLUT;
|
||||
CoreText IOSurface ImageIO OpenGL GLUT;
|
||||
};
|
||||
|
||||
vtkWithQt4 = vtk.override { qtLib = qt4; };
|
||||
|
Loading…
Reference in New Issue
Block a user