33 url = "https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v${lib.versions.majorMinor version}&type=data&os=Sources&downloadFile=ParaViewTutorial-${version}.pdf";
34 name = "Tutorial.pdf";
35 hash = "sha256-hoCa/aTy2mmsPHP3Zm0hLZlZKbtUMpjUlc2rFKKChco=";
38 url = "https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v${lib.versions.majorMinor version}&type=data&os=Sources&downloadFile=ParaViewGettingStarted-${version}.pdf";
39 name = "GettingStarted.pdf";
40 hash = "sha256-ptPQA8By8Hj0qI5WRtw3ZhklelXeYeJwVaUdfd6msJM=";
43 url = "https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v${lib.versions.majorMinor version}&type=data&os=Sources&downloadFile=ParaViewCatalystGuide-${version}.pdf";
44 name = "CatalystGuide.pdf";
45 hash = "sha256-t1lJ1Wiswhdxovt2O4sXTXfFxshDiZZVdnkXt/+BQn8=";
50 stdenv.mkDerivation rec {
54 src = fetchFromGitLab {
55 domain = "gitlab.kitware.com";
59 hash = "sha256-JRSuvBON2n0UnbrFia4Qmf6eYb1Mc+Z7dIcXSeUhpIc=";
60 fetchSubmodules = true;
63 # Find the Qt platform plugin "minimal"
65 export QT_PLUGIN_PATH=${qtbase.bin}/${qtbase.qtPluginPrefix}
69 "-DPARAVIEW_ENABLE_FFMPEG=ON"
70 "-DPARAVIEW_ENABLE_GDAL=ON"
71 "-DPARAVIEW_ENABLE_MOTIONFX=ON"
72 "-DPARAVIEW_ENABLE_VISITBRIDGE=ON"
73 "-DPARAVIEW_ENABLE_XDMF3=ON"
74 "-DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON"
75 "-DPARAVIEW_USE_MPI=ON"
76 "-DPARAVIEW_USE_PYTHON=ON"
77 "-DVTK_SMP_IMPLEMENTATION_TYPE=TBB"
78 "-DVTKm_ENABLE_MPI=ON"
79 "-DCMAKE_INSTALL_LIBDIR=lib"
80 "-DCMAKE_INSTALL_INCLUDEDIR=include"
81 "-DCMAKE_INSTALL_BINDIR=bin"
82 "-DOpenGL_GL_PREFERENCE=GLVND"
112 docDir = "$out/share/paraview-${lib.versions.majorMinor version}/doc";
114 lib.optionalString withDocs ''
116 for docFile in ${lib.concatStringsSep " " docFiles}; do
117 cp $docFile ${docDir}/$(stripHash $docFile);
121 propagatedBuildInputs = [
122 (python3.withPackages (
132 homepage = "https://www.paraview.org";
133 description = "3D Data analysis and visualization application";
134 license = lib.licenses.bsd3;
135 maintainers = with lib.maintainers; [ guibert ];
136 changelog = "https://www.kitware.com/paraview-${lib.concatStringsSep "-" (lib.versions.splitVersion version)}-release-notes";
137 platforms = lib.platforms.linux;