3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/math/gmsh/default.nix

32 lines
993 B
Nix
Raw Normal View History

2017-09-27 16:30:52 +01:00
{ stdenv, fetchurl, cmake, blas, liblapack, gfortran, gmm, fltk, libjpeg
2016-06-09 17:51:21 +01:00
, zlib, mesa, mesa_glu, xorg }:
2017-09-27 16:30:52 +01:00
let version = "3.0.5"; 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";
2017-09-27 16:30:52 +01:00
sha256 = "ae39ed81178d94b76990b8c89b69a5ded8910fd8f7426b800044d00373d12a93";
2016-06-09 17:51:21 +01:00
};
# The original CMakeLists tries to use some version of the Lapack lib
# that is supposed to work without Fortran but didn't for me.
patches = [ ./CMakeLists.txt.patch ];
2017-09-27 16:30:52 +01:00
buildInputs = [ cmake blas liblapack gfortran gmm fltk libjpeg zlib mesa
2016-06-09 17:51:21 +01:00
mesa_glu xorg.libXrender xorg.libXcursor xorg.libXfixes xorg.libXext
xorg.libXft xorg.libXinerama xorg.libX11 xorg.libSM xorg.libICE
];
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 = stdenv.lib.platforms.all;
license = stdenv.lib.licenses.gpl2Plus;
};
}