precice: init at 1.6.1
This commit is contained in:
parent
e17e5f0ace
commit
6cff373dd7
33
pkgs/development/libraries/precice/default.nix
Normal file
33
pkgs/development/libraries/precice/default.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ lib, stdenv, fetchFromGitHub, cmake, gcc, boost, eigen, libxml2, openmpi, python2, python2Packages }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "precice";
|
||||
version = "1.6.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "precice";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "00631zw6cpm67j35cwad04nwgfcvlxa8p660fwz30pgj2hzdx3d2";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
cmakeFlags="-DBUILD_SHARED_LIBS=ON -DPETSC=off"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ cmake gcc ];
|
||||
buildInputs = [ boost eigen libxml2 openmpi python2 python2Packages.numpy ];
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib
|
||||
cp libprecice.so libprecice.so.1.6.1 $out/lib/
|
||||
'';
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
|
@ -1997,6 +1997,8 @@ in
|
||||
|
||||
psstop = callPackage ../tools/system/psstop { };
|
||||
|
||||
precice = callPackage ../development/libraries/precice { };
|
||||
|
||||
parallel-rust = callPackage ../tools/misc/parallel-rust { };
|
||||
|
||||
pyCA = python3Packages.callPackage ../applications/video/pyca {};
|
||||
|
Loading…
Reference in New Issue
Block a user