petsc: moved mpiSupport flag to passthru

This commit is contained in:
Alexander Kiselyov 2024-08-23 16:29:26 +03:00 committed by Emery Hemingway
parent dc622dce81
commit 1bd56ac6fb
2 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,8 @@
{ lib, stdenv, fetchurl, cmake, gfortran, blas, lapack, mpi, petsc, python3 }:
stdenv.mkDerivation rec {
let
mpiSupport = petsc.passthru.mpiSupport;
in stdenv.mkDerivation rec {
pname = "getdp";
version = "3.6.0";
src = fetchurl {
@ -8,7 +10,6 @@ stdenv.mkDerivation rec {
hash = "sha256-nzefwCV+Z9BHDofuTfhR+vhqm3cCSiUT+7cbtn601N8=";
};
inherit (petsc) mpiSupport;
nativeBuildInputs = [ cmake python3 ];
buildInputs = [ gfortran blas lapack petsc ]
++ lib.optional mpiSupport mpi

View File

@ -36,8 +36,6 @@ stdenv.mkDerivation rec {
hash = "sha256-dxHa8JUJCN4zRIXMCx7gcvbzFH2SPtkJ377ssIevjgU=";
};
inherit mpiSupport;
strictDeps = true;
nativeBuildInputs = [
python3
@ -115,6 +113,10 @@ stdenv.mkDerivation rec {
doInstallCheck = true;
installCheckTarget = "check_install";
passthru = {
inherit mpiSupport;
};
meta = with lib; {
description = "Portable Extensible Toolkit for Scientific computation";
homepage = "https://petsc.org/release/";