2024-06-05 15:53:02 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, git
|
|
|
|
, gfortran
|
|
|
|
, mpi
|
|
|
|
, blas
|
|
|
|
, liblapack
|
|
|
|
, pkg-config
|
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, opencascade-occt_7_6
|
|
|
|
, libsForQt5
|
|
|
|
, tbb
|
|
|
|
, vtkWithQt5
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
opencascade-occt = opencascade-occt_7_6;
|
|
|
|
in
|
2020-05-03 17:38:23 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "elmerfem";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "unstable-2023-09-18";
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elmercsc";
|
2023-04-29 16:46:19 +00:00
|
|
|
repo = pname;
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "0fcced06f91c93f44557efd6a5f10b2da5c7066c";
|
|
|
|
hash = "sha256-UuARDYW7D3a4dB6I86s2Ed5ecQxc+Y/es3YIeF2VyTc=";
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
gfortran
|
|
|
|
pkg-config
|
|
|
|
libsForQt5.wrapQtAppsHook
|
|
|
|
];
|
2024-06-05 15:53:02 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
buildInputs = [
|
|
|
|
mpi
|
|
|
|
blas
|
|
|
|
liblapack
|
|
|
|
libsForQt5.qtbase
|
|
|
|
libsForQt5.qtscript
|
|
|
|
libsForQt5.qwt
|
|
|
|
libGL
|
|
|
|
libGLU
|
2023-10-09 19:29:22 +00:00
|
|
|
opencascade-occt
|
2023-04-29 16:46:19 +00:00
|
|
|
tbb
|
|
|
|
vtkWithQt5
|
2022-05-18 14:49:53 +00:00
|
|
|
];
|
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"
|
2022-05-18 14:49:53 +00:00
|
|
|
"-DWITH_QT5:BOOLEAN=TRUE"
|
|
|
|
"-DWITH_OCC:BOOLEAN=TRUE"
|
|
|
|
"-DWITH_VTK:BOOLEAN=TRUE"
|
2020-05-03 17:38:23 +00:00
|
|
|
"-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; {
|
2023-04-29 16:46:19 +00:00
|
|
|
homepage = "https://elmerfem.org";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|