mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 10:53:52 +00:00
petsc: moved mpiSupport flag to passthru
This commit is contained in:
parent
dc622dce81
commit
1bd56ac6fb
@ -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
|
||||
|
@ -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/";
|
||||
|
Loading…
Reference in New Issue
Block a user