diff options
Diffstat (limited to 'pkgs/development/libraries/precice/default.nix')
-rw-r--r-- | pkgs/development/libraries/precice/default.nix | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/pkgs/development/libraries/precice/default.nix b/pkgs/development/libraries/precice/default.nix index a22df8c18e05..22726858a225 100644 --- a/pkgs/development/libraries/precice/default.nix +++ b/pkgs/development/libraries/precice/default.nix @@ -1,36 +1,28 @@ -{ lib, stdenv, fetchFromGitHub, cmake, gcc, boost, eigen, libxml2, openmpi, python3, python3Packages }: +{ lib, stdenv, fetchFromGitHub, cmake, gcc, boost, eigen, libxml2, openmpi, python3, python3Packages, petsc }: stdenv.mkDerivation rec { pname = "precice"; - version = "2020-01-20"; + version = "2.0.2"; # Todo next release switch back to versioning but for python3 support master is needed src = fetchFromGitHub { owner = "precice"; repo = pname; - rev = "9f778290416416255fc73a495e962def301648b0"; - sha256 = "1ij43qjbf1aq3lh91gqpviajc8lyl7qkxfccmj5md5vwf88vjaip"; + rev = "v${version}"; + sha256 = "1s41wv2077d2gqj0wsxls6wkgdk9cgzcbmk2q43ha08ccq5i3dav"; }; cmakeFlags = [ + "-DPRECICE_PETScMapping=OFF" "-DBUILD_SHARED_LIBS=ON" - "-DPETSC=off" "-DPYTHON_LIBRARIES=${python3.libPrefix}" "-DPYTHON_INCLUDE_DIR=${python3}/include/${python3.libPrefix}m" ]; nativeBuildInputs = [ cmake gcc ]; buildInputs = [ boost eigen libxml2 openmpi python3 python3Packages.numpy ]; - patches = [ - ./0001-Fix-the-install-target-dirs-to-use-the-CMAKE-flags.patch # CMake Packaging is not perfect upstream, after this PR it is https://github.com/precice/precice/pull/577/files - ]; enableParallelBuilding = true; - postInstall = '' - substituteInPlace "$out"/lib/cmake/precice/preciceTargets.cmake \ - --replace 'INTERFACE_INCLUDE_DIRECTORIES "''${_IMPORT_PREFIX}/include;' 'INTERFACE_INCLUDE_DIRECTORIES "'$out/include';' - ''; # Check if this can be removed after upstream PR 577 - meta = { description = "preCICE stands for Precise Code Interaction Coupling Environment"; license = with lib.licenses; [ gpl3 ]; |