Merge pull request #286057 from helsinki-systems/precice_3

precice: 2.5.0 -> 3.0.0
This commit is contained in:
lassulus 2024-02-15 22:08:22 +07:00 committed by GitHub
commit acd8120e73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,16 +1,23 @@
{ lib, stdenv, fetchFromGitHub, cmake, gcc, boost, eigen, libxml2, mpi, python3, petsc }:
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, gcc, boost, eigen, libxml2, mpi, python3, petsc, pkg-config }:
stdenv.mkDerivation rec {
pname = "precice";
version = "2.5.0";
version = "3.0.0";
src = fetchFromGitHub {
owner = "precice";
repo = pname;
rev = "v${version}";
sha256 = "sha256-n/UuiVHw1zwlhwR/HDaKgoMnPy6fm9HWZ5FmAr7F/GE=";
hash = "sha256-RuZ18BFdusMHC+Yuapc2N8cEetLu32e28J34HH+gHOg=";
};
patches = [
(fetchpatch {
url = "https://github.com/precice/precice/commit/9dffe04144ab0f6a92fbff9be91cda71718b9c8e.patch";
hash = "sha256-kSvIfBQH1mBA5CFJo9Usiypol0u9VgHMlUEHK/uHVNQ=";
})
];
cmakeFlags = [
"-DPRECICE_PETScMapping=OFF"
"-DBUILD_SHARED_LIBS=ON"
@ -24,8 +31,8 @@ stdenv.mkDerivation rec {
++ [ "-fpermissive" ]
);
nativeBuildInputs = [ cmake gcc ];
buildInputs = [ boost eigen libxml2 mpi python3 python3.pkgs.numpy ];
nativeBuildInputs = [ cmake gcc pkg-config python3 python3.pkgs.numpy ];
buildInputs = [ boost eigen libxml2 mpi petsc ];
meta = {
description = "preCICE stands for Precise Code Interaction Coupling Environment";