mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
3251013cc1
env values must be strings
37 lines
1.0 KiB
Nix
37 lines
1.0 KiB
Nix
{ lib, stdenv, fetchFromGitHub, cmake, gcc, boost, eigen, libxml2, mpi, python3, petsc }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "precice";
|
|
version = "2.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "precice";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-n/UuiVHw1zwlhwR/HDaKgoMnPy6fm9HWZ5FmAr7F/GE=";
|
|
};
|
|
|
|
cmakeFlags = [
|
|
"-DPRECICE_PETScMapping=OFF"
|
|
"-DBUILD_SHARED_LIBS=ON"
|
|
"-DPYTHON_LIBRARIES=${python3.libPrefix}"
|
|
"-DPYTHON_INCLUDE_DIR=${python3}/include/${python3.libPrefix}"
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString (lib.optionals 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";
|
|
homepage = "https://precice.org/";
|
|
license = with lib.licenses; [ gpl3 ];
|
|
maintainers = with lib.maintainers; [ Scriptkiddi ];
|
|
mainProgram = "binprecice";
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|
|
|
|
|