2011-08-16 19:17:26 +01:00
|
|
|
{ fetchurl, stdenv, cmake, qt4
|
|
|
|
, hdf5
|
|
|
|
, mpich2
|
|
|
|
, python
|
|
|
|
, libxml2
|
2012-02-21 12:57:23 +00:00
|
|
|
, mesa, libXt
|
2011-08-16 19:17:26 +01:00
|
|
|
}:
|
2009-03-30 21:06:31 +01:00
|
|
|
|
2010-01-16 11:05:17 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2013-10-09 07:55:16 +01:00
|
|
|
name = "paraview-4.0.1";
|
2009-03-30 21:06:31 +01:00
|
|
|
src = fetchurl {
|
2013-10-09 07:55:16 +01:00
|
|
|
url = "http://paraview.org/files/v4.0/ParaView-v4.0.1-source.tgz";
|
|
|
|
sha256 = "1qj8dq8gqpsw75sv4sdc7xm1xcpv0ilsddnrcfhha0zfhp0gq10y";
|
2009-03-30 21:06:31 +01:00
|
|
|
};
|
|
|
|
|
2011-08-16 19:17:26 +01: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 22:19:52 +00:00
|
|
|
preConfigure = ''
|
2013-05-06 21:20:07 +01:00
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -rpath $out/lib/paraview-3.98 -rpath ../../../../../../lib -rpath ../../../../../lib -rpath ../../../../lib -rpath ../../../lib -rpath ../../lib -rpath ../lib"
|
2009-12-10 22:19:52 +00:00
|
|
|
'';
|
2011-08-16 19:17:26 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-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"
|
|
|
|
];
|
2009-03-30 21:06:31 +01:00
|
|
|
|
2015-03-06 11:09:01 +00:00
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1138466
|
|
|
|
NIX_CFLAGS_COMPILE = "-DGLX_GLXEXT_LEGACY";
|
|
|
|
|
2012-02-16 11:07:07 +00:00
|
|
|
enableParallelBuilding = true;
|
2010-11-10 18:13:04 +00:00
|
|
|
|
2012-02-21 12:57:23 +00:00
|
|
|
buildInputs = [ cmake qt4 hdf5 mpich2 python libxml2 mesa libXt ];
|
2009-10-01 21:18:17 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://www.paraview.org/";
|
|
|
|
description = "3D Data analysis and visualization application";
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.free;
|
2013-05-06 21:20:07 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric guibert];
|
2009-10-01 21:18:17 +01:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
2009-03-30 21:06:31 +01:00
|
|
|
}
|