30 lines
866 B
Nix
30 lines
866 B
Nix
|
{ stdenv, fetchurl, cmake, blas, lapack, gfortran, gmm, fltk, libjpeg
|
||
|
, zlib, libGL, libGLU, xorg, opencascade-occt }:
|
||
|
|
||
|
assert (!blas.isILP64) && (!lapack.isILP64);
|
||
|
|
||
|
stdenv.mkDerivation rec {
|
||
|
pname = "gmsh";
|
||
|
version = "4.5.6";
|
||
|
|
||
|
src = fetchurl {
|
||
|
url = "http://gmsh.info/src/gmsh-${version}-source.tgz";
|
||
|
sha256 = "0gs65bgr1ph5lz7r6manqj8cra30s7c94pxilkd2z0p5vq6fpsj6";
|
||
|
};
|
||
|
|
||
|
buildInputs = [ blas lapack gmm fltk libjpeg zlib libGLU libGL
|
||
|
libGLU xorg.libXrender xorg.libXcursor xorg.libXfixes xorg.libXext
|
||
|
xorg.libXft xorg.libXinerama xorg.libX11 xorg.libSM xorg.libICE
|
||
|
opencascade-occt
|
||
|
];
|
||
|
|
||
|
nativeBuildInputs = [ cmake gfortran ];
|
||
|
|
||
|
meta = {
|
||
|
description = "A three-dimensional finite element mesh generator";
|
||
|
homepage = "http://gmsh.info/";
|
||
|
platforms = [ "x86_64-linux" ];
|
||
|
license = stdenv.lib.licenses.gpl2Plus;
|
||
|
};
|
||
|
}
|