nixpkgs-suyu/pkgs/applications/science/math/gmsh/default.nix

30 lines
863 B
Nix
Raw Normal View History

2021-01-15 14:21:58 +01:00
{ lib, stdenv, fetchurl, cmake, blas, lapack, gfortran, gmm, fltk, libjpeg
2019-11-10 17:44:34 +01:00
, zlib, libGL, libGLU, xorg, opencascade-occt }:
2016-06-09 18:51:21 +02:00
assert (!blas.isILP64) && (!lapack.isILP64);
2019-08-14 18:42:40 +02:00
stdenv.mkDerivation rec {
pname = "gmsh";
2021-03-08 12:54:52 +01:00
version = "4.8.0";
2016-06-09 18:51:21 +02:00
src = fetchurl {
url = "http://gmsh.info/src/gmsh-${version}-source.tgz";
2021-03-08 12:54:52 +01:00
sha256 = "sha256-JYd4PEsClj+divtxfJlUyu+kY+ouChLhZZMH5qDX6ms=";
2016-06-09 18:51:21 +02:00
};
buildInputs = [ blas lapack gmm fltk libjpeg zlib libGLU libGL
libGLU xorg.libXrender xorg.libXcursor xorg.libXfixes xorg.libXext
2016-06-09 18:51:21 +02:00
xorg.libXft xorg.libXinerama xorg.libX11 xorg.libSM xorg.libICE
2019-08-14 18:42:40 +02:00
opencascade-occt
2016-06-09 18:51:21 +02:00
];
nativeBuildInputs = [ cmake gfortran ];
2016-06-09 18:51:21 +02:00
meta = {
description = "A three-dimensional finite element mesh generator";
2019-08-14 18:42:40 +02:00
homepage = "http://gmsh.info/";
platforms = [ "x86_64-linux" ];
2021-01-15 14:21:58 +01:00
license = lib.licenses.gpl2Plus;
2016-06-09 18:51:21 +02:00
};
}