Commit 1bd56ac6 authored by Alexander Kiselyov's avatar Alexander Kiselyov Committed by Emery Hemingway
Browse files

petsc: moved mpiSupport flag to passthru

parent dc622dce
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
{ 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
+4 −2
Original line number Diff line number Diff line
@@ -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/";