mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 09:34:36 +00:00
Merge pull request #311465 from wegank/paraview-bump
paraview: 5.11.2 -> 5.12.0
This commit is contained in:
commit
0b0779f542
@ -6,13 +6,13 @@
|
||||
}:
|
||||
|
||||
let
|
||||
version = "5.11.2";
|
||||
version = "5.12.0";
|
||||
|
||||
docFiles = [
|
||||
(fetchurl {
|
||||
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";
|
||||
name = "Tutorial.pdf";
|
||||
hash = "sha256-KIcd5GG+1L3rbj4qdLbc+eDa5Wy4+nqiVIxfHu5Tdpg=";
|
||||
hash = "sha256-ETA799peqP9RAjcqPBwVb8egKfQJAuIXNgso+k8o50Q=";
|
||||
})
|
||||
(fetchurl {
|
||||
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";
|
||||
@ -35,7 +35,7 @@ in stdenv.mkDerivation rec {
|
||||
owner = "paraview";
|
||||
repo = "paraview";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-fe/4xxxlkal08vE971FudTnESFfGMYzuvSyAMS6HSxI=";
|
||||
hash = "sha256-PAD48IlOU39TosjfTiDz7IjEeYEP/7F75M+8dYBIUxI=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
@ -86,12 +86,6 @@ in stdenv.mkDerivation rec {
|
||||
qtsvg
|
||||
];
|
||||
|
||||
patches = [
|
||||
./dont-redefine-strlcat.patch
|
||||
];
|
||||
|
||||
env.CXXFLAGS = "-include cstdint";
|
||||
|
||||
postInstall = let docDir = "$out/share/paraview-${lib.versions.majorMinor version}/doc"; in
|
||||
lib.optionalString withDocs ''
|
||||
mkdir -p ${docDir};
|
||||
|
@ -1,28 +0,0 @@
|
||||
--- a/VTK/ThirdParty/netcdf/vtknetcdf/include/vtk_netcdf_mangle.h 2023-11-27 21:11:33.562949964 +0100
|
||||
+++ b/VTK/ThirdParty/netcdf/vtknetcdf/include/vtk_netcdf_mangle.h 2023-11-27 21:11:33.562949964 +0100
|
||||
@@ -1246,7 +1246,7 @@
|
||||
#define write_numrecs vtknetcdf_write_numrecs
|
||||
|
||||
/* Only define strlcat conditionally, as it's provided by system headers on the BSDs. */
|
||||
-#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(_BSD_SOURCE)
|
||||
+#ifndef HAVE_STRLCAT
|
||||
#define strlcat vtknetcdf_strlcat
|
||||
#endif
|
||||
|
||||
--- a/VTK/ThirdParty/netcdf/vtknetcdf/config.h.in 2023-11-27 21:10:35.113525241 +0100
|
||||
+++ b/VTK/ThirdParty/netcdf/vtknetcdf/config.h.in 2023-11-27 21:10:55.241982399 +0100
|
||||
@@ -1,7 +1,5 @@
|
||||
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
-#include "vtk_netcdf_mangle.h"
|
||||
-
|
||||
/* Define if building universal (internal helper macro) */
|
||||
#cmakedefine AC_APPLE_UNIVERSAL_BUILD
|
||||
|
||||
@@ -621,4 +619,6 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
+#include "vtk_netcdf_mangle.h"
|
||||
+
|
||||
#include "ncconfigure.h"
|
Loading…
Reference in New Issue
Block a user