···1819stdenv.mkDerivation rec {
20 pname = "petsc";
21+ version = "3.19.1";
2223 src = fetchurl {
24 url = "http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-${version}.tar.gz";
25+ sha256 = "sha256-dNtgxTyAtI1cOeB7w5qIPsztiLnySl3hfPb0hakD4SA=";
26 };
2728 mpiSupport = !withp4est || p4est.mpiSupport;
···41 substituteInPlace config/install.py \
42 --replace /usr/bin/install_name_tool ${darwin.cctools}/bin/install_name_tool
43 '';
44+45+ # Both OpenMPI and MPICH get confused by the sandbox environment and spew errors like this (both to stdout and stderr):
46+ # [hwloc/linux] failed to find sysfs cpu topology directory, aborting linux discovery.
47+ # [1684747490.391106] [localhost:14258:0] tcp_iface.c:837 UCX ERROR opendir(/sys/class/net) failed: No such file or directory
48+ # These messages contaminate test output, which makes the quicktest suite to fail. The patch adds filtering for these messages.
49+ patches = [ ./filter_mpi_warnings.patch ];
5051 preConfigure = ''
52 export FC="${gfortran}/bin/gfortran" F77="${gfortran}/bin/gfortran"