petsc, p4est: strict dependencies (#130156)
This commit is contained in:
parent
82037871bb
commit
4f5137569b
3 changed files with 8 additions and 4 deletions
|
@ -22,11 +22,12 @@ stdenv.mkDerivation {
|
|||
sha256 = "14vm0b162jh8399pgpsikbwq4z5lkrw9vfzy3drqykw09n6nc53z";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
||||
propagatedBuildInputs = [ zlib ]
|
||||
++ lib.optional mpiSupport mpi
|
||||
propagatedNativeBuildInputs = lib.optional mpiSupport mpi
|
||||
++ lib.optional isOpenmpi openssh
|
||||
;
|
||||
propagatedBuildInputs = [ zlib ];
|
||||
inherit debugEnable mpiSupport;
|
||||
|
||||
postPatch = ''
|
||||
|
|
|
@ -21,6 +21,7 @@ stdenv.mkDerivation {
|
|||
sha256 = "0vffnf48rzw6d0as4c3x1f31b4kapmdzr1hfj5rz5ngah72gqrph";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
||||
propagatedBuildInputs = [ p4est-sc ];
|
||||
buildInputs = lib.optional withMetis metis;
|
||||
|
|
|
@ -28,10 +28,12 @@ stdenv.mkDerivation rec {
|
|||
mpiSupport = !withp4est || p4est.mpiSupport;
|
||||
withp4est = petsc-withp4est;
|
||||
|
||||
nativeBuildInputs = [ python3 gfortran ];
|
||||
buildInputs = [ blas lapack ]
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ python3 gfortran ]
|
||||
++ lib.optional mpiSupport mpi
|
||||
++ lib.optional (mpiSupport && mpi.pname == "openmpi") openssh
|
||||
;
|
||||
buildInputs = [ blas lapack ]
|
||||
++ lib.optional withp4est p4est
|
||||
;
|
||||
|
||||
|
|
Loading…
Reference in a new issue