petsc: add setupHook to set PETSC_DIR env

qbisi 77345dd2 dd6e89f2

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