2011-08-16 20:17:26 +02:00
|
|
|
{ fetchurl, stdenv, cmake, qt4
|
|
|
|
, hdf5
|
|
|
|
, mpich2
|
|
|
|
, python
|
|
|
|
, libxml2
|
2012-02-21 13:57:23 +01:00
|
|
|
, mesa, libXt
|
2011-08-16 20:17:26 +02:00
|
|
|
}:
|
2009-03-30 22:06:31 +02:00
|
|
|
|
2010-01-16 12:05:17 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2012-02-16 12:07:07 +01:00
|
|
|
name = "paraview-3.12.0";
|
2009-03-30 22:06:31 +02:00
|
|
|
src = fetchurl {
|
2012-02-16 12:07:07 +01:00
|
|
|
url = "http://www.paraview.org/files/v3.12/ParaView-3.12.0.tar.gz";
|
|
|
|
sha256 = "0n0n0hrv02rd9rb63z4baalf40m8v870027mr47b93scgp18qyim";
|
2009-03-30 22:06:31 +02:00
|
|
|
};
|
|
|
|
|
2011-08-16 20:17:26 +02:00
|
|
|
# [ 5%] Generating vtkGLSLShaderLibrary.h
|
|
|
|
# ../../../bin/ProcessShader: error while loading shared libraries: libvtksys.so.pv3.10: cannot open shared object file: No such file or directory
|
2009-12-10 23:19:52 +01:00
|
|
|
preConfigure = ''
|
2011-08-16 20:17:26 +02:00
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -rpath $out/lib/paraview-3.10 -rpath ../../../bin -rpath ../../bin"
|
2009-12-10 23:19:52 +01:00
|
|
|
'';
|
2011-08-16 20:17:26 +02:00
|
|
|
cmakeFlags = [
|
|
|
|
# "-DPARAVIEW_USE_MPI:BOOL=ON"
|
|
|
|
"-DPARAVIEW_USE_SYSTEM_HDF5:BOOL=ON"
|
|
|
|
"-DVTK_USE_SYSTEM_LIBXML2:BOOL=ON"
|
|
|
|
"-DPARAVIEW_ENABLE_PYTHON:BOOL=ON"
|
|
|
|
# use -DPARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES:BOOL=OFF \ to fix make install error: http://www.cmake.org/pipermail/paraview/2011-February/020268.html
|
|
|
|
"-DPARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES:BOOL=OFF"
|
|
|
|
"-DCMAKE_SKIP_BUILD_RPATH=ON"
|
|
|
|
"-DVTK_USE_RPATH:BOOL=ON"
|
|
|
|
"-DPARAVIEW_INSTALL_DEVELOPMENT=ON"
|
|
|
|
# "-DPYTHON_INCLUDE_DIR=${python}/include"
|
|
|
|
# "-DPYTHON_LIBRARY="
|
|
|
|
];
|
2009-03-30 22:06:31 +02:00
|
|
|
|
2012-02-16 12:07:07 +01:00
|
|
|
enableParallelBuilding = true;
|
2010-11-10 19:13:04 +01:00
|
|
|
|
2012-02-21 13:57:23 +01:00
|
|
|
buildInputs = [ cmake qt4 hdf5 mpich2 python libxml2 mesa libXt ];
|
2009-10-01 22:18:17 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://www.paraview.org/";
|
|
|
|
description = "3D Data analysis and visualization application";
|
|
|
|
license = "free";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
2009-03-30 22:06:31 +02:00
|
|
|
}
|
|
|
|
|