45 lines
1.5 KiB
Nix
45 lines
1.5 KiB
Nix
{ fetchurl, stdenv, cmake, qt4
|
|
, hdf5
|
|
, mpich2
|
|
, python
|
|
, libxml2
|
|
, mesa, libXt
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "paraview-3.98.1";
|
|
src = fetchurl {
|
|
url = "http://paraview.org/files/v3.98/ParaView-3.98.1-source.tar.gz";
|
|
sha256 = "0i7q3jc4lc40l1zw3fdzv108rpxxfmg3dmmq855fpqyp2g2w9nxp";
|
|
};
|
|
|
|
# [ 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
|
|
preConfigure = ''
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -rpath $out/lib/paraview-3.98 -rpath ../../../../../../lib -rpath ../../../../../lib -rpath ../../../../lib -rpath ../../../lib -rpath ../../lib -rpath ../lib"
|
|
'';
|
|
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"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
buildInputs = [ cmake qt4 hdf5 mpich2 python libxml2 mesa libXt ];
|
|
|
|
meta = {
|
|
homepage = "http://www.paraview.org/";
|
|
description = "3D Data analysis and visualization application";
|
|
license = "free";
|
|
maintainers = with stdenv.lib.maintainers; [viric guibert];
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
};
|
|
}
|
|
|