From 92dc787ceca4c86d4df79e1d53caaa4e32a882f0 Mon Sep 17 00:00:00 2001 From: qbisi Date: Fri, 14 Feb 2025 18:00:55 +0800 Subject: [PATCH] petsc: reorder build options and external dependency --- pkgs/by-name/pe/petsc/package.nix | 44 ++++++++++++++++++------------- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/pkgs/by-name/pe/petsc/package.nix b/pkgs/by-name/pe/petsc/package.nix index 552416df8ec2..9d5e412fad7b 100644 --- a/pkgs/by-name/pe/petsc/package.nix +++ b/pkgs/by-name/pe/petsc/package.nix @@ -7,32 +7,38 @@ replaceVars, python3, python3Packages, - withPetsc4py ? false, blas, lapack, - mpiSupport ? true, + zlib, # propagated by p4est but required by petsc mpi, # generic mpi dependency mpiCheckPhaseHook, - withP4est ? withFullDeps, - withHdf5 ? withFullDeps, - hdf5, - metis, - withMetis ? withFullDeps, - parmetis, - withParmetis ? false, # parmetis is unfree and should be enabled manualy - scotch, - withPtscotch ? withFullDeps, - scalapack, - withScalapack ? withFullDeps, - mumps_par, - withMumps ? withFullDeps, - pkg-config, - p4est, - zlib, # propagated by p4est but required by petsc + + # Build options petsc-optimized ? false, petsc-scalar-type ? "real", petsc-precision ? "double", - withFullDeps ? false + mpiSupport ? true, + withPetsc4py ? false, # petsc python binding + withFullDeps ? false, # full External libraries support + + # External libraries options + withHdf5 ? withFullDeps, + withMetis ? withFullDeps, + withParmetis ? false, # parmetis is unfree and should be enabled manualy + withPtscotch ? withFullDeps, + withScalapack ? withFullDeps, + withMumps ? withFullDeps, + withP4est ? withFullDeps, + + # External libraries + hdf5, + metis, + parmetis, + scotch, + scalapack, + mumps_par, + pkg-config, + p4est, }: # This version of PETSc does not support a non-MPI p4est build