mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 01:03:25 +00:00
33 lines
887 B
Nix
33 lines
887 B
Nix
{ lib, stdenv, fetchurl, cmake, blas, lapack, gfortran, gmm, fltk, libjpeg
|
|
, zlib, libGL, libGLU, xorg, opencascade-occt }:
|
|
|
|
assert (!blas.isILP64) && (!lapack.isILP64);
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gmsh";
|
|
version = "4.9.5";
|
|
|
|
src = fetchurl {
|
|
url = "https://gmsh.info/src/gmsh-${version}-source.tgz";
|
|
sha256 = "sha256-/9ZJAIRCCHGciNkaZsKBiJAjEyt6nigsUVSMufbzrUQ=";
|
|
};
|
|
|
|
buildInputs = [
|
|
blas lapack gmm fltk libjpeg zlib opencascade-occt
|
|
] ++ lib.optionals (!stdenv.isDarwin) [
|
|
libGL libGLU xorg.libXrender xorg.libXcursor xorg.libXfixes
|
|
xorg.libXext xorg.libXft xorg.libXinerama xorg.libX11 xorg.libSM
|
|
xorg.libICE
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake gfortran ];
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "A three-dimensional finite element mesh generator";
|
|
homepage = "https://gmsh.info/";
|
|
license = lib.licenses.gpl2Plus;
|
|
};
|
|
}
|