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

30 lines
843 B
Nix
Raw Normal View History

{ stdenv, fetchurl, cmake, openblasCompat, gfortran, gmm, fltk, libjpeg
, zlib, libGLU_combined, libGLU, xorg }:
2016-06-09 17:51:21 +01:00
let version = "4.2.3"; in
2016-06-09 17:51:21 +01:00
stdenv.mkDerivation {
name = "gmsh-${version}";
src = fetchurl {
url = "http://gmsh.info/src/gmsh-${version}-source.tgz";
sha256 = "0n18wmj8i4m1pzri3r0676lx1427zf8qmsrgnn07drv6if1cia2q";
2016-06-09 17:51:21 +01:00
};
buildInputs = [ cmake openblasCompat gmm fltk libjpeg zlib libGLU_combined
libGLU xorg.libXrender xorg.libXcursor xorg.libXfixes xorg.libXext
2016-06-09 17:51:21 +01:00
xorg.libXft xorg.libXinerama xorg.libX11 xorg.libSM xorg.libICE
];
nativeBuildInputs = [ gfortran ];
2017-09-27 16:30:52 +01:00
enableParallelBuilding = true;
2016-06-09 17:51:21 +01:00
meta = {
description = "A three-dimensional finite element mesh generator";
homepage = http://gmsh.info/;
platforms = [ "x86_64-linux" ];
2016-06-09 17:51:21 +01:00
license = stdenv.lib.licenses.gpl2Plus;
};
}