2020-06-07 18:42:19 +01:00
|
|
|
{ boost, cmake, fetchFromGitHub, ffmpeg, qtbase, qtx11extras,
|
|
|
|
qttools, qtxmlpatterns, qtsvg, gdal, gfortran, libXt, makeWrapper,
|
|
|
|
mkDerivation, ninja, openmpi, python3, stdenv, tbb, libGLU, libGL }:
|
2009-03-30 21:06:31 +01:00
|
|
|
|
2019-11-06 10:46:33 +00:00
|
|
|
mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "paraview";
|
2020-06-07 18:42:19 +01:00
|
|
|
version = "5.8.0";
|
2017-09-10 17:00:38 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Kitware";
|
|
|
|
repo = "ParaView";
|
|
|
|
rev = "v${version}";
|
2020-06-07 18:42:19 +01:00
|
|
|
sha256 = "1mka6wwg9mbkqi3phs29mvxq6qbc44sspbm4awwamqhilh4grhrj";
|
2017-09-10 17:00:38 +01:00
|
|
|
fetchSubmodules = true;
|
2009-03-30 21:06:31 +01:00
|
|
|
};
|
|
|
|
|
2020-06-07 18:42:19 +01:00
|
|
|
# Avoid error: format not a string literal and
|
|
|
|
# no format arguments [-Werror=format-security]
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace VTK/Common/Core/vtkLogger.h \
|
|
|
|
--replace 'vtkLogScopeF(verbosity_name, __func__)' 'vtkLogScopeF(verbosity_name, "%s", __func__)'
|
|
|
|
|
|
|
|
substituteInPlace VTK/Common/Core/vtkLogger.h \
|
|
|
|
--replace 'vtkVLogScopeF(level, __func__)' 'vtkVLogScopeF(level, "%s", __func__)'
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Find the Qt platform plugin "minimal"
|
|
|
|
patchPhase = ''
|
|
|
|
export QT_PLUGIN_PATH=${qtbase.bin}/${qtbase.qtPluginPrefix}
|
|
|
|
'';
|
2017-09-10 17:00:38 +01:00
|
|
|
|
|
|
|
# During build, binaries are called that rely on freshly built
|
|
|
|
# libraries. These reside in build/lib, and are not found by
|
|
|
|
# default.
|
|
|
|
preBuild = ''
|
2020-01-02 00:29:34 +00:00
|
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/lib:$PWD/VTK/ThirdParty/vtkm/vtk-m/lib
|
2009-12-10 22:19:52 +00:00
|
|
|
'';
|
2015-03-06 11:09:01 +00:00
|
|
|
|
2020-06-07 18:42:19 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
|
|
"-DPARAVIEW_ENABLE_FFMPEG=ON"
|
|
|
|
"-DPARAVIEW_ENABLE_GDAL=ON"
|
|
|
|
"-DPARAVIEW_ENABLE_MOTIONFX=ON"
|
|
|
|
"-DPARAVIEW_ENABLE_VISITBRIDGE=ON"
|
|
|
|
"-DPARAVIEW_ENABLE_XDMF3=ON"
|
|
|
|
"-DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON"
|
|
|
|
"-DPARAVIEW_USE_MPI=ON"
|
|
|
|
"-DPARAVIEW_USE_PYTHON=ON"
|
|
|
|
"-DVTK_SMP_IMPLEMENTATION_TYPE=TBB"
|
|
|
|
"-DVTKm_ENABLE_MPI=ON"
|
|
|
|
"-DCMAKE_INSTALL_LIBDIR=lib"
|
|
|
|
"-DCMAKE_INSTALL_INCLUDEDIR=include"
|
|
|
|
"-DCMAKE_INSTALL_BINDIR=bin"
|
|
|
|
"-DOpenGL_GL_PREFERENCE=GLVND"
|
|
|
|
"-GNinja"
|
|
|
|
];
|
2010-11-10 18:13:04 +00:00
|
|
|
|
2017-12-01 12:49:52 +00:00
|
|
|
nativeBuildInputs = [
|
2017-12-01 12:20:15 +00:00
|
|
|
cmake
|
2018-03-19 15:43:03 +00:00
|
|
|
makeWrapper
|
2020-06-07 18:42:19 +01:00
|
|
|
ninja
|
|
|
|
gfortran
|
2017-12-01 12:49:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2019-11-10 16:44:34 +00:00
|
|
|
libGLU libGL
|
2017-12-01 12:20:15 +00:00
|
|
|
libXt
|
2020-06-07 18:42:19 +01:00
|
|
|
openmpi
|
|
|
|
(python3.withPackages (ps: with ps; [ numpy matplotlib mpi4py ]))
|
|
|
|
tbb
|
|
|
|
boost
|
|
|
|
ffmpeg
|
|
|
|
gdal
|
2017-12-01 12:20:15 +00:00
|
|
|
qtbase
|
|
|
|
qtx11extras
|
|
|
|
qttools
|
|
|
|
qtxmlpatterns
|
2020-06-07 18:42:19 +01:00
|
|
|
qtsvg
|
2017-12-01 12:20:15 +00:00
|
|
|
];
|
2017-09-10 17:00:38 +01:00
|
|
|
|
2020-02-05 18:27:16 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-06-07 18:42:19 +01:00
|
|
|
homepage = "https://www.paraview.org/";
|
2009-10-01 21:18:17 +01:00
|
|
|
description = "3D Data analysis and visualization application";
|
2020-02-05 18:27:16 +00:00
|
|
|
license = licenses.free;
|
|
|
|
maintainers = with maintainers; [ guibert ];
|
|
|
|
platforms = platforms.linux;
|
2009-10-01 21:18:17 +01:00
|
|
|
};
|
2009-03-30 21:06:31 +01:00
|
|
|
}
|