2020-05-14 13:20:09 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, gcc, boost, eigen, libxml2, openmpi, python3, python3Packages, petsc }:
|
2019-12-11 14:39:54 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "precice";
|
2020-05-14 13:20:09 +01:00
|
|
|
version = "2.0.2";
|
2020-01-04 15:32:59 +00:00
|
|
|
# Todo next release switch back to versioning but for python3 support master is needed
|
2019-12-11 14:39:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "precice";
|
|
|
|
repo = pname;
|
2020-05-14 13:20:09 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1s41wv2077d2gqj0wsxls6wkgdk9cgzcbmk2q43ha08ccq5i3dav";
|
2019-12-11 14:39:54 +00:00
|
|
|
};
|
|
|
|
|
2020-01-04 15:32:59 +00:00
|
|
|
cmakeFlags = [
|
2020-05-14 13:20:09 +01:00
|
|
|
"-DPRECICE_PETScMapping=OFF"
|
2020-01-04 15:32:59 +00:00
|
|
|
"-DBUILD_SHARED_LIBS=ON"
|
|
|
|
"-DPYTHON_LIBRARIES=${python3.libPrefix}"
|
|
|
|
"-DPYTHON_INCLUDE_DIR=${python3}/include/${python3.libPrefix}m"
|
|
|
|
];
|
2019-12-11 14:39:54 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake gcc ];
|
2020-01-04 15:32:59 +00:00
|
|
|
buildInputs = [ boost eigen libxml2 openmpi python3 python3Packages.numpy ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-12-11 14:39:54 +00:00
|
|
|
meta = {
|
|
|
|
description = "preCICE stands for Precise Code Interaction Coupling Environment";
|
|
|
|
license = with lib.licenses; [ gpl3 ];
|
|
|
|
homepage = "https://www.precice.org/";
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ Scriptkiddi ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2020-01-04 15:32:59 +00:00
|
|
|
|