petsc: add setupHook to set PETSC_DIR env

qbisi 77345dd2 dd6e89f2

+3 -5
+2
pkgs/by-name/pe/petsc/package.nix
··· 179 179 inherit mpiSupport; 180 180 }; 181 181 182 + setupHook = ./setup-hook.sh; 183 + 182 184 meta = with lib; { 183 185 description = "Portable Extensible Toolkit for Scientific computation"; 184 186 homepage = "https://petsc.org/release/";
+1
pkgs/by-name/pe/petsc/setup-hook.sh
··· 1 + export PETSC_DIR=@out@
-5
pkgs/by-name/pf/pflotran/package.nix
··· 54 54 --subst-var-by "HDF5_FORTRAN_INCLUDE" "${lib.getDev hdf5-fortran-mpi}/include" 55 55 ''; 56 56 57 - configureFlags = [ 58 - "--with-petsc-dir=${petsc}" 59 - "--with-petsc-arch=linux-gnu-c-release" 60 - ]; 61 - 62 57 meta = with lib; { 63 58 description = "Parallel, multi-physics simulation code for subsurface flow and transport"; 64 59 homepage = "https://pflotran.org/";