nixpkgs/pkgs/applications/science/math/gmsh/default.nix
2019-03-23 12:51:12 -04:00

30 lines
855 B
Nix

{ stdenv, fetchurl, cmake, openblasCompat, gfortran, gmm, fltk, libjpeg
, zlib, libGLU_combined, libGLU, xorg }:
let version = "4.2.2"; in
stdenv.mkDerivation {
name = "gmsh-${version}";
src = fetchurl {
url = "http://gmsh.info/src/gmsh-${version}-source.tgz";
sha256 = "e9ee9f5c606bbec5f2adbb8c3d6023c4e2577f487fa4e4ecfcfc94a241cc8dcc";
};
buildInputs = [ cmake openblasCompat gmm fltk libjpeg zlib libGLU_combined
libGLU xorg.libXrender xorg.libXcursor xorg.libXfixes xorg.libXext
xorg.libXft xorg.libXinerama xorg.libX11 xorg.libSM xorg.libICE
];
nativeBuildInputs = [ gfortran ];
enableParallelBuilding = true;
meta = {
description = "A three-dimensional finite element mesh generator";
homepage = http://gmsh.info/;
platforms = [ "x86_64-linux" ];
license = stdenv.lib.licenses.gpl2Plus;
};
}