2021-01-15 13:21:58 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, blas, lapack, gfortran, gmm, fltk, libjpeg
|
2019-11-10 16:44:34 +00:00
|
|
|
, zlib, libGL, libGLU, xorg, opencascade-occt }:
|
2016-06-09 17:51:21 +01:00
|
|
|
|
2020-04-20 21:50:55 +01:00
|
|
|
assert (!blas.isILP64) && (!lapack.isILP64);
|
2020-03-31 15:47:18 +01:00
|
|
|
|
2019-08-14 17:42:40 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gmsh";
|
2022-02-11 18:31:28 +00:00
|
|
|
version = "4.9.4";
|
2016-06-09 17:51:21 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-01-08 00:18:15 +00:00
|
|
|
url = "https://gmsh.info/src/gmsh-${version}-source.tgz";
|
2022-02-11 18:31:28 +00:00
|
|
|
sha256 = "sha256-rP8zQtGQfEKaS+PkWW7UT2zUP9WpSrdWZ/SGPNzy92k=";
|
2016-06-09 17:51:21 +01:00
|
|
|
};
|
|
|
|
|
2022-02-12 16:13:53 +00:00
|
|
|
buildInputs = [
|
|
|
|
blas lapack gmm fltk libjpeg zlib opencascade-occt
|
|
|
|
] ++ lib.optionals (!stdenv.isDarwin) [
|
|
|
|
libGL libGLU xorg.libXrender xorg.libXcursor xorg.libXfixes
|
|
|
|
xorg.libXext xorg.libXft xorg.libXinerama xorg.libX11 xorg.libSM
|
|
|
|
xorg.libICE
|
2016-06-09 17:51:21 +01:00
|
|
|
];
|
|
|
|
|
2019-06-07 17:01:57 +01:00
|
|
|
nativeBuildInputs = [ cmake gfortran ];
|
2018-05-23 16:32:43 +01:00
|
|
|
|
2016-06-09 17:51:21 +01:00
|
|
|
meta = {
|
|
|
|
description = "A three-dimensional finite element mesh generator";
|
2022-01-08 00:18:15 +00:00
|
|
|
homepage = "https://gmsh.info/";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2016-06-09 17:51:21 +01:00
|
|
|
};
|
|
|
|
}
|