getdp: align with latest petsc dependency
This commit is contained in:
parent
bcf9629def
commit
870b2847a4
1 changed files with 7 additions and 3 deletions
|
@ -1,15 +1,19 @@
|
|||
{ lib, stdenv, fetchurl, cmake, gfortran, blas, lapack, mpi, petsc, python3 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "getdp-${version}";
|
||||
pname = "getdp";
|
||||
version = "3.3.0";
|
||||
src = fetchurl {
|
||||
url = "http://getdp.info/src/getdp-${version}-source.tgz";
|
||||
sha256 = "1pfviy2bw8z5y6c15czvlvyjjg9pvpgrj9fr54xfi2gmvs7zkgpf";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake gfortran ];
|
||||
buildInputs = [ blas lapack mpi petsc python3 ];
|
||||
inherit (petsc) mpiSupport;
|
||||
nativeBuildInputs = [ cmake python3 ];
|
||||
buildInputs = [ gfortran blas lapack petsc ]
|
||||
++ lib.optional mpiSupport mpi
|
||||
;
|
||||
cmakeFlags = lib.optional mpiSupport "-DENABLE_MPI=1";
|
||||
|
||||
meta = with lib; {
|
||||
description = "A General Environment for the Treatment of Discrete Problems";
|
||||
|
|
Loading…
Reference in a new issue