summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2019-09-24 15:57:05 +0200
committerRobin Gloster <mail@glob.in>2019-09-24 15:59:01 +0200
commit2d6fbcd94eef8857a7eb35947a5ac9b282186eaf (patch)
treea6a40151b06cefbd57c67bf1ef799db3c07f7d91 /pkgs
parentfeca695a34e224b2ef5f4b5a3e6bcc2b1e38c5ee (diff)
downloadnixpkgs-2d6fbcd94eef8857a7eb35947a5ac9b282186eaf.tar
nixpkgs-2d6fbcd94eef8857a7eb35947a5ac9b282186eaf.tar.gz
nixpkgs-2d6fbcd94eef8857a7eb35947a5ac9b282186eaf.tar.bz2
nixpkgs-2d6fbcd94eef8857a7eb35947a5ac9b282186eaf.tar.lz
nixpkgs-2d6fbcd94eef8857a7eb35947a5ac9b282186eaf.tar.xz
nixpkgs-2d6fbcd94eef8857a7eb35947a5ac9b282186eaf.tar.zst
nixpkgs-2d6fbcd94eef8857a7eb35947a5ac9b282186eaf.zip
vtk: build with system libtiff
fixes vtktiff, therefore at least gdcm
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/vtk/default.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/development/libraries/vtk/default.nix b/pkgs/development/libraries/vtk/default.nix
index c0b8fd7d167..3cb8998485a 100644
--- a/pkgs/development/libraries/vtk/default.nix
+++ b/pkgs/development/libraries/vtk/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, cmake, libGLU_combined, libX11, xorgproto, libXt
+{ stdenv, fetchurl, cmake, libGLU_combined, libX11, xorgproto, libXt, libtiff
 , qtLib ? null
 # Darwin support
 , Cocoa, CoreServices, DiskArbitration, IOKit, CFNetwork, Security, GLUT, OpenGL
@@ -20,7 +20,9 @@ stdenv.mkDerivation rec {
     sha256 = "0nm7xwwj7rnsxjdv2ssviys8nhci4n9iiiqm2y14s520hl2dsp1d";
   };
 
-  buildInputs = [ cmake ]
+  nativeBuildInputs = [ cmake ];
+
+  buildInputs = [ libtiff ]
     ++ optional (qtLib != null) qtLib
     ++ optionals stdenv.isLinux [ libGLU_combined libX11 xorgproto libXt ]
     ++ optionals stdenv.isDarwin [ xpc Cocoa CoreServices DiskArbitration IOKit
@@ -38,7 +40,7 @@ stdenv.mkDerivation rec {
   # built and requiring one of the shared objects.
   # At least, we use -fPIC for other packages to be able to use this in shared
   # objects.
-  cmakeFlags = [ "-DCMAKE_C_FLAGS=-fPIC" "-DCMAKE_CXX_FLAGS=-fPIC" ]
+  cmakeFlags = [ "-DCMAKE_C_FLAGS=-fPIC" "-DCMAKE_CXX_FLAGS=-fPIC" "-DVTK_USE_SYSTEM_TIFF=1" ]
     ++ optional (qtLib != null) [ "-DVTK_USE_QT:BOOL=ON" ]
     ++ optional stdenv.isDarwin "-DOPENGL_INCLUDE_DIR=${OpenGL}/Library/Frameworks";