Merge pull request #334441 from bcdarwin/update-paraview

paraview: 5.12.0 -> 5.12.1
This commit is contained in:
David Guibert 2024-08-14 08:48:35 +02:00 committed by GitHub
commit 56b6549e98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
};
}