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