2021-01-10 12:40:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, git, gfortran, mpi, blas, liblapack, qt4, qwt6_qt4, pkg-config }:
|
2020-04-25 21:16:15 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "elmerfem";
|
|
|
|
version = "8.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elmercsc";
|
|
|
|
repo = "elmerfem";
|
|
|
|
rev = "release-${version}";
|
|
|
|
sha256 = "0vk31lplxlng173q8jjcpbyj1gaf98jvkqjvi9077d1nslya7vpm";
|
|
|
|
};
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config git ];
|
2021-01-10 12:40:19 +00:00
|
|
|
buildInputs = [ gfortran mpi blas liblapack qt4 qwt6_qt4 ];
|
2020-04-25 21:16:15 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs ./
|
|
|
|
'';
|
|
|
|
|
|
|
|
storepath = placeholder "out";
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DELMER_INSTALL_LIB_DIR=${storepath}/lib"
|
|
|
|
"-DWITH_OpenMP:BOOLEAN=TRUE"
|
|
|
|
"-DWITH_MPI:BOOLEAN=TRUE"
|
|
|
|
"-DWITH_ELMERGUI:BOOLEAN=TRUE"
|
|
|
|
"-DCMAKE_INSTALL_LIBDIR=lib"
|
|
|
|
"-DCMAKE_INSTALL_INCLUDEDIR=include"
|
|
|
|
"-DCMAKE_OpenGL_GL_PREFERENCE=GLVND"
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./fix-cmake.patch
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-05-08 14:20:47 +01:00
|
|
|
homepage = "https://elmerfem.org/";
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "A finite element software for multiphysical problems";
|
2020-04-25 21:16:15 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.wulfsta ];
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|