diff --git a/pkgs/applications/graphics/paraview/default.nix b/pkgs/applications/graphics/paraview/default.nix index 3394fc6825c7..f8afeb1f828b 100644 --- a/pkgs/applications/graphics/paraview/default.nix +++ b/pkgs/applications/graphics/paraview/default.nix @@ -1,12 +1,32 @@ -{ lib, stdenv, fetchFromGitLab, fetchurl -, boost, cmake, ffmpeg, wrapQtAppsHook, qtbase, qtx11extras -, qttools, qtxmlpatterns, qtsvg, gdal, gfortran, libXt, makeWrapper -, ninja, mpi, python3, tbb, libGLU, libGL -, withDocs ? true +{ + lib, + stdenv, + fetchFromGitLab, + fetchurl, + boost, + cmake, + ffmpeg, + wrapQtAppsHook, + qtbase, + qtx11extras, + qttools, + qtxmlpatterns, + qtsvg, + gdal, + gfortran, + libXt, + makeWrapper, + ninja, + mpi, + python3, + tbb, + libGLU, + libGL, + withDocs ? true, }: let - version = "5.12.0"; + version = "5.12.1"; docFiles = [ (fetchurl { @@ -26,7 +46,8 @@ let }) ]; -in stdenv.mkDerivation rec { +in +stdenv.mkDerivation rec { pname = "paraview"; inherit version; @@ -35,7 +56,7 @@ in stdenv.mkDerivation rec { owner = "paraview"; repo = "paraview"; rev = "v${version}"; - hash = "sha256-PAD48IlOU39TosjfTiDz7IjEeYEP/7F75M+8dYBIUxI="; + hash = "sha256-jbqMqj3D7LTwQ+hHIPscCHw4TfY/BR2HuVmMYom2+dA="; fetchSubmodules = true; }; @@ -86,7 +107,10 @@ in stdenv.mkDerivation rec { qtsvg ]; - postInstall = let docDir = "$out/share/paraview-${lib.versions.majorMinor version}/doc"; in + postInstall = + let + docDir = "$out/share/paraview-${lib.versions.majorMinor version}/doc"; + in lib.optionalString withDocs '' mkdir -p ${docDir}; for docFile in ${lib.concatStringsSep " " docFiles}; do @@ -95,14 +119,21 @@ in stdenv.mkDerivation rec { ''; propagatedBuildInputs = [ - (python3.withPackages (ps: with ps; [ numpy matplotlib mpi4py ])) + (python3.withPackages ( + ps: with ps; [ + numpy + matplotlib + mpi4py + ] + )) ]; - meta = with lib; { - homepage = "https://www.paraview.org/"; + meta = { + homepage = "https://www.paraview.org"; description = "3D Data analysis and visualization application"; - license = licenses.bsd3; - maintainers = with maintainers; [ guibert ]; - platforms = platforms.linux; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ guibert ]; + changelog = "https://www.kitware.com/paraview-${lib.concatStringsSep "-" (lib.versions.splitVersion version)}-release-notes"; + platforms = lib.platforms.linux; }; }