petsc: moved mpiSupport flag to passthru

authored by Alexander Kiselyov and committed by Emery Hemingway 1bd56ac6 dc622dce

+7 -4
+3 -2
pkgs/applications/science/math/getdp/default.nix
··· 1 1 { lib, stdenv, fetchurl, cmake, gfortran, blas, lapack, mpi, petsc, python3 }: 2 2 3 - stdenv.mkDerivation rec { 3 + let 4 + mpiSupport = petsc.passthru.mpiSupport; 5 + in stdenv.mkDerivation rec { 4 6 pname = "getdp"; 5 7 version = "3.6.0"; 6 8 src = fetchurl { ··· 8 10 hash = "sha256-nzefwCV+Z9BHDofuTfhR+vhqm3cCSiUT+7cbtn601N8="; 9 11 }; 10 12 11 - inherit (petsc) mpiSupport; 12 13 nativeBuildInputs = [ cmake python3 ]; 13 14 buildInputs = [ gfortran blas lapack petsc ] 14 15 ++ lib.optional mpiSupport mpi
+4 -2
pkgs/by-name/pe/petsc/package.nix
··· 36 36 hash = "sha256-dxHa8JUJCN4zRIXMCx7gcvbzFH2SPtkJ377ssIevjgU="; 37 37 }; 38 38 39 - inherit mpiSupport; 40 - 41 39 strictDeps = true; 42 40 nativeBuildInputs = [ 43 41 python3 ··· 114 112 # the library is installed and available. 115 113 doInstallCheck = true; 116 114 installCheckTarget = "check_install"; 115 + 116 + passthru = { 117 + inherit mpiSupport; 118 + }; 117 119 118 120 meta = with lib; { 119 121 description = "Portable Extensible Toolkit for Scientific computation";