diff options
author | Carsten Burstedde <burstedde@ins.uni-bonn.de> | 2021-07-01 22:31:19 +0200 |
---|---|---|
committer | Carsten Burstedde <burstedde@ins.uni-bonn.de> | 2021-07-01 22:57:26 +0200 |
commit | 870b2847a42822384b55e13ed6317d9714e20407 (patch) | |
tree | 0d433734b3df0c78d1a4a43cc7110a40085a45c5 /pkgs/applications/science/math/getdp | |
parent | bcf9629def740946f74e56d0cf0fd1dfd6772d9a (diff) |
getdp: align with latest petsc dependency
Diffstat (limited to 'pkgs/applications/science/math/getdp')
-rw-r--r-- | pkgs/applications/science/math/getdp/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/applications/science/math/getdp/default.nix b/pkgs/applications/science/math/getdp/default.nix index 39d9c866caef8..5ea3550d08a44 100644 --- a/pkgs/applications/science/math/getdp/default.nix +++ b/pkgs/applications/science/math/getdp/default.nix @@ -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"; |