2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, gcc, boost, eigen, libxml2, mpi, python3, petsc }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "precice";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "2.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "precice";
|
|
|
|
repo = pname;
|
2020-06-02 18:00:15 +00:00
|
|
|
rev = "v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256:0p8d2xf4bl41b30yp38sqyp4fipwgcdhl0khxcv5g69fxvz2i2il";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [
|
2020-06-02 18:00:15 +00:00
|
|
|
"-DPRECICE_PETScMapping=OFF"
|
2020-04-24 23:36:52 +00:00
|
|
|
"-DBUILD_SHARED_LIBS=ON"
|
|
|
|
"-DPYTHON_LIBRARIES=${python3.libPrefix}"
|
2020-11-30 08:33:03 +00:00
|
|
|
"-DPYTHON_INCLUDE_DIR=${python3}/include/${python3.libPrefix}"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin [ "-D_GNU_SOURCE" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ cmake gcc ];
|
2021-02-05 17:12:51 +00:00
|
|
|
buildInputs = [ boost eigen libxml2 mpi python3 python3.pkgs.numpy ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "preCICE stands for Precise Code Interaction Coupling Environment";
|
|
|
|
license = with lib.licenses; [ gpl3 ];
|
2022-01-03 16:56:52 +00:00
|
|
|
homepage = "https://precice.org/";
|
2020-10-07 09:15:18 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with lib.maintainers; [ Scriptkiddi ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|