precice: 2.5.0 -> 3.0.0
This commit is contained in:
parent
ff3edd977f
commit
7920b15ab4
@ -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 {
|
stdenv.mkDerivation rec {
|
||||||
pname = "precice";
|
pname = "precice";
|
||||||
version = "2.5.0";
|
version = "3.0.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "precice";
|
owner = "precice";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
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 = [
|
cmakeFlags = [
|
||||||
"-DPRECICE_PETScMapping=OFF"
|
"-DPRECICE_PETScMapping=OFF"
|
||||||
"-DBUILD_SHARED_LIBS=ON"
|
"-DBUILD_SHARED_LIBS=ON"
|
||||||
@ -24,8 +31,8 @@ stdenv.mkDerivation rec {
|
|||||||
++ [ "-fpermissive" ]
|
++ [ "-fpermissive" ]
|
||||||
);
|
);
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake gcc ];
|
nativeBuildInputs = [ cmake gcc pkg-config python3 python3.pkgs.numpy ];
|
||||||
buildInputs = [ boost eigen libxml2 mpi python3 python3.pkgs.numpy ];
|
buildInputs = [ boost eigen libxml2 mpi petsc ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "preCICE stands for Precise Code Interaction Coupling Environment";
|
description = "preCICE stands for Precise Code Interaction Coupling Environment";
|
||||||
|
Loading…
Reference in New Issue
Block a user