2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, git, gfortran, mpi, blas, liblapack, qt4, qwt6_qt4, pkg-config }:
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "elmerfem";
|
2021-12-30 13:39:12 +00:00
|
|
|
version = "9.0";
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elmercsc";
|
|
|
|
repo = "elmerfem";
|
|
|
|
rev = "release-${version}";
|
2021-12-30 13:39:12 +00:00
|
|
|
sha256 = "VK7jvu4s5d7k0c39XqY9dEzg/vXtX5Yr/09VcuZVQ9A=";
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
nativeBuildInputs = [ cmake gfortran pkg-config git ];
|
|
|
|
buildInputs = [ mpi blas liblapack qt4 qwt6_qt4 ];
|
2020-05-03 17:38:23 +00: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"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-05-15 21:57:56 +00:00
|
|
|
homepage = "https://elmerfem.org/";
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "A finite element software for multiphysical problems";
|
2020-05-03 17:38:23 +00:00
|
|
|
platforms = platforms.unix;
|
2021-12-30 13:39:12 +00:00
|
|
|
maintainers = with maintainers; [ wulfsta broke ];
|
2020-05-03 17:38:23 +00:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|