Skip to content
Permalink
Browse files

gmsh wip

  • Loading branch information
peterhoeg committed May 23, 2018
1 parent 5da8543 commit ba708452744ca6557b9dfaf50245516804f6c47e
Showing with 23 additions and 13 deletions.
  1. +23 −13 pkgs/applications/science/math/gmsh/default.nix
@@ -1,10 +1,10 @@
{ stdenv, fetchurl, cmake, blas, liblapack, gfortran, gmm, fltk, libjpeg
, zlib, libGLU_combined, libGLU, xorg }:
{ stdenv, fetchurl, cmake
, blas, liblapack, gfortran, gmm, fltk, libjpeg
, zlib, libGLU_combined, libGLU, hdf5, xorg }:

let version = "3.0.6"; in

stdenv.mkDerivation {
stdenv.mkDerivation rec {
name = "gmsh-${version}";
version = "3.0.6";

src = fetchurl {
url = "http://gmsh.info/src/gmsh-${version}-source.tgz";
@@ -13,19 +13,29 @@ stdenv.mkDerivation {

# 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 ];
# patches = [ ./CMakeLists.txt.patch ];

buildInputs = [ cmake blas liblapack gfortran 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
];
buildInputs = [
blas gfortran liblapack gmm fltk hdf5 libjpeg zlib libGLU_combined libGLU
] ++ (with xorg; [
libXrender libXcursor libXfixes libXext
libXft libXinerama libX11 libSM libICE
]);

nativeBuildInputs = [ cmake ];

enableParallelBuilding = true;

meta = {
NIX_LDFLAGS = [
"-L${gfortran}/lib"
];

doCheck = true;

meta = with stdenv.lib; {
description = "A three-dimensional finite element mesh generator";
homepage = http://gmsh.info/;
platforms = stdenv.lib.platforms.all;
license = stdenv.lib.licenses.gpl2Plus;
license = licenses.gpl2Plus;
platforms = platforms.all;
};
}

0 comments on commit ba70845

Please sign in to comment.
You can’t perform that action at this time.