mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
49477e7bfa
precice: 2.1.1 -> 2.2.0
36 lines
993 B
Nix
36 lines
993 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, gcc, boost, eigen, libxml2, mpi, python3, petsc }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "precice";
|
|
version = "2.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "precice";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-AQc+p/twsfkzwpWeznGpLLSqINKSrWCwH+PdNIrdYA8=";
|
|
};
|
|
|
|
cmakeFlags = [
|
|
"-DPRECICE_PETScMapping=OFF"
|
|
"-DBUILD_SHARED_LIBS=ON"
|
|
"-DPYTHON_LIBRARIES=${python3.libPrefix}"
|
|
"-DPYTHON_INCLUDE_DIR=${python3}/include/${python3.libPrefix}"
|
|
];
|
|
|
|
NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin [ "-D_GNU_SOURCE" ];
|
|
|
|
nativeBuildInputs = [ cmake gcc ];
|
|
buildInputs = [ boost eigen libxml2 mpi python3 python3.pkgs.numpy ];
|
|
|
|
meta = {
|
|
description = "preCICE stands for Precise Code Interaction Coupling Environment";
|
|
license = with lib.licenses; [ gpl3 ];
|
|
homepage = "https://www.precice.org/";
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [ Scriptkiddi ];
|
|
};
|
|
}
|
|
|
|
|