git.iko.soy/typeable/nixpkgs
on master help sign in
paraview: 5.6.3 -> 5.8.0
commit7d424a400d5eed099b4d1d8ab6221cceebe8b708 authorJonathan Jeppener-Haltenhoff <jobojeha@jeppener.de> dateSun 7 Jun 2020, 19:42 (6 years ago) parent72158c2
1 file changed+47−27
pkgs/applications/graphics/paraview/default.nix+47−27
pkgs/applications/graphics/paraview/default.nix+47−27
@@ -1,26 +1,33 @@
1−{ stdenv, fetchFromGitHub, cmake, makeWrapper, qtbase , qttools, python
2−, libGLU, libGL , libXt, qtx11extras, qtxmlpatterns , mkDerivation }:
1+{ boost, cmake, fetchFromGitHub, ffmpeg, qtbase, qtx11extras,
2+ qttools, qtxmlpatterns, qtsvg, gdal, gfortran, libXt, makeWrapper,
3+ mkDerivation, ninja, openmpi, python3, stdenv, tbb, libGLU, libGL }:
34
45mkDerivation rec {
56 pname = "paraview";
6− version = "5.6.3";
7+ version = "5.8.0";
78
8− # fetching from GitHub instead of taking an "official" source
9− # tarball because of missing submodules there
109 src = fetchFromGitHub {
1110 owner = "Kitware";
1211 repo = "ParaView";
1312 rev = "v${version}";
14− sha256 = "0zcij59pg47c45gfddnpbin13w16smzhcbivzm1k4pg4366wxq1q";
13+ sha256 = "1mka6wwg9mbkqi3phs29mvxq6qbc44sspbm4awwamqhilh4grhrj";
1514 fetchSubmodules = true;
1615 };
1716
18− cmakeFlags = [
19− "-DPARAVIEW_ENABLE_PYTHON=ON"
20− "-DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON"
21− "-DPARAVIEW_ENABLE_EMBEDDED_DOCUMENTATION=OFF"
22− "-DOpenGL_GL_PREFERENCE=GLVND"
23− ];
17+ # Avoid error: format not a string literal and
18+ # no format arguments [-Werror=format-security]
19+ preConfigure = ''
20+ substituteInPlace VTK/Common/Core/vtkLogger.h \
21+ --replace 'vtkLogScopeF(verbosity_name, __func__)' 'vtkLogScopeF(verbosity_name, "%s", __func__)'
22+
23+ substituteInPlace VTK/Common/Core/vtkLogger.h \
24+ --replace 'vtkVLogScopeF(level, __func__)' 'vtkVLogScopeF(level, "%s", __func__)'
25+ '';
26+
27+ # Find the Qt platform plugin "minimal"
28+ patchPhase = ''
29+ export QT_PLUGIN_PATH=${qtbase.bin}/${qtbase.qtPluginPrefix}
30+ '';
2431
2532 # During build, binaries are called that rely on freshly built
2633 # libraries. These reside in build/lib, and are not found by
@@ -29,37 +36,50 @@ mkDerivation rec {
2936 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/lib:$PWD/VTK/ThirdParty/vtkm/vtk-m/lib
3037 '';
3138
32− enableParallelBuilding = true;
39+ cmakeFlags = [
40+ "-DCMAKE_BUILD_TYPE=Release"
41+ "-DPARAVIEW_ENABLE_FFMPEG=ON"
42+ "-DPARAVIEW_ENABLE_GDAL=ON"
43+ "-DPARAVIEW_ENABLE_MOTIONFX=ON"
44+ "-DPARAVIEW_ENABLE_VISITBRIDGE=ON"
45+ "-DPARAVIEW_ENABLE_XDMF3=ON"
46+ "-DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON"
47+ "-DPARAVIEW_USE_MPI=ON"
48+ "-DPARAVIEW_USE_PYTHON=ON"
49+ "-DVTK_SMP_IMPLEMENTATION_TYPE=TBB"
50+ "-DVTKm_ENABLE_MPI=ON"
51+ "-DCMAKE_INSTALL_LIBDIR=lib"
52+ "-DCMAKE_INSTALL_INCLUDEDIR=include"
53+ "-DCMAKE_INSTALL_BINDIR=bin"
54+ "-DOpenGL_GL_PREFERENCE=GLVND"
55+ "-GNinja"
56+ ];
3357
3458 nativeBuildInputs = [
3559 cmake
3660 makeWrapper
61+ ninja
62+ gfortran
3763 ];
3864
3965 buildInputs = [
40− python
41− python.pkgs.numpy
4266 libGLU libGL
4367 libXt
68+ openmpi
69+ (python3.withPackages (ps: with ps; [ numpy matplotlib mpi4py ]))
70+ tbb
71+ boost
72+ ffmpeg
73+ gdal
4474 qtbase
4575 qtx11extras
4676 qttools
4777 qtxmlpatterns
78+ qtsvg
4879 ];
4980
50− # Paraview links into the Python library, resolving symbolic links on the way,
51− # so we need to put the correct sitePackages (with numpy) back on the path
52− preFixup = ''
53− wrapQtApp $out/bin/paraview \
54− --prefix PYTHONPATH "${python.pkgs.numpy}/${python.sitePackages}"
55− wrapQtApp $out/bin/pvbatch \
56− --prefix PYTHONPATH "${python.pkgs.numpy}/${python.sitePackages}"
57− wrapQtApp $out/bin/pvpython \
58− --prefix PYTHONPATH "${python.pkgs.numpy}/${python.sitePackages}"
59− '';
60−
6181 meta = with stdenv.lib; {
62− homepage = "http://www.paraview.org/";
82+ homepage = "https://www.paraview.org/";
6383 description = "3D Data analysis and visualization application";
6484 license = licenses.free;
6585 maintainers = with maintainers; [ guibert ];